textpow 0.10.1 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (193) hide show
  1. data/.travis.yml +7 -0
  2. data/Gemfile +10 -0
  3. data/Gemfile.lock +30 -0
  4. data/{History.txt → History.rdoc} +10 -0
  5. data/{README.txt → MIT-LICENSE.txt} +0 -30
  6. data/README.rdoc +82 -0
  7. data/Rakefile +42 -49
  8. data/bin/plist2syntax +0 -0
  9. data/bin/plist2yaml +0 -0
  10. data/examples/benchmark_js.rb +13 -0
  11. data/examples/jquery.js +9046 -0
  12. data/lib/textpow.rb +43 -3
  13. data/lib/textpow/debug_processor.rb +35 -35
  14. data/lib/textpow/recording_processor.rb +13 -0
  15. data/lib/textpow/score_manager.rb +60 -60
  16. data/lib/textpow/syntax.rb +303 -262
  17. data/lib/textpow/syntax/broken/markdown.syntax +519 -0
  18. data/lib/textpow/syntax/broken/php.syntax +1253 -0
  19. data/lib/textpow/syntax/buggy/nemerle.syntax +74 -0
  20. data/lib/textpow/syntax/old/YAML.yaml +160 -0
  21. data/lib/textpow/syntax/old/txt2tags.yaml +139 -0
  22. data/lib/textpow/syntax/source.actionscript.syntax +97 -0
  23. data/lib/textpow/syntax/source.active4d.library.syntax +21 -0
  24. data/lib/textpow/syntax/source.active4d.syntax +276 -0
  25. data/lib/textpow/syntax/source.ada.syntax +33 -0
  26. data/lib/textpow/syntax/source.antlr.syntax +151 -0
  27. data/lib/textpow/syntax/source.apache-config.mod_perl.syntax +50 -0
  28. data/lib/textpow/syntax/source.apache-config.syntax +191 -0
  29. data/lib/textpow/syntax/source.applescript.syntax +384 -0
  30. data/lib/textpow/syntax/source.asp.syntax +70 -0
  31. data/lib/textpow/syntax/source.asp.vb.net.syntax +129 -0
  32. data/lib/textpow/syntax/source.c++.qt.syntax +26 -0
  33. data/lib/textpow/syntax/source.c++.syntax +186 -0
  34. data/lib/textpow/syntax/source.c-sharp.syntax +59 -0
  35. data/lib/textpow/syntax/source.c.ragel.syntax +201 -0
  36. data/lib/textpow/syntax/source.c.syntax +414 -0
  37. data/lib/textpow/syntax/source.camlp4.ocaml.syntax +36 -0
  38. data/lib/textpow/syntax/source.cm.syntax +32 -0
  39. data/lib/textpow/syntax/source.coffee.syntax +216 -0
  40. data/lib/textpow/syntax/source.context-free.syntax +176 -0
  41. data/lib/textpow/syntax/source.css.beta.syntax +1925 -0
  42. data/lib/textpow/syntax/source.css.syntax +195 -0
  43. data/lib/textpow/syntax/source.d.syntax +142 -0
  44. data/lib/textpow/syntax/source.diff.syntax +81 -0
  45. data/lib/textpow/syntax/source.dot.syntax +47 -0
  46. data/lib/textpow/syntax/source.dylan.syntax +62 -0
  47. data/lib/textpow/syntax/source.eiffel.syntax +78 -0
  48. data/lib/textpow/syntax/source.erlang.syntax +922 -0
  49. data/lib/textpow/syntax/source.fortran.syntax +141 -0
  50. data/lib/textpow/syntax/source.fscript.syntax +80 -0
  51. data/lib/textpow/syntax/source.fxscript.syntax +142 -0
  52. data/lib/textpow/syntax/source.gri.syntax +83 -0
  53. data/lib/textpow/syntax/source.groovy.groovy.syntax +191 -0
  54. data/lib/textpow/syntax/source.haskell.syntax +88 -0
  55. data/lib/textpow/syntax/source.icalendar.syntax +32 -0
  56. data/lib/textpow/syntax/source.inform.syntax +48 -0
  57. data/lib/textpow/syntax/source.ini.syntax +55 -0
  58. data/lib/textpow/syntax/source.io.syntax +81 -0
  59. data/lib/textpow/syntax/source.java-props.syntax +20 -0
  60. data/lib/textpow/syntax/source.java.syntax +211 -0
  61. data/lib/textpow/syntax/source.js.greasemonkey.syntax +34 -0
  62. data/lib/textpow/syntax/source.js.jquery.syntax +114 -0
  63. data/lib/textpow/syntax/source.js.mootools.syntax +572 -0
  64. data/lib/textpow/syntax/source.js.prototype.bracketed.syntax +140 -0
  65. data/lib/textpow/syntax/source.js.prototype.syntax +72 -0
  66. data/lib/textpow/syntax/source.js.syntax +256 -0
  67. data/lib/textpow/syntax/source.js.yui.syntax +176 -0
  68. data/lib/textpow/syntax/source.json.syntax +136 -0
  69. data/lib/textpow/syntax/source.lex.syntax +219 -0
  70. data/lib/textpow/syntax/source.lighttpd-config.syntax +54 -0
  71. data/lib/textpow/syntax/source.lilypond.syntax +492 -0
  72. data/lib/textpow/syntax/source.lisp.syntax +61 -0
  73. data/lib/textpow/syntax/source.logo.syntax +29 -0
  74. data/lib/textpow/syntax/source.logtalk.syntax +152 -0
  75. data/lib/textpow/syntax/source.lua.syntax +86 -0
  76. data/lib/textpow/syntax/source.makefile.syntax +36 -0
  77. data/lib/textpow/syntax/source.matlab.syntax +142 -0
  78. data/lib/textpow/syntax/source.mel.syntax +92 -0
  79. data/lib/textpow/syntax/source.mips.syntax +66 -0
  80. data/lib/textpow/syntax/source.ml.syntax +121 -0
  81. data/lib/textpow/syntax/source.modula-3.syntax +47 -0
  82. data/lib/textpow/syntax/source.nant-build.syntax +53 -0
  83. data/lib/textpow/syntax/source.objc++.syntax +18 -0
  84. data/lib/textpow/syntax/source.objc.syntax +233 -0
  85. data/lib/textpow/syntax/source.ocaml.syntax +764 -0
  86. data/lib/textpow/syntax/source.ocamllex.syntax +167 -0
  87. data/lib/textpow/syntax/source.ocamlyacc.syntax +184 -0
  88. data/lib/textpow/syntax/source.open-gl.syntax +14 -0
  89. data/lib/textpow/syntax/source.pascal.syntax +77 -0
  90. data/lib/textpow/syntax/source.pascal.vectorscript.syntax +57 -0
  91. data/lib/textpow/syntax/source.perl.syntax +1113 -0
  92. data/lib/textpow/syntax/source.php.cake.syntax +55 -0
  93. data/lib/textpow/syntax/source.plist.tm-grammar.syntax +708 -0
  94. data/lib/textpow/syntax/source.postscript.syntax +114 -0
  95. data/lib/textpow/syntax/source.processing.syntax +106 -0
  96. data/lib/textpow/syntax/source.prolog.syntax +40 -0
  97. data/lib/textpow/syntax/source.python.django.syntax +21 -0
  98. data/lib/textpow/syntax/source.python.syntax +868 -0
  99. data/lib/textpow/syntax/source.qmake.syntax +114 -0
  100. data/lib/textpow/syntax/source.quake-config.syntax +32 -0
  101. data/lib/textpow/syntax/source.r-console.syntax +16 -0
  102. data/lib/textpow/syntax/source.r.syntax +81 -0
  103. data/lib/textpow/syntax/source.regexp.oniguruma.syntax +107 -0
  104. data/lib/textpow/syntax/source.regexp.python.syntax +109 -0
  105. data/lib/textpow/syntax/source.regexp.syntax +50 -0
  106. data/lib/textpow/syntax/source.remind.syntax +253 -0
  107. data/lib/textpow/syntax/source.rez.syntax +80 -0
  108. data/lib/textpow/syntax/source.ruby.experimental.syntax +145 -0
  109. data/lib/textpow/syntax/source.ruby.rails.syntax +88 -0
  110. data/lib/textpow/syntax/source.ruby.syntax +1035 -0
  111. data/lib/textpow/syntax/source.s5.syntax +69 -0
  112. data/lib/textpow/syntax/source.sass.syntax +45 -0
  113. data/lib/textpow/syntax/source.scheme.syntax +347 -0
  114. data/lib/textpow/syntax/source.scilab.syntax +41 -0
  115. data/lib/textpow/syntax/source.scss.syntax +527 -0
  116. data/lib/textpow/syntax/source.shell.syntax +384 -0
  117. data/lib/textpow/syntax/source.slate.syntax +149 -0
  118. data/lib/textpow/syntax/source.smarty.syntax +63 -0
  119. data/lib/textpow/syntax/source.sql.ruby.syntax +18 -0
  120. data/lib/textpow/syntax/source.sql.syntax +237 -0
  121. data/lib/textpow/syntax/source.ssh-config.syntax +33 -0
  122. data/lib/textpow/syntax/source.strings.syntax +39 -0
  123. data/lib/textpow/syntax/source.swig.syntax +57 -0
  124. data/lib/textpow/syntax/source.tcl.macports.syntax +163 -0
  125. data/lib/textpow/syntax/source.tcl.syntax +152 -0
  126. data/lib/textpow/syntax/source.yaml.syntax +160 -0
  127. data/lib/textpow/syntax/text.active4d-ini.syntax +50 -0
  128. data/lib/textpow/syntax/text.bbcode.syntax +287 -0
  129. data/lib/textpow/syntax/text.bibtex.syntax +151 -0
  130. data/lib/textpow/syntax/text.blog.html.syntax +41 -0
  131. data/lib/textpow/syntax/text.blog.markdown.syntax +42 -0
  132. data/lib/textpow/syntax/text.blog.syntax +27 -0
  133. data/lib/textpow/syntax/text.blog.textile.syntax +27 -0
  134. data/lib/textpow/syntax/text.gtdalt.syntax +143 -0
  135. data/lib/textpow/syntax/text.haml.syntax +88 -0
  136. data/lib/textpow/syntax/text.html.asp.net.syntax +424 -0
  137. data/lib/textpow/syntax/text.html.asp.syntax +27 -0
  138. data/lib/textpow/syntax/text.html.basic.syntax +362 -0
  139. data/lib/textpow/syntax/text.html.cfm.syntax +119 -0
  140. data/lib/textpow/syntax/text.html.django.syntax +36 -0
  141. data/lib/textpow/syntax/text.html.dokuwiki.syntax +204 -0
  142. data/lib/textpow/syntax/text.html.doxygen.syntax +43 -0
  143. data/lib/textpow/syntax/text.html.markdown.multimarkdown.syntax +39 -0
  144. data/lib/textpow/syntax/text.html.mason.syntax +119 -0
  145. data/lib/textpow/syntax/text.html.mediawiki.syntax +567 -0
  146. data/lib/textpow/syntax/text.html.mt.syntax +162 -0
  147. data/lib/textpow/syntax/text.html.ruby.syntax +40 -0
  148. data/lib/textpow/syntax/text.html.strict.active4d.syntax +311 -0
  149. data/lib/textpow/syntax/text.html.tcl.syntax +26 -0
  150. data/lib/textpow/syntax/text.html.textile.syntax +215 -0
  151. data/lib/textpow/syntax/text.html.tt.syntax +121 -0
  152. data/lib/textpow/syntax/text.html.twiki.syntax +241 -0
  153. data/lib/textpow/syntax/text.html.xhtml.1-strict.syntax +4027 -0
  154. data/lib/textpow/syntax/text.log.latex.syntax +50 -0
  155. data/lib/textpow/syntax/text.mail.markdown.syntax +118 -0
  156. data/lib/textpow/syntax/text.man.syntax +17 -0
  157. data/lib/textpow/syntax/text.moinmoin.syntax +189 -0
  158. data/lib/textpow/syntax/text.plain.gtd.syntax +22 -0
  159. data/lib/textpow/syntax/text.plain.release-notes.syntax +46 -0
  160. data/lib/textpow/syntax/text.plain.syntax +32 -0
  161. data/lib/textpow/syntax/text.plist.syntax +635 -0
  162. data/lib/textpow/syntax/text.pmwiki.syntax +113 -0
  163. data/lib/textpow/syntax/text.restructuredtext.syntax +250 -0
  164. data/lib/textpow/syntax/text.setext.syntax +147 -0
  165. data/lib/textpow/syntax/text.subversion-commit.syntax +36 -0
  166. data/lib/textpow/syntax/text.tabular.csv.syntax +68 -0
  167. data/lib/textpow/syntax/text.tabular.tsv.syntax +50 -0
  168. data/lib/textpow/syntax/text.tex.latex.beamer.syntax +41 -0
  169. data/lib/textpow/syntax/text.tex.latex.haskell.syntax +24 -0
  170. data/lib/textpow/syntax/text.tex.latex.memoir.syntax +64 -0
  171. data/lib/textpow/syntax/text.tex.latex.rd.syntax +91 -0
  172. data/lib/textpow/syntax/text.tex.latex.sweave.syntax +84 -0
  173. data/lib/textpow/syntax/text.tex.latex.syntax +566 -0
  174. data/lib/textpow/syntax/text.tex.math.syntax +49 -0
  175. data/lib/textpow/syntax/text.tex.syntax +86 -0
  176. data/lib/textpow/syntax/text.txt2tags.syntax +79 -0
  177. data/lib/textpow/syntax/text.xml.apple-dist.syntax +77 -0
  178. data/lib/textpow/syntax/text.xml.strict.syntax +92 -0
  179. data/lib/textpow/syntax/text.xml.syntax +180 -0
  180. data/lib/textpow/syntax/text.xml.xsl.syntax +60 -0
  181. data/lib/textpow/version.rb +3 -0
  182. data/spec/fixtures/objeck.plist +107 -0
  183. data/spec/fixtures/utf8.txt +1 -0
  184. data/spec/spec_helper.rb +2 -0
  185. data/spec/textpow/score_manager_spec.rb +20 -0
  186. data/spec/textpow/syntax_files_spec.rb +26 -0
  187. data/spec/textpow/syntax_spec.rb +225 -0
  188. data/spec/textpow_spec.rb +57 -0
  189. data/textpow.gemspec +19 -0
  190. metadata +246 -68
  191. data/Manifest.txt +0 -13
  192. data/mm/manual.mm +0 -266
  193. data/test/test_textpow.rb +0 -25
@@ -0,0 +1,61 @@
1
+ ---
2
+ name: Lisp
3
+ fileTypes:
4
+ - lisp
5
+ - cl
6
+ - l
7
+ - mud
8
+ - el
9
+ scopeName: source.lisp
10
+ uuid: 00D451C9-6B1D-11D9-8DFA-000D93589AF6
11
+ foldingStartMarker: \(
12
+ patterns:
13
+ - name: comment.line.semicolon.lisp
14
+ captures:
15
+ "1":
16
+ name: punctuation.definition.comment.lisp
17
+ match: (;).*$\n?
18
+ - name: meta.function.lisp
19
+ captures:
20
+ "2":
21
+ name: storage.type.function-type.lisp
22
+ "4":
23
+ name: entity.name.function.lisp
24
+ match: (\b(?i:(defun|defmethod|defmacro))\b)(\s+)((\w|\-|\!|\?)*)
25
+ - name: constant.character.lisp
26
+ captures:
27
+ "1":
28
+ name: punctuation.definition.constant.lisp
29
+ match: (#)(\w|[\\+-=<>'"&#])+
30
+ - name: variable.other.global.lisp
31
+ captures:
32
+ "1":
33
+ name: punctuation.definition.variable.lisp
34
+ "3":
35
+ name: punctuation.definition.variable.lisp
36
+ match: (\*)(\S*)(\*)
37
+ - name: keyword.control.lisp
38
+ match: \b(?i:case|do|let|loop|if|else|when)\b
39
+ - name: keyword.operator.lisp
40
+ match: \b(?i:eq|neq|and|or)\b
41
+ - name: constant.language.lisp
42
+ match: \b(?i:null|nil)\b
43
+ - name: support.function.lisp
44
+ match: \b(?i:cons|car|cdr|cond|lambda|format|setq|setf|quote|eval|append|list|listp|memberp|t|load|progn)\b
45
+ - name: constant.numeric.lisp
46
+ match: \b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\b
47
+ - name: string.quoted.double.lisp
48
+ endCaptures:
49
+ "0":
50
+ name: punctuation.definition.string.end.lisp
51
+ begin: "\""
52
+ beginCaptures:
53
+ "0":
54
+ name: punctuation.definition.string.begin.lisp
55
+ end: "\""
56
+ patterns:
57
+ - name: constant.character.escape.lisp
58
+ match: \\.
59
+ foldingStopMarker: \)
60
+ keyEquivalent: ^~L
61
+ comment: ""
@@ -0,0 +1,29 @@
1
+ ---
2
+ name: Logo
3
+ fileTypes: []
4
+
5
+ scopeName: source.logo
6
+ uuid: 7613EC24-B0F9-4D01-8706-1D54098BFFD8
7
+ foldingStartMarker: ^to \w+
8
+ patterns:
9
+ - name: entity.name.function.logo
10
+ match: ^to [\w.]+
11
+ - name: keyword.control.logo
12
+ match: continue|do\.until|do\.while|end|for(each)?|if(else|falsetrue|)|repeat|stop|until
13
+ - name: keyword.other.logo
14
+ match: \b(\.defmacro|\.eq|\.macro|\.maybeoutput|\.setbf|\.setfirst|\.setitem|\.setsegmentsize|allopen|allowgetset|and|apply|arc|arctan|arity|array|arrayp|arraytolist|ascii|ashift|back|background|backslashedp|beforep|bitand|bitnot|bitor|bitxor|buried|buriedp|bury|buryall|buryname|butfirst|butfirsts|butlast|bye|cascade|case|caseignoredp|catch|char|clean|clearscreen|cleartext|close|closeall|combine|cond|contents|copydef|cos|count|crossmap|cursor|define|definedp|dequeue|difference|dribble|edall|edit|editfile|edn|edns|edpl|edpls|edps|emptyp|eofp|epspict|equalp|erall|erase|erasefile|ern|erns|erpl|erpls|erps|erract|error|exp|fence|filep|fill|filter|find|first|firsts|forever|form|forward|fput|fullprintp|fullscreen|fulltext|gc|gensym|global|goto|gprop|greaterp|heading|help|hideturtle|home|ignore|int|invoke|iseq|item|keyp|label|last|left|lessp|list|listp|listtoarray|ln|load|loadnoisily|loadpict|local|localmake|log10|lowercase|lput|lshift|macroexpand|macrop|make|map|map.se|mdarray|mditem|mdsetitem|member|memberp|minus|modulo|name|namelist|namep|names|nodes|nodribble|norefresh|not|numberp|openappend|openread|openupdate|openwrite|or|output|palette|parse|pause|pen|pencolor|pendown|pendownp|penerase|penmode|penpaint|penreverse|pensize|penup|pick|plist|plistp|plists|pllist|po|poall|pon|pons|pop|popl|popls|pops|pos|pot|pots|power|pprop|prefix|primitivep|print|printdepthlimit|printwidthlimit|procedurep|procedures|product|push|queue|quoted|quotient|radarctan|radcos|radsin|random|rawascii|readchar|readchars|reader|readlist|readpos|readrawline|readword|redefp|reduce|refresh|remainder|remdup|remove|remprop|repcount|rerandom|reverse|right|round|rseq|run|runparse|runresult|save|savel|savepict|screenmode|scrunch|sentence|setbackground|setcursor|seteditor|setheading|sethelploc|setitem|setlibloc|setmargins|setpalette|setpen|setpencolor|setpensize|setpos|setprefix|setread|setreadpos|setscrunch|settemploc|settextcolor|setwrite|setwritepos|setx|setxy|sety|shell|show|shownp|showturtle|sin|splitscreen|sqrt|standout|startup|step|stepped|steppedp|substringp|sum|tag|test|text|textscreen|thing|throw|towards|trace|traced|tracedp|transfer|turtlemode|type|unbury|unburyall|unburyname|unburyonedit|unstep|untrace|uppercase|usealternatenam|wait|while|window|word|wordp|wrap|writepos|writer|xcor|ycor)\b
15
+ - name: variable.parameter.logo
16
+ captures:
17
+ "1":
18
+ name: punctuation.definition.variable.logo
19
+ match: (\:)(?:\|[^|]*\||[-\w.]*)+
20
+ - name: string.other.word.logo
21
+ match: "\"(?:\\|[^|]*\\||[-\\w.]*)+"
22
+ - name: comment.line.semicolon.logo
23
+ captures:
24
+ "1":
25
+ name: punctuation.definition.comment.logo
26
+ match: (;).*$\n?
27
+ foldingStopMarker: ^end$
28
+ keyEquivalent: ^~L
29
+ comment: Roughed out by Paul Bissex <http://e-scribe.com/news/>
@@ -0,0 +1,152 @@
1
+ ---
2
+ name: Logtalk
3
+ fileTypes:
4
+ - lgt
5
+ - config
6
+ scopeName: source.logtalk
7
+ uuid: C11FA1F2-6EDB-11D9-8798-000A95DAA580
8
+ foldingStartMarker: (/\*|:-\s+(object|protocol|category)(?=[(]))
9
+ patterns:
10
+ - name: comment.block.logtalk
11
+ captures:
12
+ "0":
13
+ name: punctuation.definition.comment.logtalk
14
+ begin: /\*
15
+ end: \*/
16
+ - name: comment.line.percentage.logtalk
17
+ captures:
18
+ "1":
19
+ name: punctuation.definition.comment.logtalk
20
+ match: (%).*$\n?
21
+ - captures:
22
+ "1":
23
+ name: storage.type.opening.logtalk
24
+ "2":
25
+ name: punctuation.definition.storage.type.logtalk
26
+ "4":
27
+ name: entity.name.type.logtalk
28
+ match: ((:-)\s+(object|protocol|category|module))(?:\()([^(,)]+)
29
+ - name: storage.type.closing.logtalk
30
+ captures:
31
+ "1":
32
+ name: punctuation.definition.storage.type.logtalk
33
+ match: (:-)\s+(end_(object|protocol|category))(?=[.])
34
+ - name: storage.type.relations.logtalk
35
+ match: \b(extends|i(nstantiates|mp(orts|lements))|specializes)(?=[(])
36
+ - name: storage.modifier.others.logtalk
37
+ captures:
38
+ "1":
39
+ name: punctuation.definition.storage.modifier.logtalk
40
+ match: (:-)\s+(dynamic|threaded)(?=[.])
41
+ - name: storage.modifier.others.logtalk
42
+ captures:
43
+ "1":
44
+ name: punctuation.definition.storage.modifier.logtalk
45
+ match: (:-)\s+(calls|e(ncoding|xport)|in(itialization|fo)|uses)(?=[(])
46
+ - name: storage.modifier.others.logtalk
47
+ captures:
48
+ "1":
49
+ name: punctuation.definition.storage.modifier.logtalk
50
+ match: (:-)\s+(a(lias|tomic)|info|d(ynamic|iscontiguous)|m(eta_predicate|ode|ultifile)|p(ublic|r(otected|ivate))|op|use(s|_module))(?=[(])
51
+ - name: keyword.operator.message-sending.logtalk
52
+ match: (::|\^\^)
53
+ - name: keyword.operator.mode.logtalk
54
+ match: (\?|@)
55
+ - name: keyword.operator.comparison.term.logtalk
56
+ match: (@=<|@<|@>|@>=|==|\\==)
57
+ - name: keyword.operator.comparison.arithmetic.logtalk
58
+ match: (=<|<|>|>=|=:=|=\\=)
59
+ - name: keyword.operator.bitwise.logtalk
60
+ match: (<<|>>|/\\|\\/|\\)
61
+ - name: keyword.operator.evaluable.logtalk
62
+ match: \b(mod|rem)\b
63
+ - name: keyword.operator.evaluable.logtalk
64
+ match: (\*\*|\+|-|\*|/|//)
65
+ - name: keyword.operator.misc.logtalk
66
+ match: (:-|!|\\+|,|;|-->|->|=|\=|\.|=\.\.|\bis\b)
67
+ - name: support.function.control.logtalk
68
+ match: \b(true|fail|repeat)\b(?![()])
69
+ - name: support.function.control.logtalk
70
+ match: \b(ca(ll|tch)|throw|once)(?=[(])
71
+ - name: support.function.chars-and-bytes-io.logtalk
72
+ match: \b((get|peek|put)_(char|code|byte)|nl)(?=[(])
73
+ - name: support.function.chars-and-bytes-io.logtalk
74
+ match: \bnl\b
75
+ - name: support.function.atom-term-processing.logtalk
76
+ match: \b(atom_(length|c(hars|o(ncat|des)))|sub_atom|char_code|number_c(hars|odes))(?=[(])
77
+ - name: support.function.term-testing.logtalk
78
+ match: \b(var|atom|integer|float|atomic|compound|n(onvar|umber))(?=[(])
79
+ - name: support.function.term-io.logtalk
80
+ match: \b(read_term|read|write|write(q|_(canonical|term))|op|current_op|char_conversion|current_char_conversion)(?=[(])
81
+ - name: support.function.term-creation-and-decomposition.logtalk
82
+ match: \b(arg|copy_term|functor)(?=[(])
83
+ - name: support.function.term-unification.logtalk
84
+ match: \b(unify_with_occurs_check)(?=[(])
85
+ - name: support.function.stream-selection-and-control.logtalk
86
+ match: \b((set|current)_(in|out)put|open|close|flush_output|stream_property|at_end_of_stream|set_stream_position)(?=[(])
87
+ - name: support.function.stream-selection-and-control.logtalk
88
+ match: \b(flush_output|at_end_of_stream)\b(?![()])
89
+ - name: support.function.prolog-flags.logtalk
90
+ match: \b((set|current)_prolog_flag)(?=[(])
91
+ - name: support.function.compiling-and-loading.logtalk
92
+ match: \b(logtalk_(compile|l(ibrary_path|oad)))(?=[(])
93
+ - name: support.function.event-handling.logtalk
94
+ match: \b((abolish|define)_events|current_event)(?=[(])
95
+ - name: support.function.implementation-defined-hooks.logtalk
96
+ match: \b((current|set)_logtalk_flag|halt)(?=[(])
97
+ - name: support.function.implementation-defined-hooks.logtalk
98
+ match: \b(halt)\b
99
+ - name: support.function.entity-creation-and-abolishing.logtalk
100
+ match: \b((c(reate|urrent)|abolish)_(object|protocol|category))(?=[(])
101
+ - name: support.function.reflection.logtalk
102
+ match: \b((object|protocol|category)_property|extends_(object|protocol)|imp(orts_category|lements_protocol)|(instantiates|specializes)_class)(?=[(])
103
+ - name: support.function.logtalk
104
+ match: \b((for|retract)all)(?=[(])
105
+ - name: support.function.execution-context.logtalk
106
+ match: \b(parameter|se(lf|nder)|this)(?=[(])
107
+ - name: support.function.database.logtalk
108
+ match: \b(a(bolish|ssert(a|z))|clause|retract|retractall)(?=[(])
109
+ - name: support.function.all-solutions.logtalk
110
+ match: \b((bag|set)of|f(ind|or)all)(?=[(])
111
+ - name: support.function.multi-threading.logtalk
112
+ match: \b(threaded_(call|exit))(?=[(])
113
+ - name: support.function.reflection.logtalk
114
+ match: \b(current_predicate|predicate_property)(?=[(])
115
+ - name: support.function.event-handler.logtalk
116
+ match: \b(before|after)(?=[(])
117
+ - name: support.function.grammar-rule.logtalk
118
+ match: \b(expand_term|term_expansion|phrase)(?=[(])
119
+ - name: string.quoted.single.logtalk
120
+ endCaptures:
121
+ "0":
122
+ name: punctuation.definition.string.end.logtalk
123
+ begin: "'"
124
+ beginCaptures:
125
+ "0":
126
+ name: punctuation.definition.string.begin.logtalk
127
+ end: "'"
128
+ patterns:
129
+ - name: constant.character.escape.logtalk
130
+ match: \\.
131
+ - name: string.quoted.double.logtalk
132
+ endCaptures:
133
+ "0":
134
+ name: punctuation.definition.string.end.logtalk
135
+ begin: "\""
136
+ beginCaptures:
137
+ "0":
138
+ name: punctuation.definition.string.begin.logtalk
139
+ end: "\""
140
+ patterns:
141
+ - name: constant.character.escape.logtalk
142
+ match: \\.
143
+ - name: constant.numeric.logtalk
144
+ match: \b(0b[0-1]+|0o[0-7]+|0x\h+)\b
145
+ - name: constant.numeric.logtalk
146
+ match: \b(0'.|0''|0'")
147
+ - name: constant.numeric.logtalk
148
+ match: \b(\d+\.?\d*((e|E)(\+|-)?\d+)?)\b
149
+ - name: variable.other.logtalk
150
+ match: \b([A-Z_][A-Za-z0-9_]*)\b
151
+ foldingStopMarker: (\*/|:-\s+end_(object|protocol|category)(?=[.]))
152
+ keyEquivalent: ^~L
@@ -0,0 +1,86 @@
1
+ ---
2
+ name: Lua
3
+ fileTypes:
4
+ - lua
5
+ scopeName: source.lua
6
+ uuid: 93E017CC-6F27-11D9-90EB-000D93589AF7
7
+ foldingStartMarker: ^\s*\b(function|if|for)\b|{[ \t]*$|\[\[
8
+ patterns:
9
+ - name: meta.function.lua
10
+ captures:
11
+ "6":
12
+ name: punctuation.definition.parameters.end.lua
13
+ "1":
14
+ name: keyword.control.lua
15
+ "2":
16
+ name: entity.name.function.scope.lua
17
+ "3":
18
+ name: entity.name.function.lua
19
+ "4":
20
+ name: punctuation.definition.parameters.begin.lua
21
+ "5":
22
+ name: variable.parameter.function.lua
23
+ match: \b(function)\s+([a-zA-Z_.:]+[.:])?([a-zA-Z_]\w*)\s*(\()([^)]*)(\))
24
+ - name: constant.numeric.lua
25
+ match: (?<![\d.])\s0x[a-fA-F\d]+|\b\d+(\.\d+)?([eE]-?\d+)?|\.\d+([eE]-?\d+)?
26
+ - name: string.quoted.single.lua
27
+ endCaptures:
28
+ "0":
29
+ name: punctuation.definition.string.end.lua
30
+ begin: "'"
31
+ beginCaptures:
32
+ "0":
33
+ name: punctuation.definition.string.begin.lua
34
+ end: "'"
35
+ patterns:
36
+ - name: constant.character.escape.lua
37
+ match: \\.
38
+ - name: string.quoted.double.lua
39
+ endCaptures:
40
+ "0":
41
+ name: punctuation.definition.string.end.lua
42
+ begin: "\""
43
+ beginCaptures:
44
+ "0":
45
+ name: punctuation.definition.string.begin.lua
46
+ end: "\""
47
+ patterns:
48
+ - name: constant.character.escape.lua
49
+ match: \\.
50
+ - name: string.quoted.other.multiline.lua
51
+ endCaptures:
52
+ "0":
53
+ name: punctuation.definition.string.end.lua
54
+ begin: (?<!--)\[(=*)\[
55
+ beginCaptures:
56
+ "0":
57
+ name: punctuation.definition.string.begin.lua
58
+ end: \]\1\]
59
+ - name: comment.block.lua
60
+ captures:
61
+ "0":
62
+ name: punctuation.definition.comment.lua
63
+ begin: --\[(=*)\[
64
+ end: \]\1\]
65
+ - name: comment.line.double-dash.lua
66
+ captures:
67
+ "1":
68
+ name: punctuation.definition.comment.lua
69
+ match: (--)(?!\[\[).*$\n?
70
+ - name: keyword.control.lua
71
+ match: \b(break|do|else|for|if|elseif|return|then|repeat|while|until|end|function|local|in)\b
72
+ - name: constant.language.lua
73
+ match: (?<![^.]\.|:)\b(false|nil|true|_G|_VERSION|math\.(pi|huge))\b|(?<![.])\.{3}(?!\.)
74
+ - name: variable.language.self.lua
75
+ match: (?<![^.]\.|:)\b(self)\b
76
+ - name: support.function.lua
77
+ match: (?<![^.]\.|:)\b(assert|collectgarbage|dofile|error|getfenv|getmetatable|ipairs|loadfile|loadstring|module|next|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|tonumber|tostring|type|unpack|xpcall)\b(?=[( {])
78
+ - name: support.function.library.lua
79
+ match: (?<![^.]\.|:)\b(coroutine\.(create|resume|running|status|wrap|yield)|string\.(byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(concat|insert|maxn|remove|sort)|math\.(abs|acos|asin|atan2?|ceil|cosh?|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pow|rad|random|randomseed|sinh?|sqrt|tanh?)|io\.(close|flush|input|lines|open|output|popen|read|tmpfile|type|write)|os\.(clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(cpath|loaded|loadlib|path|preload|seeall)|debug\.(debug|[gs]etfenv|[gs]ethook|getinfo|[gs]etlocal|[gs]etmetatable|getregistry|[gs]etupvalue|traceback))\b(?=[( {])
80
+ - name: keyword.operator.lua
81
+ match: \b(and|or)\b
82
+ - name: keyword.operator.lua
83
+ match: \+|-|%|#|\*|\/|\^|==?|~=|<=?|>=?|(?<!\.)\.{2}(?!\.)
84
+ foldingStopMarker: \bend\b|^\s*}|\]\]
85
+ keyEquivalent: ^~L
86
+ comment: "Lua Syntax: version 0.8"
@@ -0,0 +1,36 @@
1
+ ---
2
+ name: Makefile
3
+ fileTypes:
4
+ - GNUmakefile
5
+ - makefile
6
+ - Makefile
7
+ - OCamlMakefile
8
+ scopeName: source.makefile
9
+ uuid: FF1825E8-6B1C-11D9-B883-000D93589AF6
10
+ patterns:
11
+ - name: variable.other.makefile
12
+ begin: ^(\w|[-_])+\s*\??=
13
+ end: $
14
+ patterns:
15
+ - match: \\\n
16
+ - name: string.interpolated.backtick.makefile
17
+ begin: "`"
18
+ end: "`"
19
+ patterns:
20
+ - include: source.shell
21
+ - name: comment.line.number-sign.makefile
22
+ begin: "#"
23
+ beginCaptures:
24
+ "0":
25
+ name: punctuation.definition.comment.makefile
26
+ end: $\n?
27
+ patterns:
28
+ - name: punctuation.separator.continuation.makefile
29
+ match: (?<!\\)\\$\n
30
+ - name: keyword.control.makefile
31
+ match: ^(\s*)\b(\-??include|ifeq|ifneq|ifdef|ifndef|else|endif|vpath|export|unexport|define|endef|override)\b
32
+ - name: meta.function.makefile
33
+ captures:
34
+ "1":
35
+ name: entity.name.function.makefile
36
+ match: ^([^\t ]+:(?!\=))\s*.*
@@ -0,0 +1,142 @@
1
+ ---
2
+ name: MATLAB
3
+ scopeName: source.matlab
4
+ uuid: 48F8858B-72FF-11D9-BFEE-000D93589AF6
5
+ foldingStartMarker: ^\s*(function|if|switch|while|for|try)\b(?!.*\bend\b).*$
6
+ patterns:
7
+ - name: storage.modifier.matlab
8
+ match: \b(varargin|varargout)\b
9
+ - name: keyword.control.matlab
10
+ match: \b(case|otherwise)\b
11
+ - name: keyword.other.matlab
12
+ match: \b(inputname|get|findobj|allchild|dbstack|stop|waitbar)\b
13
+ - name: meta.scope.expression.matlab
14
+ captures:
15
+ "0":
16
+ name: punctuation.section.scope.matlab
17
+ begin: \({2}
18
+ end: \){2}
19
+ patterns:
20
+ - include: $self
21
+ - name: meta.scope.logical-expression.matlab
22
+ captures:
23
+ "0":
24
+ name: punctuation.section.scope.matlab
25
+ begin: \[{2}
26
+ end: \]{2}
27
+ patterns:
28
+ - name: keyword.operator.logical.matlab
29
+ match: ==|~=|&|~|\|
30
+ comment: do we want a special rule for ( expr )?
31
+ - include: $self
32
+ - name: meta.scope.parens.matlab
33
+ captures:
34
+ "0":
35
+ name: punctuation.section.scope.matlab
36
+ begin: \(
37
+ end: \)
38
+ patterns:
39
+ - include: $self
40
+ - name: comment.line.percentage.matlab
41
+ captures:
42
+ "1":
43
+ name: punctuation.definition.comment.matlab
44
+ match: (%).*$\n?
45
+ - name: variable.other.transpose.matlab
46
+ match: "[a-zA-Z)\\]]'"
47
+ - name: string.quoted.single.matlab
48
+ endCaptures:
49
+ "0":
50
+ name: punctuation.definition.string.end.matlab
51
+ begin: "'"
52
+ beginCaptures:
53
+ "0":
54
+ name: punctuation.definition.string.begin.matlab
55
+ end: (')|\n
56
+ patterns:
57
+ - name: constant.character.escape.matlab
58
+ match: \\.
59
+ - name: string.quoted.double.matlab
60
+ endCaptures:
61
+ "0":
62
+ name: punctuation.definition.string.end.matlab
63
+ begin: "\""
64
+ beginCaptures:
65
+ "0":
66
+ name: punctuation.definition.string.begin.matlab
67
+ end: "\""
68
+ patterns:
69
+ - name: constant.character.escape.matlab
70
+ match: \\.
71
+ - name: keyword.other.matlab
72
+ match: \b(all_va_args|clf|endfor|if|break|endfunction|persistent|catch|endif|return|continue|endwhile|try|else|for|unwind_protect|elseif|function|unwind_protect_cleanup|end|global|while|end_try_catch|gplot|end_unwind_protect|gsplot)\b
73
+ - name: constant.language.boolean.matlab
74
+ match: \b(true|false)\b
75
+ - name: constant.language.matlab
76
+ match: \b(NaN|nan|inf|pi|Inf|realmax|realmin|eps)\b
77
+ - name: support.constant.matlab
78
+ match: \b(F_DUPFD|O_EXCL|filesep|F_GETFD|O_NONBLOCK|i|F_GETFL|O_RDONLY|F_SETFD|O_RDWR|j|F_SETFL|O_TRUNC|I|O_WRONLY|P_tmpdir|program_invocation_name|J|SEEK_CUR|program_name|NA|SEEK_END|SEEK_SET|OCTAVE_HOME|SIG|stderr|OCTAVE_VERSION|argv|stdin|O_APPEND|e|stdout|O_ASYNC|O_CREAT)\b
79
+ - name: support.variable.matlab
80
+ match: \b(DEFAULT_EXEC_PATH|ignore_function_time_stamp|DEFAULT_LOADPATH|max_recursion_depth|EDITOR|output_max_field_width|EXEC_PATH|output_precision|IMAGEPATH|page_output_immediately|INFO_FILE|page_screen_output|INFO_PROGRAM|print_answer_id_name|LOADPATH|print_empty_dimensions|MAKEINFO_PROGRAM|print_rhs_assign_val|PAGER|save_header_format_string|PS1|save_precision|PS2|saving_history|PS4|sighup_dumps_octave_core|__kluge_procbuf_delay__|sigterm_dumps_octave_core|__nargin__|silent_functions|ans|split_long_rows|automatic_replot|string_fill_char|beep_on_error|struct_levels_to_print|completion_append_char|suppress_verbose_help_message|crash_dumps_octave_core|variables_can_hide_functions|current_script_file_name|warn_assign_as_truth_value|debug_on_error|warn_divide_by_zero|debug_on_interrupt|warn_empty_list_elements|debug_on_warning|warn_fortran_indexing|debug_symtab_lookups|warn_function_name_clash|default_save_format|warn_future_time_stamp|echo_executing_commands|warn_imag_to_real|fixed_point_format|warn_matlab_incompatible|gnuplot_binary|warn_missing_semicolon|gnuplot_command_axes|warn_neg_dim_as_zero|gnuplot_command_end|warn_num_to_str|gnuplot_command_plot|warn_precedence_change|gnuplot_command_replot|warn_reload_forces_clear|gnuplot_command_splot|warn_resize_on_range_error|gnuplot_command_title|warn_separator_insert|gnuplot_command_using|warn_single_quote_string|gnuplot_command_with|warn_str_to_num|gnuplot_has_frames|warn_undefined_return_values|history_file|warn_variable_switch_label|history_size)\b
81
+ - name: keyword.other.commands.matlab
82
+ match: \b(__end__|diary|isvarname|set|casesen|echo|load|show|cd|edit_history|ls|type|chdir|format|mark_as_command|unmark_command|clear|gset|mislocked|which|dbclear|gshow|mlock|who|dbstatus|help|more|whos|dbstop|history|munlock|dbtype|hold|run_history|dbwhere|iskeyword|save)\b
83
+ - name: support.function.mapper.matlab
84
+ match: \b(abs|cos|is_nan_or_na|isnan|sign|acos|cosh|isalnum|isprint|sin|acosh|erf|isalpha|ispunct|sinh|angle|erfc|isascii|isspace|sqrt|arg|exp|iscntrl|isupper|tan|asin|finite|isdigit|isxdigit|tanh|asinh|fix|isfinite|lgamma|toascii|atan|floor|isgraph|log|tolower|atanh|gamma|isinf|log10|toupper|ceil|gammaln|islower|real|conj|imag|isna|round)\b
85
+ - name: support.function.general.matlab
86
+ match: \b(ERRNO|iscellstr|__end__|ischar|__error_text__|iscntrl|__print_symbol_info__|iscomplex|__print_symtab_info__|isdigit|abs|isempty|acos|isfield|acosh|isfinite|airy|isglobal|all|isgraph|angle|ishold|any|isieee|append|isinf|arg|iskeyword|asin|islist|asinh|islogical|assignin|islower|atan|ismatrix|atan2|isna|atanh|isnan|atexit|isnumeric|balance|isprint|besselh|ispunct|besseli|isreal|besselj|isspace|besselk|isstream|bessely|isstreamoff|betainc|isstruct|casesen|isupper|cd|isvarname|ceil|isxdigit|cell|kbhit|cellstr|keyboard|char|kill|chdir|kron|chol|lasterr|class|lastwarn|clc|length|clear|lgamma|clearplot|link|clg|linspace|closeplot|list|colloc|load|completion_matches|localtime|conj|log|cos|log10|cosh|lpsolve|cumprod|lpsolve_options|cumsum|ls|daspk|lsode|daspk_options|lsode_options|dasrt|lstat|dasrt_options|lu|dassl|mark_as_command|dassl_options|max|dbclear|min|dbstatus|mislocked|dbstop|mkdir|dbtype|mkfifo|dbwhere|mkstemp|det|mktime|diag|mlock|diary|more|disp|munlock|do_string_escapes|nargin|document|nargout|dup2|native_float_format|echo|ndims|edit_history|nth|eig|numel|endgrent|octave_config_info|endpwent|octave_tmp_file_name|erf|odessa|erfc|odessa_options|error|ones|error_text|pause|eval|pclose|evalin|permute|exec|pinv|exist|pipe|exit|popen|exp|printf|expm|prod|eye|purge_tmp_files|fclose|putenv|fcntl|puts|fdisp|pwd|feof|qr|ferror|quad|feval|quad_options|fflush|quit|fft|qz|fft2|rand|fgetl|randn|fgets|read_readline_init_file|fieldnames|readdir|file_in_loadpath|readlink|file_in_path|real|filter|rehash|find|rename|find_first_of_in_loadpath|reshape|finite|reverse|fix|rmdir|floor|round|fmod|run_history|fnmatch|save|fopen|scanf|fork|schur|format|set|fprintf|setgrent|fputs|setpwent|fread|shell_cmd|freport|show|frewind|sign|fscanf|sin|fseek|sinh|fsolve|size|fsolve_options|sleep|ftell|sort|func2str|source|functions|splice|fwrite|sprintf|gamma|sqrt|gammainc|sqrtm|gammaln|squeeze|getegid|sscanf|getenv|stat|geteuid|str2func|getgid|streamoff|getgrent|strftime|getgrgid|strptime|getgrnam|sum|getpgrp|sumsq|getpid|svd|getppid|syl|getpwent|symlink|getpwnam|system|getpwuid|tan|getrusage|tanh|getuid|tilde_expand|givens|time|glob|tmpfile|gmtime|tmpnam|graw|toascii|gset|tolower|gshow|toupper|help|type|hess|typeinfo|history|umask|hold|undo_string_escapes|home|unlink|ifft|unmark_command|ifft2|usage|imag|usleep|input|va_arg|input_event_hook|va_start|inv|vr_val|inverse|waitpid|ipermute|warning|is_nan_or_na|warranty|isalnum|which|isalpha|who|isascii|whos|isbool|zeros|iscell)\b
87
+ - name: support.function.audio.matlab
88
+ match: \b(lin2mu|mu2lin|record|setaudio|loadaudio|playaudio|saveaudio)\b
89
+ - name: support.function.control.base.matlab
90
+ match: \b(DEMOcontrol|bode_bounds|dlqe|lqe|obsv|__bodquist__|controldemo|dlqr|lqg|place|__freqresp__|ctrb|dlyap|lqr|pzmap|__stepimp__|damp|dre|lsim|rldemo|analdemo|dare|frdemo|ltifr|rlocus|are|dcgain|freqchkw|lyap|step|bddemo|dgram|gram|nichols|tzero|bode|dkalman|impulse|nyquist|tzero2)\b
91
+ - name: support.function.control.hinf.matlab
92
+ match: \b(dgkfdemo|h2syn|hinfnorm|hinfsyn_ric|dhinfdemo|hinf_ctr|hinfsyn|is_dgkf|h2norm|hinfdemo|hinfsyn_chk|wgt1o)\b
93
+ - name: invalid.deprecated.obsolete.function.control.matlab
94
+ match: \b(dezero|packsys|series|syschnames|dlqg|qzval|swapcols|unpacksys|minfo|rotg|swaprows)\b
95
+ - name: support.function.control.system.matlab
96
+ match: \b(__abcddims__|is_observable|sys2tf|sysprune|__syschnamesl__|is_sample|sys2zp|sysreorder|__syscont_disc__|is_signal_list|sysadd|sysrepdemo|__sysdefioname__|is_siso|sysappend|sysscale|__sysdefstname__|is_stabilizable|syschtsam|syssetsignals|__sysgroupn__|is_stable|sysconnect|syssub|__tf2sysl__|jet707|syscont|sysupdate|__zp2ssg2__|listidx|sysdimensions|tf2ss|abcddim|moddemo|sysdisc|tf2sys|buildssic|ord2|sysdup|tf2zp|c2d|packedform|sysgetsignals|tfout|d2c|parallel|sysgettsam|ugain|dmr2d|ss2sys|sysgettype|zp2ss|fir2sys|ss2tf|sysgroup|zp2sys|is_abcd|ss2zp|sysidx|zp2tf|is_controllable|starp|sysmin|zpout|is_detectable|sys2fir|sysmult|is_digital|sys2ss|sysout)\b
97
+ - name: support.function.control.util.matlab
98
+ match: \b(__outlist__|run_cmd|zgfmul|zgrownorm|__zgpbal__|sortcom|zgfslv|zgscal|axis2dlim|strappend|zginit|zgsgiv|prompt|swap|zgreduce|zgshsr)\b
99
+ - name: invalid.deprecated.function.matlab
100
+ match: \b(is_bool|is_matrix|is_struct|setstr|is_complex|is_scalar|is_symmetric|struct_contains|is_global|is_square|is_vector|struct_elements|is_list|is_stream|isstr)\b
101
+ - name: support.function.elfun.matlab
102
+ match: \b(acot|acsc|asec|cot|csc|gcd|sec|acoth|acsch|asech|coth|csch|lcm|sech)\b
103
+ - name: support.function.finance.matlab
104
+ match: \b(fv|fvl|irr|nper|npv|pmt|pv|pvl|rate|vol)\b
105
+ - name: support.function.general.matlab
106
+ match: \b(cart2pol|issquare|prepad|cart2sph|issymmetric|randperm|columns|isvector|rem|common_size|logical|repmat|diff|logspace|rot90|fliplr|mod|rows|flipud|nargchk|shift|ind2sub|nextpow2|sph2cart|int2str|num2str|strerror|is_duplicate_entry|perror|sub2ind|isdefinite|pol2cart|tril|isscalar|postpad|triu)\b
107
+ - name: support.function.image.matlab
108
+ match: \b(colormap|hsv2rgb|imshow|loadimage|rgb2hsv|saveimage|gray|image|ind2gray|ntsc2rgb|rgb2ind|gray2ind|imagesc|ind2rgb|ocean|rgb2ntsc)\b
109
+ - name: support.function.io.matlab
110
+ match: \b(beep)\b
111
+ - name: support.function.linear-algebra.matlab
112
+ match: \b(commutation_matrix|housh|orth|cond|krylov|qzhess|cross|krylovb|rank|dmult|logm|trace|dot|norm|vec|duplication_matrix|null|vech)\b
113
+ - name: support.function.misc.matlab
114
+ match: \b(bincoeff|dump_prefs|ispc|path|toc|bug_report|etime|isunix|popen2|unix|comma|fileparts|list_primes|semicolon|version|computer|flops|menu|tempdir|vertcat|cputime|fullfile|not|tempname|xor|delete|horzcat|pack|texas_lotto|dir|is_leap_year|paren|tic)\b
115
+ - name: support.function.plot.matlab
116
+ match: \b(__axis_label__|__plt__|loglogerr|semilogyerr|__errcomm__|__pltopt1__|mesh|shg|__errplot__|__pltopt__|meshdom|sombrero|__plr1__|axis|meshgrid|stairs|__plr2__|bar|mplot|subplot|__plr__|bottom_title|multiplot|subwindow|__plt1__|close|oneplot|title|__plt2__|contour|plot|top_title|__plt2mm__|errorbar|plot_border|xlabel|__plt2mv__|figure|polar|ylabel|__plt2ss__|grid|semilogx|zlabel|__plt2vm__|hist|semilogxerr|__plt2vv__|loglog|semilogy)\b
117
+ - name: support.function.polynomial.matlab
118
+ match: \b(compan|poly|polyfit|polyreduce|residue|conv|polyder|polyinteg|polyval|roots|deconv|polyderiv|polyout|polyvalm)\b
119
+ - name: support.function.quaternion.matlab
120
+ match: \b(demoquat|qderiv|qmult|qtransvmat|qconj|qderivmat|qtrans|quaternion|qcoordinate_plot|qinv|qtransv)\b
121
+ - name: support.function.set.matlab
122
+ match: \b(complement|create_set|intersection|union)\b
123
+ - name: support.function.signal.matlab
124
+ match: \b(arch_fit|detrend|hamming|spectral_adf|arch_rnd|diffpara|hanning|spectral_xdf|arch_test|durbinlevinson|hurst|spencer|arma_rnd|fftconv|periodogram|stft|autocor|fftfilt|rectangle_lw|synthesis|autocov|fftshift|rectangle_sw|triangle_lw|autoreg_matrix|fractdiff|sinc|triangle_sw|bartlett|freqz|sinetone|unwrap|blackman|freqz_plot|sinewave|yulewalker)\b
125
+ - name: support.function.specfun.matlab
126
+ match: \b(bessel|beta|betai|erfinv|gammai|log2|pow2)\b
127
+ - name: support.function.special-matrix.matlab
128
+ match: \b(hankel|invhilb|toeplitz|hilb|sylvester_matrix|vander)\b
129
+ - name: support.function.statistics.base.matlab
130
+ match: \b(center|iqr|median|ranks|table|cloglog|kendall|moment|run_count|values|cor|kurtosis|ols|skewness|var|corrcoef|logit|ppplot|spearman|cov|mahalanobis|probit|statistics|cut|mean|qqplot|std|gls|meansq|range|studentize)\b
131
+ - name: support.function.statistics.distributions.matlab
132
+ match: \b(beta_cdf|f_inv|normal_inv|beta_inv|f_pdf|normal_pdf|beta_pdf|f_rnd|normal_rnd|beta_rnd|gamma_cdf|pascal_cdf|binomial_cdf|gamma_inv|pascal_inv|binomial_inv|gamma_pdf|pascal_pdf|binomial_pdf|gamma_rnd|pascal_rnd|binomial_rnd|geometric_cdf|poisson_cdf|cauchy_cdf|geometric_inv|poisson_inv|cauchy_inv|geometric_pdf|poisson_pdf|cauchy_pdf|geometric_rnd|poisson_rnd|cauchy_rnd|hypergeometric_cdf|stdnormal_cdf|chisquare_cdf|hypergeometric_inv|stdnormal_inv|chisquare_inv|hypergeometric_pdf|stdnormal_pdf|chisquare_pdf|hypergeometric_rnd|stdnormal_rnd|chisquare_rnd|kolmogorov_smirnov_cdf|t_cdf|discrete_cdf|laplace_cdf|t_inv|discrete_inv|laplace_inv|t_pdf|discrete_pdf|laplace_pdf|t_rnd|discrete_rnd|laplace_rnd|uniform_cdf|empirical_cdf|logistic_cdf|uniform_inv|empirical_inv|logistic_inv|uniform_pdf|empirical_pdf|logistic_pdf|uniform_rnd|empirical_rnd|logistic_rnd|weibull_cdf|exponential_cdf|lognormal_cdf|weibull_inv|exponential_inv|lognormal_inv|weibull_pdf|exponential_pdf|lognormal_pdf|weibull_rnd|exponential_rnd|lognormal_rnd|wiener_rnd|f_cdf|normal_cdf)\b
133
+ - name: support.function.statistics.models.matlab
134
+ match: \b(logistic_regression|logistic_regression_likelihood|logistic_regression_derivatives)\b
135
+ - name: support.function.statistics.tests.matlab
136
+ match: \b(anova|prop_test_2|bartlett_test|run_test|chisquare_test_homogeneity|sign_test|chisquare_test_independence|t_test|cor_test|t_test_2|f_test_regression|t_test_regression|hotelling_test|u_test|hotelling_test_2|var_test|kolmogorov_smirnov_test|welch_test|kolmogorov_smirnov_test_2|wilcoxon_test|kruskal_wallis_test|z_test|manova|z_test_2|mcnemar_test)\b
137
+ - name: support.function.strings.matlab
138
+ match: \b(base2dec|deblank|findstr|lower|str2num|strrep|bin2dec|dec2base|hex2dec|rindex|strcat|substr|blanks|dec2bin|index|split|strcmp|upper|com2str|dec2hex|isletter|str2mat|strjust)\b
139
+ - name: support.function.time.matlab
140
+ match: \b(asctime|clock|ctime|date)\b
141
+ foldingStopMarker: ^\s*(end|return)\b.*$
142
+ keyEquivalent: ^~M