##
## syntax "short description" ["filename regex" ...]
##
-## (The "none" syntax is reserved; specifying it on the command line is
+## The "none" syntax is reserved; specifying it on the command line is
## the same as not having a syntax at all. The "default" syntax is
## special: it takes no filename regexes, and applies to files that
-## don't match any other syntax's filename regexes.)
+## don't match any other syntax's filename regexes.
##
## color foreground,background "regex" ["regex"...]
## or
## icolor foreground,background "regex" ["regex"...]
##
-## ("color" will do case sensitive matches, while "icolor" will do case
-## insensitive matches.)
+## "color" will do case sensitive matches, while "icolor" will do case
+## insensitive matches.
##
## Legal colors: white, black, red, blue, green, yellow, magenta, cyan.
## You may use the prefix "bright" to mean a stronger color highlight
## color will use a transparent color. If you don't want this, be sure
## to set the background color to black or white.
##
+## If you wish, you may put your syntaxes in separate files. You can
+## make use of such files (which can only include "syntax", "color", and
+## "icolor" commands) as follows:
+##
+## include "syntax file"
+##
## All regexes should be extended regular expressions.
##
# syntax "c-file" "\.(c|C|cc|cpp|cxx|h|H|hh|hpp|hxx)$"
# color brightcyan "^[[:space:]]*#[[:space:]]*(define|undef|include|ifn?def|endif|elif|else|if|warning|error)"
# color brightmagenta "'([^'\]|(\\["'abfnrtv\\]))'" "'\\(([0-3]?[0-7]{1,2}))'" "'\\x[0-9A-Fa-f]{1,2}'"
##
-## GCC builtins
+## GCC builtins.
##
# color cyan "__attribute__[[:space:]]*\(\([^)]*\)\)" "__(aligned|asm|builtin|hidden|inline|packed|restrict|section|typeof|weak)__"
##
-## You will in general want your comments and strings to come last,
-## because syntax highlighting rules will be applied in the order they
-## are read in.
+## String highlighting. You will in general want your comments and
+## strings to come last, because syntax highlighting rules will be
+## applied in the order they are read in.
##
# color brightyellow "<[^= ]*>" ""(\\.|[^"])*""
##
## This string is VERY resource intensive!
# color brightyellow start=""(\\.|[^"])*\\[[:space:]]*$" end="^(\\.|[^"])*""
##
-## And we want to have some nice comment highlighting too
+## Comment highlighting.
# color brightblue "//.*"
# color brightblue start="/\*" end="\*/"
-## Here is a short example for HTML
+## Here is a short example for HTML.
# syntax "HTML" "\.html$"
# color blue start="<" end=">"
# color red "&[^;[[:space:]]]*;"
-## Here is a short example for TeX files
+## Here is a short example for TeX files.
# syntax "TeX" "\.tex$"
# icolor green "\\.|\\[A-Z]*"
# color magenta "[{}]"
# color blue "%.*"
-## Here is an example for quoted emails (under e.g. mutt)
+## Here is an example for quoted emails (under e.g. mutt).
# syntax "mutt"
# color green "^>.*"
-## Here is an example for groff
+## Here is an example for groff.
##
# syntax "groff" "\.m[ems]$" "\.tmac$" "^tmac." ".rof"
## The argument of .nr or .ds
## Macro arguments
# color brightcyan "\\\\\$[1-9]"
-## Here is an example for Perl
+## Here is an example for Perl.
##
# syntax "perl" "\.p[lm]$"
# color red "\<(accept|alarm|atan2|bin(d|mode)|c(aller|h(dir|mod|op|own|root)|lose(dir)?|onnect|os|rypt)|d(bm(close|open)|efined|elete|ie|o|ump)|e(ach|of|val|x(ec|ists|it|p))|f(cntl|ileno|lock|ork))\>" "\<(get(c|login|peername|pgrp|ppid|priority|pwnam|(host|net|proto|serv)byname|pwuid|grgid|(host|net)byaddr|protobynumber|servbyport)|([gs]et|end)(pw|gr|host|net|proto|serv)ent|getsock(name|opt)|gmtime|goto|grep|hex|index|int|ioctl|join)\>" "\<(keys|kill|last|length|link|listen|local(time)?|log|lstat|m|mkdir|msg(ctl|get|snd|rcv)|next|oct|open(dir)?|ord|pack|pipe|pop|printf?|push|q|qq|qx|rand|re(ad(dir|link)?|cv|do|name|quire|set|turn|verse|winddir)|rindex|rmdir|s|scalar|seek(dir)?)\>" "\<(se(lect|mctl|mget|mop|nd|tpgrp|tpriority|tsockopt)|shift|shm(ctl|get|read|write)|shutdown|sin|sleep|socket(pair)?|sort|spli(ce|t)|sprintf|sqrt|srand|stat|study|substr|symlink|sys(call|read|tem|write)|tell(dir)?|time|tr(y)?|truncate|umask)\>" "\<(un(def|link|pack|shift)|utime|values|vec|wait(pid)?|wantarray|warn|write)\>"
# color green "#.*"
# color yellow start="<< 'STOP'" end="STOP"
-## Here is an example for Python
+## Here is an example for Python.
##
# syntax "python" "\.py$"
# icolor brightblue "def [A-Z_0-9]+"
# color brightgreen start=""""[^"]" end=""""" start="'''[^']" end="'''"
# color brightred "#.*$"
-## Here is an example for Java source
+## Here is an example for Java source.
##
# syntax "Java source" "\.java$"
# color green "\<(boolean|byte|char|double|float|int|long|new|short|this|transient|void)\>"
# color brightblue start="/\*\*" end="\*/"
# color brightgreen,green "[[:space:]]+$"
-## Here is an example for patch files
+## Here is an example for patch files.
##
# syntax "patch" "\.(patch|diff)$"
# color brightgreen "^\+.*"
# color brightyellow "^@@.*"
# color magenta "^diff.*"
-## Here is an example for manpages
+## Here is an example for manpages.
##
# syntax "manpage" "\.[1-9]x?$"
# color green "\.(S|T)H.*$"
# color brightwhite "\\f[BIPR]"
# color yellow "\.(br|DS|RS|RE|PD)"
-## Here is an example for assembler
+## Here is an example for assembler.
##
# syntax "asm-file" "\.(S|s|asm)$"
# color red "\<[A-Z_]{2,}\>"
# color brightblue "//.*"
# color brightblue start="/\*" end="\*/"
-## Here is an example for Bourne shell scripts
+## Here is an example for Bourne shell scripts.
##
# syntax "shellscript" "\.sh$"
# icolor brightgreen "^[_A-Z0-9]+\(\)"
# color yellow "#.*$"
# color brightyellow ""(\\.|[^"])*"" "'(\\.|[^'])*'"
-## Here is an example for your .nanorc
+## Here is an example for your .nanorc.
##
# syntax "nanorc" "(\.|/|)nanorc$"
## highlight possible errors and parameters