summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/luatex/optex/base/hisyntax-tex.opm
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2021-04-19 21:25:21 +0000
committerKarl Berry <karl@freefriends.org>2021-04-19 21:25:21 +0000
commit3125499a8c2b497b0f964e23c53d9c9fe3fe4e58 (patch)
tree1618fa57d975d6d12cde15c8b1190c09061d033c /Master/texmf-dist/tex/luatex/optex/base/hisyntax-tex.opm
parentf5f0b7d1217bc7ab099302a505fffcac39d41006 (diff)
optex its own format, so directly under tex/ and doc/
git-svn-id: svn://tug.org/texlive/trunk@58918 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/luatex/optex/base/hisyntax-tex.opm')
-rw-r--r--Master/texmf-dist/tex/luatex/optex/base/hisyntax-tex.opm38
1 files changed, 0 insertions, 38 deletions
diff --git a/Master/texmf-dist/tex/luatex/optex/base/hisyntax-tex.opm b/Master/texmf-dist/tex/luatex/optex/base/hisyntax-tex.opm
deleted file mode 100644
index 583676a2ca4..00000000000
--- a/Master/texmf-dist/tex/luatex/optex/base/hisyntax-tex.opm
+++ /dev/null
@@ -1,38 +0,0 @@
-%% This is part of the 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.