diff options
author | Norbert Preining <norbert@preining.info> | 2020-05-07 03:01:09 +0000 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2020-05-07 03:01:09 +0000 |
commit | 56bd1f5b8377f54b4af39a114362a7762d27f13c (patch) | |
tree | 882c573288f2a3f158b490ea3de1672fca9e94a9 /macros/luatex/optex/hisyntax-tex.opm | |
parent | 36d8a5cd45b5a96007208a0d5b1f52e708d0fec8 (diff) |
CTAN sync 202005070301
Diffstat (limited to 'macros/luatex/optex/hisyntax-tex.opm')
-rw-r--r-- | macros/luatex/optex/hisyntax-tex.opm | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/macros/luatex/optex/hisyntax-tex.opm b/macros/luatex/optex/hisyntax-tex.opm deleted file mode 100644 index afa09ca821..0000000000 --- a/macros/luatex/optex/hisyntax-tex.opm +++ /dev/null @@ -1,38 +0,0 @@ -%% This is part of OpTeX project, see http://petr.olsak.net/optex - -\_codedecl\_hisyntaxtex {Syntax highlighting for TeX sources <2020-04-03>} - -\_newtoks\_hisyntaxtex \_newtoks\_hicolorstex - -\_global\_hicolorstex={% colors in TeX codes - \_hicolor S \Blue % control sequences - \_hicolor B \Magenta % {, }, $ - \_hicolor C \Green % comments -} -\_global\_hisyntaxtex={ - \_the\_hicolorstex - \_replthis{\_string\%}{\y{_createcs}{\_csstring\%}} - \_replfromto{\_csstring\%}{^^J}{\x C{\_csstring\%#1}^^J} - \_replthis{\_string\\}{\y{_createcs}{\_csstring\\}} - \_replthis{\_string\{}{\y{_createcs}{\_csstring\{}} - \_replthis{\_string\}}{\y{_createcs}{\_csstring\}}} - \_replthis{\_string\$}{\y{_createcs}{\_csstring\$}} - \_replthis{\_csstring\\}{\y{_createcs}} - \_replthis{\_csstring\{}{\x B{\_csstring\{}} - \_replthis{\_csstring\}}{\x B{\_csstring\}}} - \_replthis{\_csstring\$}{\x B{\_csstring\$}} -} -\_gdef\_createcs#1{\_def\_csletters{#1}% - \_ifcat a\_noexpand#1\_afterfi{\_futurelet\_next\_createcsA}% - \_else \_ea\_createcsF \_fi -} -\_gdef\_createcsA{\ifcat a\_noexpand\_next \_ea\_createcsB \_else \_ea\_createcsF \_fi} -\_gdef\_createcsB#1{\_addto\_csletters{#1}\_futurelet\_next\_createcsA} -\_gdef\_createcsF{\z S{\_csstring\\\_csletters}} -\_gdef\_createbb{\_ea\_createcs\_csstring\\} - -\_endcode %------------------------------------------------ - -The `\_createcs` reads next tokens as the tokenizer does it until the name -of a control sequence is read. It is saved to the `\_csletters` macro and -the macro \_createcsF prints it. |