Syntax.in 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263
  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. However, they have a special
  17. # meaning when used in the actual syntax definitions.
  18. #
  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,
  22. # yellow
  23. #
  24. file [Ss]yntax$ Syntax\sHighlighting\sdefinitions ^#\ssyntax\srules\sversion\s
  25. include syntax.syntax
  26. file filehighlight.ini$ File\sHighlighting\sdefinitions ^#\sfile\shighlight\srules\sversion\s
  27. include filehighlight.syntax
  28. file ..\*\\.(e)$ Eiffel\sSource\sFile
  29. include eiffel.syntax
  30. file ..\*\\.(diff|rej|patch)$ Diff\sOutput ^(diff|Index:)\s
  31. include diff.syntax
  32. file ..\*\\.lsm$ LSM\sFile
  33. include lsm.syntax
  34. file .\*(bash_completion|profile|\\.(sh|bash_login|bash_profile|bash_logout|bash_aliases|bash_exports|bash_history|bashrc|profile|zlogin|zlogout|zprofile|zshenv|zshrc))$ Shell\sScript ^#!\s\*/(.\*/|usr/bin/env\s)([a-z]?|ba|pdk)sh
  35. include sh.syntax
  36. file ..\*\\.(pl|PL|pm|PM|psgi|PSGI)$ Perl\sProgram ^#!.\*([\s/]perl|@PERL@)
  37. include perl.syntax
  38. file ..\*\\.(py|PY)$ Python\sProgram ^#!.\*([\s/]python|@PYTHON@)
  39. include python.syntax
  40. file ..\*\\.(pyx|pxd|pxi)$ Cython\sor\sPyrex\sProgram
  41. include cython.syntax
  42. file ..\*\\.(rb|RB)$ Ruby\sProgram ^#!.\*([\s/]ruby|@RUBY@)
  43. include ruby.syntax
  44. file ..\*\\.(man|[0-9n]|[0-9](x|ncurses|ssl|p|pm|menu|form|vga|t|td))$ NROFF\sSource
  45. include nroff.syntax
  46. file ..\*\\.(htm|html|HTM|HTML)$ HTML\sFile
  47. include html.syntax
  48. file ..\*\\.(xml|XML|xsd|XSD|xslt?|XSLT?|dtd|DTD|qpg|qpg.in)$ XML\sdocument (\\?xml\sversion|!DOCTYPE\s)
  49. include xml.syntax
  50. file ..\*\\.(tt|TT)$ Template::Toolkit\sFile
  51. include tt.syntax
  52. file (.\*[Mm]akefile[\\\.A-Za-z0-9]\*|..\*\\.mk|..\*\\.mak|Kbuild)$ Makefile
  53. include makefile.syntax
  54. file (CMakeLists.txt|.\*.cmake)$ CMake
  55. include cmake.syntax
  56. file ..\*\\.(pas|PAS|dpr|DPR|inc|INC)$ Pascal\sProgram
  57. include pascal.syntax
  58. file ..\*\\.(ada|adb|ads|ADA|ADB|ADS)$ Ada\sProgram
  59. include ada95.syntax
  60. file ..\*\\.(tcl|itcl|TCL|ITCL)$ Tcl\sProgram
  61. include tcl.syntax
  62. file ..\*\\.(sl|SL)$ S-Lang\sProgram
  63. include slang.syntax
  64. file ..\*\\.tex$ LaTeX\s2.09\sDocument
  65. include latex.syntax
  66. file ..\*\\.(texi|texinfo|TEXI|TEXINFO)$ Texinfo\sDocument
  67. include texinfo.syntax
  68. file ..\*\\.c$ C\sProgram
  69. include c.syntax
  70. file ..\*\\.([hC]|CC|cxx|cc|cpp|CPP|CXX|hxx|hh|hpp|HPP|h\\.in)$ C/C\+\+\sProgram
  71. include cxx.syntax
  72. file ..\*\\.d$ D\sProgram
  73. include d.syntax
  74. file ..\*\\.[fF]$ Fortran\sProgram
  75. include fortran.syntax
  76. file ..\*\\.[fF]9[05]$ Freeform\sFortran\sProgram
  77. include f90.syntax
  78. file ..\*\\.i$ SWIG\sSource
  79. include swig.syntax
  80. file ..\*\\.(php|PHP)[0-9]?$ PHP\sProgram
  81. include php.syntax
  82. file ..\*\\.ij[xs]$ J\sFile
  83. include j.syntax
  84. file ..\*\\.(java|JAVA|Java|jav|groovy|GROOVY|Groovy)$ Java\sProgram
  85. include java.syntax
  86. file ..\*\\.(properties|config)$ Java\sFile
  87. include properties.syntax
  88. file ..\*\\.(cs|CS)$ C\#\sProgram
  89. include cs.syntax
  90. file ..\*\\.(js|JS)$ JavaScript\sProgram
  91. include js.syntax
  92. file ..\*\\.(as|AS)$ ActionScript\sProgram
  93. include as.syntax
  94. file ..\*\\.(asax|aspx|ascx|asmx|ashx)$ ASPX\sFile
  95. include aspx.syntax
  96. file ..\*\\.st$ SmallTalk\sProgram
  97. include smalltalk.syntax
  98. file ..\*\\.(lisp|lsp|el|cl)$ Lisp\sProgram
  99. include lisp.syntax
  100. file ..\*\\.(ml|mli|mly|mll|mlp)$ ML\sProgram
  101. include ml.syntax
  102. file ..\*\\.m$ Matlab\sor\sOctave\sFile
  103. include octave.syntax
  104. file ..\*\\.(sql|SQL)$ SQL\sProgram
  105. include sql.syntax
  106. file ..\*\\.(spec|spec\\.in)$ RPM\sSpecfile
  107. include spec.syntax
  108. file ..\*\\.repo$ YUM\sRepo\sFile
  109. include yum-repo.syntax
  110. file ..\*\\.(awk)$ AWK\sFile
  111. include awk.syntax
  112. file ..\*\\.(css|qss|CSS|QSS)$ CSS\sFile
  113. include css.syntax
  114. file .\*ChangeLog[\\\.A-Za-z0-9_]\*$ GNU\sChangeLog\sFile
  115. include changelog.syntax
  116. file (..\*\\.m4$|configure\\.in|configure\\.ac) M4\sMacroprocessor\sSource
  117. include m4.syntax
  118. file ..\*\\.(bat|cmd)$ DOS\sBatch
  119. include dos.syntax
  120. file ..\*\\.(po|pot|pox)$ PO\sFile
  121. include po.syntax
  122. file ..\*\\.([Aa][Ss][Mm]|s|S)$ ASM\sProgram
  123. include assembler.syntax
  124. file ..\*\\.([Pp][Oo][Vv])$ POV\sScript
  125. include povray.syntax
  126. file .\*\\.(ebuild|eclass)$ Gentoo\sEbuild
  127. include ebuild.syntax
  128. file ..\*\\.([lL][uU][aA])$ LUA\sProgram ^#!.*/lua
  129. include lua.syntax
  130. file ..\*\\.([iI][dD][lL])$ CORBA\sIDL
  131. include idl.syntax
  132. file ..\*\\.([iI][nN][iI])$ INI\sFile
  133. include ini.syntax
  134. file Don_t_match_me Mail\sfolder ^(From|Return-(P|p)ath:|From:|Date:)\s
  135. include mail.syntax
  136. file \\.procmailrc$ Procmail\sRC\sFile ^#/usr/bin/procmail
  137. include procmail.syntax
  138. file sources.list$ sources\slist
  139. include debian-sources-list.syntax
  140. file control$ Debian\scontrol\sfile
  141. include debian-control.syntax
  142. file (rules|rocks)$ Debian\srules
  143. include makefile.syntax
  144. file .\*changelog$ Debian\schangelog\sfile
  145. include debian-changelog.syntax
  146. file changelog.Debian$ Debian\schangelog\sfile
  147. include debian-changelog.syntax
  148. file .\*\\.dsc$ Debian\sdescriptiom\sfile
  149. include debian-description.syntax
  150. file ..\*\\.([hH][sS][cC]?)$ Haskell\sprogram
  151. include haskell.syntax
  152. file ..\*\\.([cC][aA][bB][aA][lL])$ Cabal\sconfig\sfile
  153. include cabal.syntax
  154. file ..\*\\.(n|N)$ Nemerle\sProgram
  155. include nemerle.syntax
  156. file ..\*\\.(v|V)$ Verilog\sDevice\sDescription
  157. include verilog.syntax
  158. file ..\*\\.(hdl|vhd|vdhl|HDL|VHD|VHDL)$ VHDL\sDevice\sDescription
  159. include vhdl.syntax
  160. file ..\*\\.erl$ Erlang\sProgram ^(-module\\(|#!.*escript)
  161. include erlang.syntax
  162. file ..\*\\.hrl$ Erlang\sHeader ^-record\\(
  163. include erlang.syntax
  164. file .\*named.conf$ Bind9\sconfiguration
  165. include named.syntax
  166. file .\*\\.strace$ Strace\sdebug\soutput
  167. include strace.syntax
  168. file PKGBUILD$ Arch\spackage\sbuild\sscript
  169. include PKGBUILD.syntax
  170. file \\.install$ Arch\spackage\sinstall\sscript
  171. include sh.syntax
  172. file ..\*\\.(l|y|yxx|ypp)$ Lex/Flex/Yacc/Bison\ssource
  173. include yxx.syntax
  174. file ..\*\\.dlink\\.sw$ D-Link\sSwitch\sCommands
  175. include dlink.syntax
  176. file ..\*\\.([jJ][aA][lL][tT]?)$ Jal\ssource
  177. include jal.syntax
  178. file ..\*\\.([lL][kK][rR])$ PIC\slinker\sscript\sfile
  179. include lkr.syntax
  180. file .\*\\.pp$ Puppet\smanifest\sfile
  181. include puppet.syntax
  182. file .\* unknown
  183. include unknown.syntax