Syntax.in 8.2 KB

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