Ticket #1987: Syntax

File Syntax, 4.0 KB (added by Wuerl, 14 years ago)

Changed Master-Syntax File

Line 
1# This file describes which highlighting scheme is applied to a particular
2# file in mcedit.
3#
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.
7#
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.
13#
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.
17#
18# You can use the following colors in the syntax highlighting files:
19# black, blue, brightblue, brightcyan, brightgreen, brightmagenta,
20# brightred, brown, cyan, gray, green, lightgray, magenta, red, white,
21# yellow
22#
23
24file [Ss]yntax$ Syntax\sHighlighting\sdefinitions ^#\ssyntax\srules\sversion\s
25include syntax.syntax
26
27file ..\*\\.(e)$ Eiffel\sSource\sFile
28include eiffel.syntax
29
30file ..\*\\.(diff|rej|patch)$ Diff\sOutput ^(diff|Index:)\s
31include diff.syntax
32
33file ..\*\\.lsm$ LSM\sFile
34include lsm.syntax
35
36file ..\*\\.sh$ Shell\sScript ^#!.\*([\s/]([abd-z]?|ba|pdk)sh|@SH@)
37include sh.syntax
38
39file ..\*\\.(pl|PL|pm|PM)$ Perl\sProgram ^#!.\*([\s/]perl|@PERL@)
40include perl.syntax
41
42file ..\*\\.(cbl|CBL)$ Cobol\sProgram ^ PHASE.\*)
43include cobol.syntax
44
45file ..\*\\.(py|PY)$ Python\sProgram ^#!.\*([\s/]python|@PYTHON@)
46include python.syntax
47
48file ..\*\\.(rb|RB)$ Ruby\sProgram ^#!.\*([\s/]ruby|@RUBY@)
49include ruby.syntax
50
51file ..\*\\.(man|[0-9n]|[0-9]x)$ NROFF\sSource
52include nroff.syntax
53
54file ..\*\\.(htm|html|HTM|HTML)$ HTML\sFile
55include html.syntax
56
57file ..\*\\.(xml|XML|xsd|XSD|xslt?|XSLT?|dtd|DTD|qpg|qpg.in)$ XML\sdocument (\\?xml\sversion|!DOCTYPE\s)
58include xml.syntax
59
60file ..\*\\.(pp|PP|pas|PAS|dpr|DPR|inc|INC)$ Pascal\sProgram
61include pascal.syntax
62
63file ..\*\\.(ada|adb|ads|ADA|ADB|ADS)$ Ada\sProgram
64include ada95.syntax
65
66file ..\*\\.(tcl|itcl|TCL|ITCL)$ Tcl\sProgram
67include tcl.syntax
68
69file ..\*\\.(sl|SL)$ S-Lang\sProgram
70include slang.syntax
71
72file ..\*\\.tex$ LaTeX\s2.09\sDocument
73include latex.syntax
74
75file ..\*\.(texi|texinfo|TEXI|TEXINFO)$ Texinfo\sDocument
76include texinfo.syntax
77
78file ..\*\\.([chC]|CC|cxx|cc|cpp|CPP|CXX|hxx|hpp|HPP|h\.in)$ C/C\+\+\sProgram
79include c.syntax
80
81file ..\*\\.[fF]$ Fortran\sProgram
82include fortran.syntax
83
84file ..\*\\.i$ SWIG\sSource
85include swig.syntax
86
87file ..\*\\.(php|PHP)[0-9]?$ PHP\sProgram
88include php.syntax
89
90file ..\*\\.(java|JAVA|Java|jav)$ Java\sProgram
91include java.syntax
92
93file ..\*\\.(cs|CS)$ C\#\sProgram
94include cs.syntax
95
96file ..\*\\.(js|JS)$ JavaScript\sProgram
97include js.syntax
98
99file ..\*\\.(asax|aspx|ascx|asmx|ashx)$ ASPX\sFile
100include aspx.syntax
101
102file ..\*\\.st$ SmallTalk\sProgram
103include smalltalk.syntax
104
105file ..\*\\.(lisp|lsp|el)$ Lisp\sProgram
106include lisp.syntax
107
108file ..\*\\.(ml|mli|mly|mll|mlp)$ ML\sProgram
109include ml.syntax
110
111file ..\*\\.m$ Matlab\sor\sOctave\sFile
112include octave.syntax
113
114file ..\*\\.(sql|SQL)$ SQL\sProgram
115include sql.syntax
116
117file ..\*\\.(spec|spec\.in)$ RPM\sSpecfile
118include spec.syntax
119
120file .\*ChangeLog[\\\.A-Za-z0-9_]\*$ GNU\sChangeLog\sFile
121include changelog.syntax
122
123file (.\*[Mm]akefile[\\\.A-Za-z0-9]\*|..\*\\.mk)$ Makefile
124include makefile.syntax
125
126file (..\*\\.m4$|configure\\.in|configure\\.ac) M4\sMacroprocessor\sSource
127include m4.syntax
128
129file ..\*\\.(bat|cmd)$ DOS\sBatch
130include dos.syntax
131
132file ..\*\\.(po|pot|pox)$ PO\sFile
133include po.syntax
134
135file ..\*\\.([Aa][Ss][Mm]|s|S)$ ASM\sProgram
136include assembler.syntax
137 
138file ..\*\\.([Pp][Oo][Vv])$ POV\sScript
139include povray.syntax
140
141file ..\*\\.([lL][uU][aA])$ LUA\sProgram
142include lua.syntax
143
144file ..\*\\.([iI][dD][lL])$ CORBA\sIDL
145include idl.syntax
146
147file Don_t_match_me Mail\sfolder ^From\s
148include mail.syntax
149
150file .\* unknown
151include unknown.syntax