summaryrefslogtreecommitdiffstats
path: root/misc/syntax/xml.syntax
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 17:44:12 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-04 17:44:12 +0000
commit8ccb487c21368a7fdc8c7c72315325bf0aa06147 (patch)
treeb2056fae01d325924508a41731edfbd4c3cddd23 /misc/syntax/xml.syntax
parentInitial commit. (diff)
downloadmc-8ccb487c21368a7fdc8c7c72315325bf0aa06147.tar.xz
mc-8ccb487c21368a7fdc8c7c72315325bf0aa06147.zip
Adding upstream version 3:4.8.29.upstream/3%4.8.29upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'misc/syntax/xml.syntax')
-rw-r--r--misc/syntax/xml.syntax46
1 files changed, 46 insertions, 0 deletions
diff --git a/misc/syntax/xml.syntax b/misc/syntax/xml.syntax
new file mode 100644
index 0000000..df70748
--- /dev/null
+++ b/misc/syntax/xml.syntax
@@ -0,0 +1,46 @@
+# XML syntax highlighting
+#
+# Author: Petr Kozelka <pkozelka@email.cz>
+# http://kozelka.hyperlink.cz
+
+context default
+ keyword &*; white cyan
+ spellcheck
+
+context <!-- --> brightgreen
+ spellcheck
+
+context <! > yellow
+ keyword '+' brightcyan
+ keyword "+" brightcyan
+ keyword whole DOCTYPE white red
+ keyword whole PUBLIC brightred
+ keyword whole SYSTEM brightred
+ keyword whole NDATA brightred
+ keyword whole CDATA white
+ keyword whole #PCDATA white
+ keyword whole EMPTY white
+ keyword whole #REQUIRED white
+ keyword whole #IMPLIED white
+ keyword whole ELEMENT white
+ keyword whole ENTITY brightred
+ keyword whole ATTLIST white
+ keyword whole %*; white cyan
+ keyword \( lightgray
+ keyword \) lightgray
+ keyword \* lightgray
+ keyword \? lightgray
+ keyword \+ lightgray
+ keyword \| lightgray
+ keyword \, lightgray
+ spellcheck
+
+context <\?xml \?> white red
+context <\? \?> lightgray black
+context < > white
+ keyword \sxmlns\:*\="+" brightred
+ keyword \sxmlns\="+" brightred
+ keyword \s*= yellow
+ keyword '*' brightcyan
+ keyword "*" brightcyan
+ spellcheck