Syntax.in 8.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352
  1. # This file describes which highlighting scheme is applied to a particular
  2. # file in mcedit.
  3. #
  4. #
  5. # System-wide files (this and syntax definitions) are located in
  6. # @datarootdir@/@PACKAGE@/syntax/ directory.
  7. #
  8. # User's files (this and syntax definitions) are located in
  9. # ~/.local/share/@PACKAGE@/syntax directory.
  10. #
  11. # If user's file is missing, system-wide one is used.
  12. #
  13. #
  14. # This file is rescanned on opening of every new editor file.
  15. #
  16. # Format of this file is following.
  17. #
  18. # Each entry consists of two lines: a "file" specification and the
  19. # corresponding highlighting definition ("include"). A file specification
  20. # can have two or three fields, each separated by white-space characters.
  21. #
  22. # The first field is a regular expression that is matched against the file
  23. # name. The second field is a description of the file type and is
  24. # currently unused. The third (optional) field is a regular expression
  25. # that is matched against the first line of the file. The first entry
  26. # that matches wins, that is, all the entries below are ignored.
  27. #
  28. # Certain characters must be quoted in these fields. These are space (\s),
  29. # tabs (\t), backslashes(\\), plus (\+) and asterisk (\*). Braces {} and
  30. # brackets [] must not be quoted in this file. However, they have a special
  31. # meaning when used in the actual syntax definitions.
  32. #
  33. # You can use the following colors in the syntax highlighting files:
  34. # black, blue, brightblue, brightcyan, brightgreen, brightmagenta,
  35. # brightred, brown, cyan, gray, green, lightgray, magenta, red, white,
  36. # yellow
  37. #
  38. file [Ss]yntax$ Syntax\sHighlighting\sdefinitions ^#\ssyntax\srules\sversion\s
  39. include syntax.syntax
  40. file filehighlight\\.ini$ File\sHighlighting\sdefinitions ^#\sfile\shighlight\srules\sversion\s
  41. include filehighlight.syntax
  42. file ..\*\\.e$ Eiffel\sSource\sFile
  43. include eiffel.syntax
  44. file ..\*\\.(diff|rej|patch)|COMMIT_EDITMSG$ Diff\sOutput ^(diff|Index:)\s
  45. include diff.syntax
  46. file ..\*\\.lsm$ LSM\sFile
  47. include lsm.syntax
  48. 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
  49. include sh.syntax
  50. # Since openrc scripts have no extension "by definition", use an empty pattern
  51. # that doesn't match any file name, and therefore only the shebang is used to detect
  52. # syntax highlighting rules (see tickets #4246 and #4252 for details).
  53. file ^$ OpenRC\sRunscript\sFile ^#!\s\*/sbin/openrc-run
  54. include sh.syntax
  55. file ..\*\\.((?i:ini)|desktop|busname|(auto)?mount|net(dev|work)|link|path|service|slice|socket|swap|target|timer)$ INI-based\sFile
  56. include ini.syntax
  57. file ..\*\\.((?i:pl|pm|psgi)|t)$ Perl\sProgram ^#!.\*([\s/]perl|@PERL@)
  58. include perl.syntax
  59. file ..\*\\.(?i:py)$ Python\sProgram ^#!.\*([\s/]python|@PYTHON@)
  60. include python.syntax
  61. file ..\*\\.(pyx|pxd|pxi)$ Cython\sor\sPyrex\sProgram
  62. include cython.syntax
  63. file ..\*\\.(?i:rb)$ Ruby\sProgram ^#!.\*([\s/]ruby|@RUBY@)
  64. include ruby.syntax
  65. file ..\*\\.(man|[0-9n]|[0-9](x|ncurses|ssl|p|pm|menu|form|vga|t|td))$ NROFF\sSource
  66. include nroff.syntax
  67. file ..\*\\.(?i:html?)$ HTML\sFile
  68. include html.syntax
  69. file ..\*\\.((?i:xml|xsd|xslt?|dtd)|qpg|qpg\\.in)$ XML\sdocument (\\?xml\sversion|!DOCTYPE\s)
  70. include xml.syntax
  71. file ..\*\\.cir$ Spice\scircuit
  72. include spice.syntax
  73. file ..\*\\.(?i:tt)$ Template::Toolkit\sFile
  74. include tt.syntax
  75. file (.\*[Mm]akefile[\\\.A-Za-z0-9]\*|..\*\\.mk|..\*\\.mak|Kbuild)$ Makefile
  76. include makefile.syntax
  77. file (CMakeLists.txt|.\*.cmake)$ CMake
  78. include cmake.syntax
  79. file meson\\.build$ Meson\sBuild\sFile
  80. include meson.syntax
  81. file ..\*\\.(?i:pas|dpr|inc)$ Pascal\sProgram
  82. include pascal.syntax
  83. file ..\*\\.(?i:ad[abs])$ Ada\sProgram
  84. include ada95.syntax
  85. file ..\*\\.(?i:i?tcl)$ Tcl\sProgram ^#!.\*([\s/]tclsh|[\s/]wish|/usr/bin/tclsh|/usr/bin/wish)
  86. include tcl.syntax
  87. file ..\*\\.(?i:sl)$ S-Lang\sProgram
  88. include slang.syntax
  89. file ..\*\\.tex$ LaTeX\s2.09\sDocument
  90. include latex.syntax
  91. file ..\*\\.(?i:texi|texinfo)$ Texinfo\sDocument
  92. include texinfo.syntax
  93. file ..\*\\.(dot|gv)$ DOT/Graphviz\sgraph
  94. include dot.syntax
  95. file ..\*\\.c$ C\sProgram
  96. include c.syntax
  97. file ..\*\\.([hC]|(?i:cxx|cc|cpp|c\\\+\\\+|hxx|hh|hpp|h\\\+\\\+|ino)|[Hh]\\.in)$ C/C\+\+\sProgram
  98. include cxx.syntax
  99. file ..\*\\.d$ D\sProgram
  100. include d.syntax
  101. file ..\*\\.(?i:f)$ Fortran\sProgram
  102. include fortran.syntax
  103. file ..\*\\.go$ GoLang\sProgram
  104. include go.syntax
  105. file ..\*\\.rs$ Rust\sProgram
  106. include rust.syntax
  107. file ..\*\\.(?i:f)9[05]$ Freeform\sFortran\sProgram
  108. include f90.syntax
  109. file ..\*\\.i$ SWIG\sSource
  110. include swig.syntax
  111. file ..\*\\.(?i:php)[0-9]?$ PHP\sProgram
  112. include php.syntax
  113. file ..\*\\.ij[xs]$ J\sFile
  114. include j.syntax
  115. file ..\*\\.(?i:java?|groovy|Jenkinsfile)$ Java\sProgram
  116. include java.syntax
  117. file ..\*\\.(properties|config)$ Java\sFile
  118. include properties.syntax
  119. file ..\*\\.(?i:cs)$ C\#\sProgram
  120. include cs.syntax
  121. file ..\*\\.(?i:m?js)$ JavaScript\sProgram ^#!.\*[\s/](node|nodejs)\\b
  122. include js.syntax
  123. file ..\*\\.(?i:json)$ JSON\sFile
  124. include json.syntax
  125. file ..\*\\.(?i:ts)$ TypeScript\sProgram
  126. include ts.syntax
  127. file ..\*\\.(?i:as)$ ActionScript\sProgram
  128. include as.syntax
  129. file ..\*\\.(as[achmp]x)$ ASPX\sFile
  130. include aspx.syntax
  131. file ..\*\\.st$ SmallTalk\sProgram
  132. include smalltalk.syntax
  133. file ..\*\\.(lisp|lsp|el)$ Lisp\sProgram
  134. include lisp.syntax
  135. file ..\*\\.(ml[ilpy]?)$ ML\sProgram
  136. include ml.syntax
  137. file ..\*\\.m$ Matlab\sor\sOctave\sFile
  138. include octave.syntax
  139. file ..\*\\.(?i:sql)$ SQL\sProgram
  140. include sql.syntax
  141. file ..\*\\.(?i:hql)$ HiveQL\sProgram
  142. include hive.syntax
  143. file ..\*\\.(spec|spec\\.in)$ RPM\sSpecfile
  144. include spec.syntax
  145. file ..\*\\.repo$ YUM\sRepo\sFile
  146. include yum-repo.syntax
  147. file ..\*\\.awk$ AWK\sFile
  148. include awk.syntax
  149. file ..\*\\.(?i:[cq]ss)$ CSS\sFile
  150. include css.syntax
  151. file .\*ChangeLog[\\\.A-Za-z0-9_]\*$ GNU\sChangeLog\sFile
  152. include changelog.syntax
  153. file (..\*\\.m4$|configure\\.in|configure\\.ac) M4\sMacroprocessor\sSource
  154. include m4.syntax
  155. file ..\*\\.(bat|cmd)$ DOS\sBatch
  156. include dos.syntax
  157. file ..\*\\.po[tx]?$ PO\sFile
  158. include po.syntax
  159. file ..\*\\.(?i:asm|s)$ ASM\sProgram
  160. include assembler.syntax
  161. file ..\*\\.(?i:pov)$ POV\sScript
  162. include povray.syntax
  163. file .\*\\.(ebuild|eclass)$ Gentoo\sEbuild
  164. include ebuild.syntax
  165. file ..\*\\.(?i:lua)$ Lua\sProgram ^#!.\*[\s/]lua
  166. include lua.syntax
  167. file ..\*\\.(?i:idl)$ CORBA\sIDL
  168. include idl.syntax
  169. file Don_t_match_me Mail\sfolder ^(From|Return-(P|p)ath:|From:|Date:)\s
  170. include mail.syntax
  171. file \\.procmailrc$ Procmail\sRC\sFile ^#/usr/bin/procmail
  172. include procmail.syntax
  173. file sources.list$ sources\slist
  174. include debian-sources-list.syntax
  175. file control$ Debian\scontrol\sfile
  176. include debian-control.syntax
  177. file (rules|rocks)$ Debian\srules
  178. include makefile.syntax
  179. file .\*changelog$ Debian\schangelog\sfile
  180. include debian-changelog.syntax
  181. file changelog.Debian$ Debian\schangelog\sfile
  182. include debian-changelog.syntax
  183. file ..\*\\.dsc$ Debian\sdescriptiom\sfile
  184. include debian-description.syntax
  185. file ..\*\\.(?i:hsc?)$ Haskell\sprogram
  186. include haskell.syntax
  187. file ..\*\\.(?i:cabal)$ Cabal\sconfig\sfile
  188. include cabal.syntax
  189. file ..\*\\.(?i:n)$ Nemerle\sProgram
  190. include nemerle.syntax
  191. file ..\*\\.(?i:(v|sv|vh|svh))$ Verilog/SystemVerilog\sDevice\sDescription
  192. include verilog.syntax
  193. file ..\*\\.(?i:hdl|vhdl?)$ VHDL\sDevice\sDescription
  194. include vhdl.syntax
  195. file ..\*\\.erl$ Erlang\sProgram ^(-module\\(|#!.*escript)
  196. include erlang.syntax
  197. file ..\*\\.hrl$ Erlang\sHeader ^-record\\(
  198. include erlang.syntax
  199. file .\*named.conf$ Bind9\sconfiguration
  200. include named.syntax
  201. file ..\*\\.strace$ Strace\sdebug\soutput
  202. include strace.syntax
  203. file PKGBUILD$ Arch\spackage\sbuild\sscript
  204. include PKGBUILD.syntax
  205. file \\.install$ Arch\spackage\sinstall\sscript
  206. include sh.syntax
  207. file ..\*\\.(l|y|yxx|ypp)$ Lex/Flex/Yacc/Bison\ssource
  208. include yxx.syntax
  209. file ..\*\\.dlink\\.sw$ D-Link\sSwitch\sCommands
  210. include dlink.syntax
  211. file ..\*\\.(?i:jalt?)$ Jal\ssource
  212. include jal.syntax
  213. file ..\*\\.(?i:lkr)$ PIC\slinker\sscript\sfile
  214. include lkr.syntax
  215. file ..\*\\.pp$ Puppet\smanifest\sfile
  216. include puppet.syntax
  217. file ..\*\\.(glsl|vert|frag|geom)$ GLSL\sProgram
  218. include glsl.syntax
  219. file ..\*\\.cuh?$ CUDA\sProgram
  220. include cuda.syntax
  221. file ..\*\\.cl$ OpenCL\sProgram
  222. include opencl.syntax
  223. file ..\*\\.(?i:ya?ml)$ YAML\sFile
  224. include yaml.syntax
  225. file .\*\\.osl$ OSL\sProgram
  226. include osl.syntax
  227. file .\*\\.([rR]|Rd|Rscript)$ R\sProgram
  228. include r.syntax
  229. file ..\*\\.(?i:md)$ Markdown
  230. include markdown.syntax
  231. file ..\*\\.proto$ Protobuf\sFile
  232. include protobuf.syntax
  233. file ..\*\\.(?i:yab)$ Yabasic\s(Yet\sAnother\sBASIC)
  234. include yabasic.syntax
  235. file ..\*\\.(?i:cbl|cob)$ Cobol\sProgram
  236. include cobol.syntax
  237. file ..\*\\.kt$ Kotliin\sSource
  238. include kotlin.syntax
  239. file ..\*\\.swift$ Swift\sProgram
  240. include swift.syntax
  241. file ..\*\\.action$ Privoxy\sFile
  242. include privoxy.syntax
  243. file .\*\\.toml$ TOML\sFile
  244. include toml.syntax
  245. file .\*\\.(mch|ref|imp)$ B\sFile
  246. include b.syntax
  247. file .\* unknown
  248. include unknown.syntax