summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/context/base/verb-xml.tex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/context/base/verb-xml.tex')
-rw-r--r--Master/texmf-dist/tex/context/base/verb-xml.tex30
1 files changed, 23 insertions, 7 deletions
diff --git a/Master/texmf-dist/tex/context/base/verb-xml.tex b/Master/texmf-dist/tex/context/base/verb-xml.tex
index f80147ebee9..7b023731529 100644
--- a/Master/texmf-dist/tex/context/base/verb-xml.tex
+++ b/Master/texmf-dist/tex/context/base/verb-xml.tex
@@ -105,10 +105,9 @@
\setpretty`\7=17 \setpretty`\8=17 \setpretty`\9=17
\setpretty`\==16
\setpretty`\"=20
- \setpretty`\(=30 \setpretty`\)=30 \setpretty`\,=30
- \setpretty`\*=30 \setpretty`\+=30 \setpretty`\#=30
-% \setpretty`\:=30
- \setpretty`\:=10 % better for tags
+ \setpretty`\(=31 \setpretty`\)=31 \setpretty`\,=31
+ \setpretty`\*=31 \setpretty`\+=31 \setpretty`\#=31
+ \setpretty`\:=32
\setpretty`\&=41 \setpretty`\;=42 }
\gdef\XMLsethandlers%
@@ -121,7 +120,8 @@
\installprettyhandler 15 \XMLtypeonefive
\installprettyhandler 16 \XMLtypeonesix
\installprettyhandler 20 \XMLdoublequote
- \installprettyhandler 30 \XMLtypethree
+ \installprettyhandler 31 \XMLtypethreeone
+ \installprettyhandler 32 \XMLtypethreetwo
\installprettyhandler 41 \XMLbampersand
\installprettyhandler 42 \XMLeampersand }
@@ -256,7 +256,7 @@
\ifnum\prettytype=11 % >
\expandafter\dododoXMLtypeonetwo
\else % treat as `green' character
- \expandafter\XMLtypethree
+ \expandafter\XMLtypethreeone
\fi
{#1}#2}
@@ -386,7 +386,7 @@
% symbols like `(', `)' and `,' should be green
-\gdef\XMLtypethree#1%
+\gdef\XMLtypethreeone#1%
{\ifinXMLcomment
\getpretty{#1}%
\else
@@ -403,6 +403,22 @@
\fi
\fi}
+% \gdef\XMLtypethreetwo#1%
+% {\ifinXMLcomment
+% \getpretty{#1}%
+% \else
+% \ifinXMLtagname
+% \endofpretty
+% \beginofpretty[\!!prettythree]\getpretty{#1}\endofpretty
+% \beginofpretty[\!!prettyone]%
+% \else
+% \getpretty{#1}%
+% \fi
+% \fi}
+
+\gdef\XMLtypethreetwo#1%
+ {\getpretty{#1}}
+
% special characters with `&'
\gdef\XMLbampersand#1%