Syntax.in 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  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|rc)|profile|\\.(sh|bash(rc|_(completion|profile|log(in|out)|aliases|exports|history))|profile|zlog(in|out)|zprofile|zsh(env|rc)))$ Shell\sScript ^#!\s\*/(.\*/|usr/bin/env\s)([a-z]?|ba|pdk)sh
  35. include sh.syntax
  36. file ..\*\\.((?i:ini)|desktop|busname|(auto)?mount|net(dev|work)|link|path|service|slice|socket|swap|target|timer)$ INI-based\sFile
  37. include ini.syntax
  38. file ..\*\\.((?i:pl|pm|psgi)|t)$ Perl\sProgram ^#!.\*([\s/]perl|@PERL@)
  39. include perl.syntax
  40. file ..\*\\.(?i:py)$ Python\sProgram ^#!.\*([\s/]python|@PYTHON@)
  41. include python.syntax
  42. file ..\*\\.(pyx|pxd|pxi)$ Cython\sor\sPyrex\sProgram
  43. include cython.syntax
  44. file ..\*\\.(?i:rb)$ Ruby\sProgram ^#!.\*([\s/]ruby|@RUBY@)
  45. include ruby.syntax
  46. file ..\*\\.(man|[0-9n]|[0-9](x|ncurses|ssl|p|pm|menu|form|vga|t|td))$ NROFF\sSource
  47. include nroff.syntax
  48. file ..\*\\.(?i:html?)$ HTML\sFile
  49. include html.syntax
  50. file ..\*\\.((?i:xml|xsd|xslt?|dtd)|qpg|qpg\\.in)$ XML\sdocument (\\?xml\sversion|!DOCTYPE\s)
  51. include xml.syntax
  52. file ..\*\\.(?i:tt)$ Template::Toolkit\sFile
  53. include tt.syntax
  54. file (.\*[Mm]akefile[\\\.A-Za-z0-9]\*|..\*\\.mk|..\*\\.mak|Kbuild)$ Makefile
  55. include makefile.syntax
  56. file (CMakeLists.txt|.\*.cmake)$ CMake
  57. include cmake.syntax
  58. file meson\\.build$ Meson\sBuild\sFile
  59. include meson.syntax
  60. file ..\*\\.(?i:pas|dpr|inc)$ Pascal\sProgram
  61. include pascal.syntax
  62. file ..\*\\.(?i:ad[abs])$ Ada\sProgram
  63. include ada95.syntax
  64. file ..\*\\.(?i:i?tcl)$ Tcl\sProgram
  65. include tcl.syntax
  66. file ..\*\\.(?i:sl)$ S-Lang\sProgram
  67. include slang.syntax
  68. file ..\*\\.tex$ LaTeX\s2.09\sDocument
  69. include latex.syntax
  70. file ..\*\\.(?i:texi|texinfo)$ Texinfo\sDocument
  71. include texinfo.syntax
  72. file ..\*\\.c$ C\sProgram
  73. include c.syntax
  74. file ..\*\\.([hC]|(?i:cxx|cc|cpp|hpp|hxx|hh)|[Hh]\\.in)$ C/C\+\+\sProgram
  75. include cxx.syntax
  76. file ..\*\\.d$ D\sProgram
  77. include d.syntax
  78. file ..\*\\.(?i:f)$ Fortran\sProgram
  79. include fortran.syntax
  80. file ..\*\\.go$ GoLang\sProgram
  81. include go.syntax
  82. file ..\*\\.rs$ Rust\sProgram
  83. include rust.syntax
  84. file ..\*\\.(?i:f)9[05]$ Freeform\sFortran\sProgram
  85. include f90.syntax
  86. file ..\*\\.i$ SWIG\sSource
  87. include swig.syntax
  88. file ..\*\\.(?i:php)[0-9]?$ PHP\sProgram
  89. include php.syntax
  90. file ..\*\\.ij[xs]$ J\sFile
  91. include j.syntax
  92. file ..\*\\.(?i:java?|groovy)$ Java\sProgram
  93. include java.syntax
  94. file ..\*\\.(properties|config)$ Java\sFile
  95. include properties.syntax
  96. file ..\*\\.(?i:cs)$ C\#\sProgram
  97. include cs.syntax
  98. file ..\*\\.(?i:m?js)$ JavaScript\sProgram ^#!.\*[\s/](node|nodejs)\\b
  99. include js.syntax
  100. file ..\*\\.(?i:ts)$ TypeScript\sProgram
  101. include ts.syntax
  102. file ..\*\\.(?i:as)$ ActionScript\sProgram
  103. include as.syntax
  104. file ..\*\\.(as[achmp]x)$ ASPX\sFile
  105. include aspx.syntax
  106. file ..\*\\.st$ SmallTalk\sProgram
  107. include smalltalk.syntax
  108. file ..\*\\.(lisp|lsp|el)$ Lisp\sProgram
  109. include lisp.syntax
  110. file ..\*\\.(ml[ilpy]?)$ ML\sProgram
  111. include ml.syntax
  112. file ..\*\\.m$ Matlab\sor\sOctave\sFile
  113. include octave.syntax
  114. file ..\*\\.(?i:sql)$ SQL\sProgram
  115. include sql.syntax
  116. file ..\*\\.(?i:hql)$ HiveQL\sProgram
  117. include hive.syntax
  118. file ..\*\\.(spec|spec\\.in)$ RPM\sSpecfile
  119. include spec.syntax
  120. file ..\*\\.repo$ YUM\sRepo\sFile
  121. include yum-repo.syntax
  122. file ..\*\\.awk$ AWK\sFile
  123. include awk.syntax
  124. file ..\*\\.(?i:[cq]ss)$ CSS\sFile
  125. include css.syntax
  126. file .\*ChangeLog[\\\.A-Za-z0-9_]\*$ GNU\sChangeLog\sFile
  127. include changelog.syntax
  128. file (..\*\\.m4$|configure\\.in|configure\\.ac) M4\sMacroprocessor\sSource
  129. include m4.syntax
  130. file ..\*\\.(bat|cmd)$ DOS\sBatch
  131. include dos.syntax
  132. file ..\*\\.po[tx]?$ PO\sFile
  133. include po.syntax
  134. file ..\*\\.(?i:asm|s)$ ASM\sProgram
  135. include assembler.syntax
  136. file ..\*\\.(?i:pov)$ POV\sScript
  137. include povray.syntax
  138. file .\*\\.(ebuild|eclass)$ Gentoo\sEbuild
  139. include ebuild.syntax
  140. file ..\*\\.(?i:lua)$ Lua\sProgram ^#!.\*[\s/]lua
  141. include lua.syntax
  142. file ..\*\\.(?i:idl)$ CORBA\sIDL
  143. include idl.syntax
  144. file Don_t_match_me Mail\sfolder ^(From|Return-(P|p)ath:|From:|Date:)\s
  145. include mail.syntax
  146. file \\.procmailrc$ Procmail\sRC\sFile ^#/usr/bin/procmail
  147. include procmail.syntax
  148. file sources.list$ sources\slist
  149. include debian-sources-list.syntax
  150. file control$ Debian\scontrol\sfile
  151. include debian-control.syntax
  152. file (rules|rocks)$ Debian\srules
  153. include makefile.syntax
  154. file .\*changelog$ Debian\schangelog\sfile
  155. include debian-changelog.syntax
  156. file changelog.Debian$ Debian\schangelog\sfile
  157. include debian-changelog.syntax
  158. file ..\*\\.dsc$ Debian\sdescriptiom\sfile
  159. include debian-description.syntax
  160. file ..\*\\.(?i:hsc?)$ Haskell\sprogram
  161. include haskell.syntax
  162. file ..\*\\.(?i:cabal)$ Cabal\sconfig\sfile
  163. include cabal.syntax
  164. file ..\*\\.(?i:n)$ Nemerle\sProgram
  165. include nemerle.syntax
  166. file ..\*\\.(?i:v)$ Verilog\sDevice\sDescription
  167. include verilog.syntax
  168. file ..\*\\.(?i:hdl|vhdl?)$ VHDL\sDevice\sDescription
  169. include vhdl.syntax
  170. file ..\*\\.erl$ Erlang\sProgram ^(-module\\(|#!.*escript)
  171. include erlang.syntax
  172. file ..\*\\.hrl$ Erlang\sHeader ^-record\\(
  173. include erlang.syntax
  174. file .\*named.conf$ Bind9\sconfiguration
  175. include named.syntax
  176. file ..\*\\.strace$ Strace\sdebug\soutput
  177. include strace.syntax
  178. file PKGBUILD$ Arch\spackage\sbuild\sscript
  179. include PKGBUILD.syntax
  180. file \\.install$ Arch\spackage\sinstall\sscript
  181. include sh.syntax
  182. file ..\*\\.(l|y|yxx|ypp)$ Lex/Flex/Yacc/Bison\ssource
  183. include yxx.syntax
  184. file ..\*\\.dlink\\.sw$ D-Link\sSwitch\sCommands
  185. include dlink.syntax
  186. file ..\*\\.(?i:jalt?)$ Jal\ssource
  187. include jal.syntax
  188. file ..\*\\.(?i:lkr)$ PIC\slinker\sscript\sfile
  189. include lkr.syntax
  190. file ..\*\\.pp$ Puppet\smanifest\sfile
  191. include puppet.syntax
  192. file ..\*\\.(glsl|vert|frag|geom)$ GLSL\sProgram
  193. include glsl.syntax
  194. file ..\*\\.cuh?$ CUDA\sProgram
  195. include cuda.syntax
  196. file ..\*\\.cl$ OpenCL\sProgram
  197. include opencl.syntax
  198. file ..\*\\.(?i:ya?ml)$ YAML\sFile
  199. include yaml.syntax
  200. file .\*\\.osl$ OSL\sProgram
  201. include osl.syntax
  202. file .\*\\.([rR]|Rd|Rscript)$ R\sProgram
  203. include r.syntax
  204. file ..\*\\.(?i:md)$ Markdown
  205. include markdown.syntax
  206. file ..\*\\.proto$ Protobuf\sFile
  207. include protobuf.syntax
  208. file ..\*\\.(?i:yab)$ Yabasic\s(Yet\sAnother\sBASIC)
  209. include markdown.syntax
  210. file .\* unknown
  211. include unknown.syntax