summaryrefslogtreecommitdiffstats
path: root/misc/syntax/filehighlight.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/filehighlight.syntax
parentInitial commit. (diff)
downloadmc-a8b95ffda99fa354ec15e9585f29f508e496986c.tar.xz
mc-a8b95ffda99fa354ec15e9585f29f508e496986c.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/filehighlight.syntax')
-rw-r--r--misc/syntax/filehighlight.syntax91
1 files changed, 91 insertions, 0 deletions
diff --git a/misc/syntax/filehighlight.syntax b/misc/syntax/filehighlight.syntax
new file mode 100644
index 0000000..6e48ca6
--- /dev/null
+++ b/misc/syntax/filehighlight.syntax
@@ -0,0 +1,91 @@
+# Syntax highlighting rules for file highlighting rules
+
+# Use \[\] at the end of keywords to suppress their special meaning
+
+context default
+ keyword whole black black blue
+ keyword whole red red
+ keyword whole green green
+ keyword whole brown brown
+ keyword whole blue blue black
+ keyword whole magenta magenta
+ keyword whole cyan cyan
+ keyword whole lightgray lightgray
+ keyword whole gray gray black
+ keyword whole brightred brightred
+ keyword whole brightgreen brightgreen
+ keyword whole yellow yellow
+ keyword whole brightblue brightblue black
+ keyword whole brightmagenta brightmagenta
+ keyword whole brightcyan brightcyan
+ keyword whole white white
+
+ keyword = brightcyan
+ keyword ; brightmagenta
+ keyword whole extensions yellow
+ keyword whole extensions_case yellow
+ keyword whole type yellow
+ keyword DEVICE brightred
+ keyword DIR brightred
+ keyword FILE_EXE brightred
+ keyword SPECIAL brightred
+ keyword STALE_LINK brightred
+ keyword SYMLINK brightred
+ keyword HARDLINK brightred
+
+context linestart # \n brown
+
+context linestart [ ] white
+
+context regexp= \n lightgray
+ keyword = brightcyan
+ keyword whole regexp yellow
+
+# regexp patterns
+ keyword \\\/ brightcyan
+ keyword \\\\ brightcyan
+ keyword \\B brightcyan
+ keyword \\b brightcyan
+ keyword \\D brightcyan
+ keyword \\d brightcyan
+ keyword \\S brightcyan
+ keyword \\s brightcyan
+ keyword \\W brightcyan
+ keyword \\w brightcyan
+ keyword \\A brightcyan
+ keyword \\Z brightcyan
+
+ keyword \\( brightcyan
+ keyword \\) brightcyan
+ keyword \\[ brightcyan
+ keyword \\] brightcyan
+ keyword \\{ brightcyan
+ keyword \\} brightcyan
+ keyword \\$ brightcyan
+ keyword \\\+ brightcyan
+ keyword \\. brightcyan
+ keyword \\? brightcyan
+ keyword \\\* brightcyan
+ keyword \\^ brightcyan
+ keyword \\| brightcyan
+
+ keyword ( brightmagenta
+ keyword ) brightmagenta
+ keyword [ brightmagenta
+ keyword ] brightmagenta
+ keyword { brightmagenta
+ keyword } brightmagenta
+
+ keyword ?! yellow
+ keyword ?# yellow
+ keyword ?: yellow
+ keyword ?= yellow
+ keyword ?\{-imx:\}+ yellow
+
+ keyword $ yellow
+ keyword \+ yellow
+ keyword . yellow
+ keyword ? yellow
+ keyword \* yellow
+ keyword ^ yellow
+ keyword | yellow