1 # This file describes which highlighting scheme is applied to a particular
4 # Each entry consists of two lines: a "file" specification and the
5 # corresponding highlighting definition ("include"). A file specification
6 # can have two or three fields, each separated by white-space characters.
8 # The first field is a regular expression that is matched against the file
9 # name. The second field is a description of the file type and is
10 # currently unused. The third (optional) field is a regular expression
11 # that is matched against the first line of the file. The first entry
12 # that matches wins, that is, all the entries below are ignored.
14 # Certain characters must be quoted in these fields. These are space (\s),
15 # tabs (\t), backslashes(\\), plus (\+) and asterisk (\*). Braces {} and
16 # brackets [] must not be quoted in this file. However, they have a special
17 # meaning when used in the actual syntax definitions.
19 # You can use the following colors in the syntax highlighting files:
20 # black, blue, brightblue, brightcyan, brightgreen, brightmagenta,
21 # brightred, brown, cyan, gray, green, lightgray, magenta, red, white,
25 file [Ss]yntax$ Syntax\sHighlighting\sdefinitions ^#\ssyntax\srules\sversion\s
28 file ..\*\\.(e)$ Eiffel\sSource\sFile
31 file ..\*\\.(diff|rej|patch)$ Diff\sOutput ^(diff|Index:)\s
34 file ..\*\\.lsm$ LSM\sFile
37 file ..\*\\.sh$ Shell\sScript ^#!.\*([\s/]([abd-z]?|ba|pdk)sh|@SH@)
40 file ..\*\\.(pl|PL|pm|PM)$ Perl\sProgram ^#!.\*([\s/]perl|@PERL@)
43 file ..\*\\.(py|PY)$ Python\sProgram ^#!.\*([\s/]python|@PYTHON@)
46 file ..\*\\.(rb|RB)$ Ruby\sProgram ^#!.\*([\s/]ruby|@RUBY@)
49 file ..\*\\.(man|[0-9n]|[0-9]x)$ NROFF\sSource
52 file ..\*\\.(htm|html|HTM|HTML)$ HTML\sFile
55 file ..\*\\.(xml|XML|xsd|XSD|xslt?|XSLT?|dtd|DTD|qpg|qpg.in)$ XML\sdocument (\\?xml\sversion|!DOCTYPE\s)
58 file (.\*[Mm]akefile[\\\.A-Za-z0-9]\*|..\*\\.mk|Kbuild)$ Makefile
59 include makefile.syntax
61 file ..\*\\.(pp|PP|pas|PAS|dpr|DPR|inc|INC)$ Pascal\sProgram
64 file ..\*\\.(ada|adb|ads|ADA|ADB|ADS)$ Ada\sProgram
67 file ..\*\\.(tcl|itcl|TCL|ITCL)$ Tcl\sProgram
70 file ..\*\\.(sl|SL)$ S-Lang\sProgram
73 file ..\*\\.tex$ LaTeX\s2.09\sDocument
76 file ..\*\.(texi|texinfo|TEXI|TEXINFO)$ Texinfo\sDocument
77 include texinfo.syntax
79 file ..\*\\.([chC]|CC|cxx|cc|cpp|CPP|CXX|hxx|hpp|HPP|h\.in)$ C/C\+\+\sProgram
82 file ..\*\\.d$ D\sProgram
85 file ..\*\\.[fF]$ Fortran\sProgram
86 include fortran.syntax
88 file ..\*\\.i$ SWIG\sSource
91 file ..\*\\.(php|PHP)[0-9]?$ PHP\sProgram
94 file ..\*\\.(java|JAVA|Java|jav)$ Java\sProgram
97 file ..\*\\.(cs|CS)$ C\#\sProgram
100 file ..\*\\.(js|JS)$ JavaScript\sProgram
103 file ..\*\\.(asax|aspx|ascx|asmx|ashx)$ ASPX\sFile
106 file ..\*\\.st$ SmallTalk\sProgram
107 include smalltalk.syntax
109 file ..\*\\.(lisp|lsp|el)$ Lisp\sProgram
112 file ..\*\\.(ml|mli|mly|mll|mlp)$ ML\sProgram
115 file ..\*\\.m$ Matlab\sor\sOctave\sFile
116 include octave.syntax
118 file ..\*\\.(sql|SQL)$ SQL\sProgram
121 file ..\*\\.(spec|spec\.in)$ RPM\sSpecfile
124 file .\*ChangeLog[\\\.A-Za-z0-9_]\*$ GNU\sChangeLog\sFile
125 include changelog.syntax
127 file (..\*\\.m4$|configure\\.in|configure\\.ac) M4\sMacroprocessor\sSource
130 file ..\*\\.(bat|cmd)$ DOS\sBatch
133 file ..\*\\.(po|pot|pox)$ PO\sFile
136 file ..\*\\.([Aa][Ss][Mm]|s|S)$ ASM\sProgram
137 include assembler.syntax
139 file ..\*\\.([Pp][Oo][Vv])$ POV\sScript
140 include povray.syntax
142 file ..\*\\.([lL][uU][aA])$ LUA\sProgram ^#!.*/lua
145 file ..\*\\.([iI][dD][lL])$ CORBA\sIDL
148 file Don_t_match_me Mail\sfolder ^From\s
152 include unknown.syntax