Syntax 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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 ..\*\\.(e)$ Eiffel\sSource\sFile
  27. include eiffel.syntax
  28. file ..\*\\.(diff|rej|patch)$ Diff\sOutput ^(diff|Index:)\s
  29. include diff.syntax
  30. file ..\*\\.lsm$ LSM\sFile
  31. include lsm.syntax
  32. file ..\*\\.sh$ Shell\sScript ^#!.\*([\s/]([abd-z]?|ba|pdk)sh|@SH@)
  33. include sh.syntax
  34. file ..\*\\.(pl|PL|pm|PM)$ Perl\sProgram ^#!.\*([\s/]perl|@PERL@)
  35. include perl.syntax
  36. file ..\*\\.(py|PY)$ Python\sProgram ^#!.\*([\s/]python|@PYTHON@)
  37. include python.syntax
  38. file ..\*\\.(rb|RB)$ Ruby\sProgram ^#!.\*([\s/]ruby|@RUBY@)
  39. include ruby.syntax
  40. file ..\*\\.(man|[0-9n]|[0-9](x|ncurses|ssl|p|pm|menu|form|vga|t|td))$ NROFF\sSource
  41. include nroff.syntax
  42. file ..\*\\.(htm|html|HTM|HTML)$ HTML\sFile
  43. include html.syntax
  44. file ..\*\\.(xml|XML|xsd|XSD|xslt?|XSLT?|dtd|DTD|qpg|qpg.in)$ XML\sdocument (\\?xml\sversion|!DOCTYPE\s)
  45. include xml.syntax
  46. file (.\*[Mm]akefile[\\\.A-Za-z0-9]\*|..\*\\.mk|Kbuild)$ Makefile
  47. include makefile.syntax
  48. file ..\*\\.(pp|PP|pas|PAS|dpr|DPR|inc|INC)$ Pascal\sProgram
  49. include pascal.syntax
  50. file ..\*\\.(ada|adb|ads|ADA|ADB|ADS)$ Ada\sProgram
  51. include ada95.syntax
  52. file ..\*\\.(tcl|itcl|TCL|ITCL)$ Tcl\sProgram
  53. include tcl.syntax
  54. file ..\*\\.(sl|SL)$ S-Lang\sProgram
  55. include slang.syntax
  56. file ..\*\\.tex$ LaTeX\s2.09\sDocument
  57. include latex.syntax
  58. file ..\*\.(texi|texinfo|TEXI|TEXINFO)$ Texinfo\sDocument
  59. include texinfo.syntax
  60. file ..\*\\.c$ C\sProgram
  61. include c.syntax
  62. file ..\*\\.([hC]|CC|cxx|cc|cpp|CPP|CXX|hxx|h\.in)$ C/C\+\+\sProgram
  63. include cxx.syntax
  64. file ..\*\\.d$ D\sProgram
  65. include d.syntax
  66. file ..\*\\.[fF]$ Fortran\sProgram
  67. include fortran.syntax
  68. file ..\*\\.[fF]9[05]$ Freeform\sFortran\sProgram
  69. include f90.syntax
  70. file ..\*\\.i$ SWIG\sSource
  71. include swig.syntax
  72. file ..\*\\.(php|PHP)[0-9]?$ PHP\sProgram
  73. include php.syntax
  74. file ..\*\\.ij[xs]$ J\sFile
  75. include j.syntax
  76. file ..\*\\.(java|JAVA|Java|jav|groovy|GROOVY|Groovy)$ Java\sProgram
  77. include java.syntax
  78. file ..\*\\.(cs|CS)$ C\#\sProgram
  79. include cs.syntax
  80. file ..\*\\.(js|JS)$ JavaScript\sProgram
  81. include js.syntax
  82. file ..\*\\.(asax|aspx|ascx|asmx|ashx)$ ASPX\sFile
  83. include aspx.syntax
  84. file ..\*\\.st$ SmallTalk\sProgram
  85. include smalltalk.syntax
  86. file ..\*\\.(lisp|lsp|el|cl)$ Lisp\sProgram
  87. include lisp.syntax
  88. file ..\*\\.(ml|mli|mly|mll|mlp)$ ML\sProgram
  89. include ml.syntax
  90. file ..\*\\.m$ Matlab\sor\sOctave\sFile
  91. include octave.syntax
  92. file ..\*\\.(sql|SQL)$ SQL\sProgram
  93. include sql.syntax
  94. file ..\*\\.(spec|spec\.in)$ RPM\sSpecfile
  95. include spec.syntax
  96. file ..\*\\.(awk)$ AWK\sFile
  97. include awk.syntax
  98. file ..\*\\.(css|qss|CSS|QSS)$ CSS\sFile
  99. include css.syntax
  100. file .\*ChangeLog[\\\.A-Za-z0-9_]\*$ GNU\sChangeLog\sFile
  101. include changelog.syntax
  102. file (..\*\\.m4$|configure\\.in|configure\\.ac) M4\sMacroprocessor\sSource
  103. include m4.syntax
  104. file ..\*\\.(bat|cmd)$ DOS\sBatch
  105. include dos.syntax
  106. file ..\*\\.(po|pot|pox)$ PO\sFile
  107. include po.syntax
  108. file ..\*\\.([Aa][Ss][Mm]|s|S)$ ASM\sProgram
  109. include assembler.syntax
  110. file ..\*\\.([Pp][Oo][Vv])$ POV\sScript
  111. include povray.syntax
  112. file .\*\\.(ebuild|eclass)$ Gentoo\sEbuild
  113. include ebuild.syntax
  114. file ..\*\\.([lL][uU][aA])$ LUA\sProgram ^#!.*/lua
  115. include lua.syntax
  116. file ..\*\\.([iI][dD][lL])$ CORBA\sIDL
  117. include idl.syntax
  118. file Don_t_match_me Mail\sfolder ^(From|Return-(P|p)ath:|From:|Date:)\s
  119. include mail.syntax
  120. file \.procmailrc$ Procmail\sRC\sFile ^#/usr/bin/procmail
  121. include procmail.syntax
  122. file sources.list$ sources\slist
  123. include debian-sources-list.syntax
  124. file control$ Debian\scontrol\sfile
  125. include debian-control.syntax
  126. file (rules|rocks)$ Debian\srules
  127. include makefile.syntax
  128. file .\*changelog$ Debian\schangelog\sfile
  129. include debian-changelog.syntax
  130. file changelog.Debian$ Debian\schangelog\sfile
  131. include debian-changelog.syntax
  132. file .\*\\.dsc$ Debian\sdescriptiom\sfile
  133. include debian-description.syntax
  134. file ..\*\\.([hH][sS][cC]?)$ Haskell\sprogram
  135. include haskell.syntax
  136. file ..\*\\.(n|N)$ Nemerle\sProgram
  137. include nemerle.syntax
  138. file ..\*\\.(hdl|vhd|vdhl|HDL|VHD|VHDL)$ VHDL\sDevice\sDescription
  139. include vhdl.syntax
  140. file ..\*\\.erl$ Erlang\sProgram ^(-module\\(|#!.*escript)
  141. include erlang.syntax
  142. file ..\*\\.hrl$ Erlang\sHeader ^-record\\(
  143. include erlang.syntax
  144. file .\*named.conf$ Bind9\sconfiguration
  145. include named.syntax
  146. file .\*\\.strace$ Strace\sdebug\soutput
  147. include strace.syntax
  148. file .\* unknown
  149. include unknown.syntax