github-linguist 4.7.6 → 4.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (361) hide show
  1. checksums.yaml +4 -4
  2. data/bin/git-linguist +1 -1
  3. data/grammars/file.lasso.json +713 -0
  4. data/grammars/module.ceylon.json +54 -0
  5. data/grammars/objdump.x86asm.json +73 -0
  6. data/grammars/source.Kotlin.json +777 -0
  7. data/grammars/source.LS.json +104 -0
  8. data/grammars/source.MCPOST.json +68 -0
  9. data/grammars/source.MOD.json +70 -0
  10. data/grammars/source.abap.json +176 -0
  11. data/grammars/source.abl.json +138 -0
  12. data/grammars/source.actionscript.3.json +1571 -0
  13. data/grammars/source.acucobol.json +16 -0
  14. data/grammars/source.ada.json +140 -0
  15. data/grammars/source.agda.json +254 -0
  16. data/grammars/source.ahk.json +171 -0
  17. data/grammars/source.alloy.json +44 -0
  18. data/grammars/source.ampl.json +157 -0
  19. data/grammars/source.antlr.json +300 -0
  20. data/grammars/source.apache-config.json +352 -0
  21. data/grammars/source.apache-config.mod_perl.json +70 -0
  22. data/grammars/source.apl.json +442 -0
  23. data/grammars/source.applescript.json +1385 -0
  24. data/grammars/source.apt.json +25 -0
  25. data/grammars/source.asm.x86.json +182 -0
  26. data/grammars/source.asp.json +157 -0
  27. data/grammars/source.aspectj.json +966 -0
  28. data/grammars/source.ats.json +240 -0
  29. data/grammars/source.autoit.3.json +132 -0
  30. data/grammars/source.awk.json +388 -0
  31. data/grammars/source.befunge.json +38 -0
  32. data/grammars/source.bf.json +36 -0
  33. data/grammars/source.bison.json +59 -0
  34. data/grammars/source.blitzmax.json +912 -0
  35. data/grammars/source.boo.json +452 -0
  36. data/grammars/source.brightauthorproject.json +29 -0
  37. data/grammars/source.brightscript.json +158 -0
  38. data/grammars/source.bro.json +409 -0
  39. data/grammars/source.bsv.json +283 -0
  40. data/grammars/source.c++.json +364 -0
  41. data/grammars/source.c++.qt.json +37 -0
  42. data/grammars/source.c.ec.json +39 -0
  43. data/grammars/source.c.json +727 -0
  44. data/grammars/source.c.platform.json +154 -0
  45. data/grammars/source.cache.cmake.json +75 -0
  46. data/grammars/source.cake.json +16 -0
  47. data/grammars/source.camlp4.ocaml.json +63 -0
  48. data/grammars/source.capnp.json +93 -0
  49. data/grammars/source.ceylon.json +77 -0
  50. data/grammars/source.cfscript.cfc.json +170 -0
  51. data/grammars/source.cfscript.json +744 -0
  52. data/grammars/source.chapel.json +240 -0
  53. data/grammars/source.cirru.json +66 -0
  54. data/grammars/source.clarion.json +159 -0
  55. data/grammars/source.click.json +99 -0
  56. data/grammars/source.clips.json +80 -0
  57. data/grammars/source.clojure.json +414 -0
  58. data/grammars/source.cm.json +54 -0
  59. data/grammars/source.cmake.json +181 -0
  60. data/grammars/source.cobol.json +498 -0
  61. data/grammars/source.coffee.json +682 -0
  62. data/grammars/source.compiled-papyrus.json +11 -0
  63. data/grammars/source.cool.json +103 -0
  64. data/grammars/source.coq.json +62 -0
  65. data/grammars/source.crystal.json +2760 -0
  66. data/grammars/source.cs.json +566 -0
  67. data/grammars/source.css.json +630 -0
  68. data/grammars/source.css.less.json +614 -0
  69. data/grammars/source.css.mss.json +256 -0
  70. data/grammars/source.csx.json +16 -0
  71. data/grammars/source.cuda-c++.json +137 -0
  72. data/grammars/source.cython.json +2108 -0
  73. data/grammars/source.d.json +726 -0
  74. data/grammars/source.dart.json +763 -0
  75. data/grammars/source.desktop.json +90 -0
  76. data/grammars/source.diff.json +162 -0
  77. data/grammars/source.dockerfile.json +89 -0
  78. data/grammars/source.dosbatch.json +70 -0
  79. data/grammars/source.dot.json +126 -0
  80. data/grammars/source.dylan.json +217 -0
  81. data/grammars/source.eiffel.json +138 -0
  82. data/grammars/source.elixir.json +971 -0
  83. data/grammars/source.elm.json +356 -0
  84. data/grammars/source.erazor.json +126 -0
  85. data/grammars/source.erlang.json +1674 -0
  86. data/grammars/source.essl.json +50 -0
  87. data/grammars/source.factor.json +258 -0
  88. data/grammars/source.fan.json +188 -0
  89. data/grammars/source.fancy.json +270 -0
  90. data/grammars/source.fish.json +214 -0
  91. data/grammars/source.forth.json +101 -0
  92. data/grammars/source.fortran.json +499 -0
  93. data/grammars/source.fortran.modern.json +226 -0
  94. data/grammars/source.fsharp.fsi.json +14 -0
  95. data/grammars/source.fsharp.fsl.json +14 -0
  96. data/grammars/source.fsharp.fsx.json +18 -0
  97. data/grammars/source.fsharp.json +527 -0
  98. data/grammars/source.gap.json +167 -0
  99. data/grammars/source.gcode.json +25 -0
  100. data/grammars/source.gdscript.json +154 -0
  101. data/grammars/source.gfm.json +1392 -0
  102. data/grammars/source.glsl.json +74 -0
  103. data/grammars/source.gnuplot.json +276 -0
  104. data/grammars/source.go.json +552 -0
  105. data/grammars/source.golo.json +182 -0
  106. data/grammars/source.gosu.2.json +163 -0
  107. data/grammars/source.grace.json +679 -0
  108. data/grammars/source.groovy.gradle.json +73 -0
  109. data/grammars/source.groovy.json +1385 -0
  110. data/grammars/source.harbour.json +450 -0
  111. data/grammars/source.haskell.json +449 -0
  112. data/grammars/source.haxe.2.json +1278 -0
  113. data/grammars/source.hss.1.json +464 -0
  114. data/grammars/source.httpspec.json +287 -0
  115. data/grammars/source.hxml.json +26 -0
  116. data/grammars/source.hy.json +270 -0
  117. data/grammars/source.idl-dlm.json +112 -0
  118. data/grammars/source.idl.json +267 -0
  119. data/grammars/source.idris.json +537 -0
  120. data/grammars/source.inform7.json +187 -0
  121. data/grammars/source.ini.json +113 -0
  122. data/grammars/source.inno.json +69 -0
  123. data/grammars/source.io.json +164 -0
  124. data/grammars/source.ioke.json +272 -0
  125. data/grammars/source.isabelle.root.json +68 -0
  126. data/grammars/source.isabelle.theory.json +106 -0
  127. data/grammars/source.j.json +49 -0
  128. data/grammars/source.jasmin.json +299 -0
  129. data/grammars/source.java-properties.json +97 -0
  130. data/grammars/source.java.json +1026 -0
  131. data/grammars/source.jcl.json +49 -0
  132. data/grammars/source.jflex.json +490 -0
  133. data/grammars/source.jq.json +218 -0
  134. data/grammars/source.js.json +1646 -0
  135. data/grammars/source.js.jsx.json +3185 -0
  136. data/grammars/source.js.objj.json +424 -0
  137. data/grammars/source.js.regexp.json +150 -0
  138. data/grammars/source.js.regexp.replacement.json +30 -0
  139. data/grammars/source.json.json +149 -0
  140. data/grammars/source.julia.json +407 -0
  141. data/grammars/source.lean.json +145 -0
  142. data/grammars/source.lid.json +23 -0
  143. data/grammars/source.lilypond.json +623 -0
  144. data/grammars/source.lisp.json +111 -0
  145. data/grammars/source.litcoffee.json +667 -0
  146. data/grammars/source.livescript.json +616 -0
  147. data/grammars/source.llvm.json +71 -0
  148. data/grammars/source.logos.json +31 -0
  149. data/grammars/source.logtalk.json +315 -0
  150. data/grammars/source.loomscript.json +214 -0
  151. data/grammars/source.lsl.json +216 -0
  152. data/grammars/source.lua.json +191 -0
  153. data/grammars/source.makefile.json +474 -0
  154. data/grammars/source.makegen.json +13 -0
  155. data/grammars/source.man.json +53 -0
  156. data/grammars/source.mask.json +795 -0
  157. data/grammars/source.mata.json +133 -0
  158. data/grammars/source.mathematica.json +429 -0
  159. data/grammars/source.matlab.json +1109 -0
  160. data/grammars/source.maxscript.json +453 -0
  161. data/grammars/source.mercury.json +251 -0
  162. data/grammars/source.meta-info.json +156 -0
  163. data/grammars/source.ml.json +291 -0
  164. data/grammars/source.modelica.json +142 -0
  165. data/grammars/source.modula2.json +103 -0
  166. data/grammars/source.monkey.json +701 -0
  167. data/grammars/source.moonscript.json +149 -0
  168. data/grammars/source.mupad.json +149 -0
  169. data/grammars/source.nant-build.json +86 -0
  170. data/grammars/source.ncl.json +66 -0
  171. data/grammars/source.nemerle.json +137 -0
  172. data/grammars/source.nesc.json +27 -0
  173. data/grammars/source.netlinx.erb.json +47 -0
  174. data/grammars/source.netlinx.json +768 -0
  175. data/grammars/source.nginx.json +824 -0
  176. data/grammars/source.nim.json +1169 -0
  177. data/grammars/source.nim_filter.json +133 -0
  178. data/grammars/source.nimcfg.json +116 -0
  179. data/grammars/source.ninja.json +66 -0
  180. data/grammars/source.nit.json +238 -0
  181. data/grammars/source.nix.json +1200 -0
  182. data/grammars/source.nmml.json +87 -0
  183. data/grammars/source.nsis.json +158 -0
  184. data/grammars/source.objc++.json +19 -0
  185. data/grammars/source.objc.json +918 -0
  186. data/grammars/source.objc.platform.json +277 -0
  187. data/grammars/source.ocaml.json +1426 -0
  188. data/grammars/source.ocamllex.json +305 -0
  189. data/grammars/source.ocamlyacc.json +346 -0
  190. data/grammars/source.octave.json +451 -0
  191. data/grammars/source.ooc.json +692 -0
  192. data/grammars/source.opa.json +206 -0
  193. data/grammars/source.opal.json +415 -0
  194. data/grammars/source.opalsysdefs.json +70 -0
  195. data/grammars/source.opencobol.json +65 -0
  196. data/grammars/source.ox.json +97 -0
  197. data/grammars/source.oz.json +84 -0
  198. data/grammars/source.papyrus-assembly.json +266 -0
  199. data/grammars/source.papyrus.json +231 -0
  200. data/grammars/source.parrot.pir.json +117 -0
  201. data/grammars/source.pascal.json +150 -0
  202. data/grammars/source.perl.6.json +318 -0
  203. data/grammars/source.perl.json +2424 -0
  204. data/grammars/source.perl6fe.json +1755 -0
  205. data/grammars/source.php.zephir.json +362 -0
  206. data/grammars/source.pig_latin.json +172 -0
  207. data/grammars/source.pike.json +62 -0
  208. data/grammars/source.plsql.oracle.json +642 -0
  209. data/grammars/source.po.json +232 -0
  210. data/grammars/source.pogoscript.json +85 -0
  211. data/grammars/source.pony.json +255 -0
  212. data/grammars/source.postscript.json +231 -0
  213. data/grammars/source.pov-ray sdl.json +88 -0
  214. data/grammars/source.powershell.json +755 -0
  215. data/grammars/source.processing.json +885 -0
  216. data/grammars/source.prolog.eclipse.json +206 -0
  217. data/grammars/source.prolog.json +292 -0
  218. data/grammars/source.protobuf.json +395 -0
  219. data/grammars/source.pubspec.json +13 -0
  220. data/grammars/source.puppet.json +494 -0
  221. data/grammars/source.purescript.json +833 -0
  222. data/grammars/source.pyjade.json +1010 -0
  223. data/grammars/source.python.django.json +34 -0
  224. data/grammars/source.python.json +3435 -0
  225. data/grammars/source.python.salt.json +13 -0
  226. data/grammars/source.qmake.json +217 -0
  227. data/grammars/source.qml.json +195 -0
  228. data/grammars/source.r.json +203 -0
  229. data/grammars/source.racket.json +119 -0
  230. data/grammars/source.rebol.json +647 -0
  231. data/grammars/source.red.json +652 -0
  232. data/grammars/source.regexp.babel.json +190 -0
  233. data/grammars/source.regexp.perl6fe.json +220 -0
  234. data/grammars/source.regexp.python.json +434 -0
  235. data/grammars/source.regexp.spin.json +188 -0
  236. data/grammars/source.renpy.json +2181 -0
  237. data/grammars/source.ruby.json +1956 -0
  238. data/grammars/source.ruby.rspec.cucumber.steps.json +274 -0
  239. data/grammars/source.rust.json +212 -0
  240. data/grammars/source.sas.json +370 -0
  241. data/grammars/source.sas_log.json +26 -0
  242. data/grammars/source.sass.json +248 -0
  243. data/grammars/source.sbt.json +36 -0
  244. data/grammars/source.scad.json +152 -0
  245. data/grammars/source.scala.json +739 -0
  246. data/grammars/source.scaml.json +466 -0
  247. data/grammars/source.scheme.json +370 -0
  248. data/grammars/source.scilab.json +103 -0
  249. data/grammars/source.scss.json +1321 -0
  250. data/grammars/source.shell.json +1308 -0
  251. data/grammars/source.smali.json +1671 -0
  252. data/grammars/source.smalltalk.json +135 -0
  253. data/grammars/source.smt.json +173 -0
  254. data/grammars/source.sp.json +118 -0
  255. data/grammars/source.sparql.json +23 -0
  256. data/grammars/source.spin.json +936 -0
  257. data/grammars/source.sqf.json +112 -0
  258. data/grammars/source.sql.json +473 -0
  259. data/grammars/source.stan.json +312 -0
  260. data/grammars/source.stata.json +208 -0
  261. data/grammars/source.strings.json +53 -0
  262. data/grammars/source.stylus.json +1017 -0
  263. data/grammars/source.supercollider.json +100 -0
  264. data/grammars/source.swift.json +983 -0
  265. data/grammars/source.systemverilog.json +1050 -0
  266. data/grammars/source.tcl.json +277 -0
  267. data/grammars/source.tea.json +180 -0
  268. data/grammars/source.thrift.json +704 -0
  269. data/grammars/source.toml.json +327 -0
  270. data/grammars/source.ts.json +1188 -0
  271. data/grammars/source.tsx.json +1421 -0
  272. data/grammars/source.turtle.json +505 -0
  273. data/grammars/source.txl.json +62 -0
  274. data/grammars/source.ucfconstraints.json +72 -0
  275. data/grammars/source.ur.json +43 -0
  276. data/grammars/source.vala.json +814 -0
  277. data/grammars/source.varnish.vcl.json +343 -0
  278. data/grammars/source.vbnet.json +338 -0
  279. data/grammars/source.verilog.json +302 -0
  280. data/grammars/source.vhdl.json +1349 -0
  281. data/grammars/source.viml.json +224 -0
  282. data/grammars/source.webidl.json +814 -0
  283. data/grammars/source.x10.json +68 -0
  284. data/grammars/source.x86asm.json +47 -0
  285. data/grammars/source.xc.json +379 -0
  286. data/grammars/source.xq.json +241 -0
  287. data/grammars/source.xquery.json +193 -0
  288. data/grammars/source.xtend.json +733 -0
  289. data/grammars/source.yaml.json +341 -0
  290. data/grammars/source.yaml.salt.json +348 -0
  291. data/grammars/source.yang.json +81 -0
  292. data/grammars/text.bibtex.json +251 -0
  293. data/grammars/text.cfml.basic.json +736 -0
  294. data/grammars/text.dart-analysis-output.json +162 -0
  295. data/grammars/text.dart-doccomments.json +19 -0
  296. data/grammars/text.elixir.json +45 -0
  297. data/grammars/text.gherkin.feature.json +135 -0
  298. data/grammars/text.groff.json +113 -0
  299. data/grammars/text.haml.json +299 -0
  300. data/grammars/text.html.abl.json +75 -0
  301. data/grammars/text.html.asciidoc.json +492 -0
  302. data/grammars/text.html.asdoc.json +541 -0
  303. data/grammars/text.html.asp.json +58 -0
  304. data/grammars/text.html.basic.json +552 -0
  305. data/grammars/text.html.cfm.json +811 -0
  306. data/grammars/text.html.creole.json +329 -0
  307. data/grammars/text.html.django.json +69 -0
  308. data/grammars/text.html.elixir.json +18 -0
  309. data/grammars/text.html.erb.json +157 -0
  310. data/grammars/text.html.erlang.yaws.json +72 -0
  311. data/grammars/text.html.factor.json +25 -0
  312. data/grammars/text.html.ftl.json +85 -0
  313. data/grammars/text.html.handlebars.json +838 -0
  314. data/grammars/text.html.jsp.json +1203 -0
  315. data/grammars/text.html.liquid.json +35 -0
  316. data/grammars/text.html.mako.json +729 -0
  317. data/grammars/text.html.markdown.source.gfm.apib.json +1297 -0
  318. data/grammars/text.html.markdown.source.gfm.mson.json +1165 -0
  319. data/grammars/text.html.mediawiki.json +972 -0
  320. data/grammars/text.html.php.json +2615 -0
  321. data/grammars/text.html.slash.json +313 -0
  322. data/grammars/text.html.smarty.json +216 -0
  323. data/grammars/text.html.ssp.json +49 -0
  324. data/grammars/text.html.tcl.json +44 -0
  325. data/grammars/text.html.twig.json +1353 -0
  326. data/grammars/text.html.vue.json +642 -0
  327. data/grammars/text.idl-idldoc.json +14 -0
  328. data/grammars/text.jade.json +1024 -0
  329. data/grammars/text.junit-test-report.json +92 -0
  330. data/grammars/text.log.latex.json +86 -0
  331. data/grammars/text.python.console.json +25 -0
  332. data/grammars/text.python.traceback.json +46 -0
  333. data/grammars/text.rdoc.json +48 -0
  334. data/grammars/text.restructuredtext.json +561 -0
  335. data/grammars/text.robot.json +73 -0
  336. data/grammars/text.shell-session.json +32 -0
  337. data/grammars/text.slim.json +527 -0
  338. data/grammars/text.tex.json +271 -0
  339. data/grammars/text.tex.latex.beamer.json +63 -0
  340. data/grammars/text.tex.latex.haskell.json +56 -0
  341. data/grammars/text.tex.latex.json +1013 -0
  342. data/grammars/text.tex.latex.memoir.json +136 -0
  343. data/grammars/text.tex.latex.rd.json +117 -0
  344. data/grammars/text.xml.ant.json +202 -0
  345. data/grammars/text.xml.flex-config.json +2634 -0
  346. data/grammars/text.xml.genshi.json +34 -0
  347. data/grammars/text.xml.json +364 -0
  348. data/grammars/text.xml.pom.json +774 -0
  349. data/grammars/text.xml.xsl.json +94 -0
  350. data/grammars/text.zone_file.json +72 -0
  351. data/lib/linguist.rb +79 -0
  352. data/lib/linguist/blob_helper.rb +2 -2
  353. data/lib/linguist/grammars.rb +10 -0
  354. data/lib/linguist/heuristics.rb +17 -1
  355. data/lib/linguist/language.rb +2 -36
  356. data/lib/linguist/languages.json +1 -1
  357. data/lib/linguist/languages.yml +50 -2
  358. data/lib/linguist/samples.json +2580 -116
  359. data/lib/linguist/vendor.yml +11 -1
  360. data/lib/linguist/version.rb +1 -1
  361. metadata +365 -2
@@ -0,0 +1,1278 @@
1
+ {
2
+ "fileTypes": [
3
+ "hx",
4
+ "hxsl",
5
+ "hscript"
6
+ ],
7
+ "foldingStartMarker": "(\\{\\s*(//.*)?$|^\\s*// \\{\\{\\{|#if)",
8
+ "foldingStopMarker": "^\\s*(\\}|// \\}\\}\\}$|#end)",
9
+ "keyEquivalent": "^~H",
10
+ "name": "Haxe",
11
+ "patterns": [
12
+ {
13
+ "include": "#all"
14
+ }
15
+ ],
16
+ "repository": {
17
+ "all": {
18
+ "patterns": [
19
+ {
20
+ "include": "#package"
21
+ },
22
+ {
23
+ "include": "#import"
24
+ },
25
+ {
26
+ "include": "#import-using"
27
+ },
28
+ {
29
+ "include": "#type-abstract"
30
+ },
31
+ {
32
+ "include": "#type-class"
33
+ },
34
+ {
35
+ "include": "#type-enum"
36
+ },
37
+ {
38
+ "include": "#type-interface"
39
+ },
40
+ {
41
+ "include": "#type-typedef"
42
+ },
43
+ {
44
+ "include": "#meta-static"
45
+ },
46
+ {
47
+ "include": "#method"
48
+ },
49
+ {
50
+ "include": "#variable"
51
+ },
52
+ {
53
+ "include": "#block"
54
+ },
55
+ {
56
+ "include": "#block-contents"
57
+ }
58
+ ]
59
+ },
60
+ "arrays": {
61
+ "begin": "(\\[)",
62
+ "beginCaptures": {
63
+ "1": {
64
+ "name": "punctuation.definition.array.begin.haxe.2"
65
+ }
66
+ },
67
+ "end": "(\\])",
68
+ "endCaptures": {
69
+ "1": {
70
+ "name": "punctuation.definition.array.end.haxe.2"
71
+ }
72
+ },
73
+ "name": "meta.array.haxe.2",
74
+ "patterns": [
75
+ {
76
+ "include": "#block"
77
+ },
78
+ {
79
+ "include": "#block-contents"
80
+ }
81
+ ]
82
+ },
83
+ "block": {
84
+ "begin": "(\\{)",
85
+ "beginCaptures": {
86
+ "1": {
87
+ "name": "punctuation.definition.block.begin.haxe.2"
88
+ }
89
+ },
90
+ "end": "(\\})",
91
+ "endCaptures": {
92
+ "1": {
93
+ "name": "punctuation.definition.block.end.haxe.2"
94
+ }
95
+ },
96
+ "patterns": [
97
+ {
98
+ "include": "#block"
99
+ },
100
+ {
101
+ "include": "#block-contents"
102
+ }
103
+ ]
104
+ },
105
+ "block-contents": {
106
+ "patterns": [
107
+ {
108
+ "include": "#regex"
109
+ },
110
+ {
111
+ "include": "#arrays"
112
+ },
113
+ {
114
+ "include": "#parameters"
115
+ },
116
+ {
117
+ "include": "#constants"
118
+ },
119
+ {
120
+ "include": "#comments"
121
+ },
122
+ {
123
+ "include": "#strings"
124
+ },
125
+ {
126
+ "include": "#macro"
127
+ },
128
+ {
129
+ "include": "#modifiers"
130
+ },
131
+ {
132
+ "include": "#keywords"
133
+ },
134
+ {
135
+ "include": "#keywords-magic"
136
+ },
137
+ {
138
+ "include": "#keywords-reification"
139
+ },
140
+ {
141
+ "include": "#conditional-compilation"
142
+ },
143
+ {
144
+ "include": "#operator-assignment"
145
+ },
146
+ {
147
+ "include": "#operators"
148
+ },
149
+ {
150
+ "include": "#punctuation-separator"
151
+ },
152
+ {
153
+ "include": "#punctuation-terminator"
154
+ },
155
+ {
156
+ "include": "#punctuation-brackets"
157
+ },
158
+ {
159
+ "include": "#support-class-name"
160
+ }
161
+ ]
162
+ },
163
+ "comments": {
164
+ "patterns": [
165
+ {
166
+ "begin": "(/\\*)",
167
+ "beginCaptures": {
168
+ "1": {
169
+ "name": "punctuation.definition.comment.haxe.2"
170
+ }
171
+ },
172
+ "end": "(\\*/)",
173
+ "endCaptures": {
174
+ "1": {
175
+ "name": "punctuation.definition.comment.haxe.2"
176
+ }
177
+ },
178
+ "name": "comment.block.haxe.2"
179
+ },
180
+ {
181
+ "captures": {
182
+ "1": {
183
+ "name": "punctuation.definition.comment.haxe.2"
184
+ }
185
+ },
186
+ "match": "(//).*$\\n?",
187
+ "name": "comment.line.double-slash.haxe.2"
188
+ }
189
+ ]
190
+ },
191
+ "constants": {
192
+ "patterns": [
193
+ {
194
+ "match": "\\b(true|false|null)\\b",
195
+ "name": "constant.language.haxe.2"
196
+ },
197
+ {
198
+ "match": "\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b",
199
+ "name": "constant.numeric.haxe.2"
200
+ }
201
+ ]
202
+ },
203
+ "entity-name-class": {
204
+ "match": "\\b([_A-Za-z]\\w*)\\b",
205
+ "name": "entity.name.type.class.haxe.2"
206
+ },
207
+ "entity-name-function": {
208
+ "match": "([_A-Za-z]\\w*)\\b(?=\\s*[\\(])",
209
+ "name": "entity.name.function.haxe.2"
210
+ },
211
+ "import": {
212
+ "begin": "\\b(import)\\b",
213
+ "beginCaptures": {
214
+ "1": {
215
+ "name": "storage.type.import.haxe.2"
216
+ }
217
+ },
218
+ "end": "(;)",
219
+ "endCaptures": {
220
+ "1": {
221
+ "name": "punctuation.terminator.haxe.2"
222
+ }
223
+ },
224
+ "name": "meta.import.haxe.2",
225
+ "patterns": [
226
+ {
227
+ "captures": {
228
+ "1": {
229
+ "name": "support.package.haxe.2"
230
+ },
231
+ "3": {
232
+ "name": "support.class.haxe.2"
233
+ }
234
+ },
235
+ "match": "((\\b[a-z]\\w*\\.)*)((\\b[A-Z]\\w*\\.?|\\*)+)(\\b[_a-z]\\w*|\\*)?"
236
+ }
237
+ ]
238
+ },
239
+ "import-using": {
240
+ "begin": "\\b(using)\\b",
241
+ "beginCaptures": {
242
+ "1": {
243
+ "name": "storage.type.using.haxe.2"
244
+ }
245
+ },
246
+ "end": "(;)",
247
+ "endCaptures": {
248
+ "1": {
249
+ "name": "punctuation.terminator.haxe.2"
250
+ }
251
+ },
252
+ "name": "meta.using.haxe.2",
253
+ "patterns": [
254
+ {
255
+ "captures": {
256
+ "1": {
257
+ "name": "support.package.haxe.2"
258
+ },
259
+ "3": {
260
+ "name": "support.class.haxe.2"
261
+ }
262
+ },
263
+ "match": "(([a-z]\\w*\\.)*)(([A-Z]\\w*\\.?)+)"
264
+ }
265
+ ]
266
+ },
267
+ "conditional-compilation": {
268
+ "patterns": [
269
+ {
270
+ "match": "(#(end|else))",
271
+ "name": "keyword.control.directive.conditional.haxe.2"
272
+ },
273
+ {
274
+ "match": "((#(if|elseif))\\s+([a-zA-Z0-9_]*)\\s)",
275
+ "captures": {
276
+ "0": {
277
+ "name": "meta.control.directive.conditional.haxe.2"
278
+ },
279
+ "2": {
280
+ "name": "keyword.control.directive.conditional.haxe.2"
281
+ }
282
+ }
283
+ },
284
+ {
285
+ "begin": "((#(if|elseif))\\s*?\\()",
286
+ "beginCaptures": {
287
+ "0": {
288
+ "name": "meta.control.directive.conditional.haxe.2"
289
+ },
290
+ "2": {
291
+ "name": "keyword.control.directive.conditional.haxe.2"
292
+ }
293
+ },
294
+ "end": "(\\))",
295
+ "name": "meta.control.directive.conditional.haxe.2"
296
+ },
297
+ {
298
+ "match": "(#([a-zA-Z0-9_]*))\\s",
299
+ "name": "meta.control.directive.conditional.haxe.2"
300
+ }
301
+ ]
302
+ },
303
+ "keywords": {
304
+ "patterns": [
305
+ {
306
+ "match": "\\b(try|catch|throw)\\b",
307
+ "name": "keyword.control.catch-exception.haxe.2"
308
+ },
309
+ {
310
+ "match": "\\b(if|return|while|for|return|break|case|default|continue|do|while|for|switch|if|else)\\b",
311
+ "name": "keyword.control.haxe.flow-control.2"
312
+ },
313
+ {
314
+ "match": "(\\.\\.\\.)",
315
+ "name": "keyword.control.directive.haxe.2"
316
+ },
317
+ {
318
+ "match": "\\b(cast|untyped)\\b",
319
+ "name": "keyword.other.untyped.haxe.2"
320
+ },
321
+ {
322
+ "match": "\\btrace\\b",
323
+ "name": "keyword.other.trace.haxe.2"
324
+ },
325
+ {
326
+ "match": "\\b(this|super)\\b",
327
+ "name": "variable.language.haxe.2"
328
+ },
329
+ {
330
+ "match": "\\bnew\\b",
331
+ "name": "keyword.control.new.haxe.2"
332
+ },
333
+ {
334
+ "match": "\\bvar\\b",
335
+ "name": "storage.type.variable.haxe.2"
336
+ },
337
+ {
338
+ "match": "\\bfunction\\b",
339
+ "name": "storage.type.function.haxe.2"
340
+ },
341
+ {
342
+ "match": "\\b(abstract|class|enum|interface|typedef)\\b",
343
+ "name": "storage.type.class.haxe.2"
344
+ }
345
+ ]
346
+ },
347
+ "keywords-abstract": {
348
+ "patterns": [
349
+ {
350
+ "match": "\\b(from|to)\\b",
351
+ "name": "keyword.other.haxe.2"
352
+ }
353
+ ]
354
+ },
355
+ "keywords-accessor": {
356
+ "patterns": [
357
+ {
358
+ "match": "\\b(default|get|set|dynamic|never|null)\\b",
359
+ "name": "keyword.other.haxe.2"
360
+ }
361
+ ]
362
+ },
363
+ "keywords-magic": {
364
+ "patterns": [
365
+ {
366
+ "match": "\\b__\\w*__\\b",
367
+ "name": "support.function.magic.haxe.2"
368
+ },
369
+ {
370
+ "match": "\\bprototype\\b",
371
+ "name": "support.variable.magic.haxe.2"
372
+ }
373
+ ]
374
+ },
375
+ "keywords-reification": {
376
+ "patterns": [
377
+ {
378
+ "captures": {
379
+ "1": {
380
+ "name": "punctuation.definition.variable.haxe.2"
381
+ },
382
+ "2": {
383
+ "name": "support.reification.haxe.2"
384
+ }
385
+ },
386
+ "match": "(\\$)([iea])\\("
387
+ },
388
+ {
389
+ "captures": {
390
+ "2": {
391
+ "name": "punctuation.definition.variable.haxe.2"
392
+ },
393
+ "3": {
394
+ "name": "support.reification.haxe.2"
395
+ }
396
+ },
397
+ "match": "((\\$)([a-zA-Z.]*))"
398
+ }
399
+ ]
400
+ },
401
+ "macro": {
402
+ "patterns": [
403
+ {
404
+ "captures": {
405
+ "2": {
406
+ "name": "punctuation.definition.variable.haxe.2"
407
+ },
408
+ "3": {
409
+ "name": "storage.modifier.macro.haxe.2"
410
+ }
411
+ },
412
+ "match": "((@:)(require|final|hack|native|coreApi|fakeEnum|macro|build|keep|keepSub|overload|extern|optional|feature|noCompletion|noUsing|allow|access|generic|publicFields|expose|defineFeature|runtime|initPackage|bind|bitmap|file|font|sound|ns|protected|getter|setter|meta|debug|noDebug|headerCode|headerClassCode|cppFileCode|functionCode|functionTailCode|buildXml|cppNamespaceCode|headerNamespaceCode|noStack|depend|include|internal|volatile|transient|functionBody|classContents|remove)\\b)"
413
+ },
414
+ {
415
+ "captures": {
416
+ "2": {
417
+ "name": "punctuation.definition.variable.haxe.2"
418
+ },
419
+ "3": {
420
+ "name": "support.macro.haxe.2"
421
+ }
422
+ },
423
+ "match": "((@:?)([a-zA-Z_]*))"
424
+ }
425
+ ]
426
+ },
427
+ "meta-static": {
428
+ "begin": "(static)",
429
+ "beginCaptures": {
430
+ "1": {
431
+ "name": "storage.modifier.haxe.2"
432
+ }
433
+ },
434
+ "end": "(?<=[\\};])",
435
+ "name": "meta.static.haxe.2",
436
+ "patterns": [
437
+ {
438
+ "include": "#modifiers"
439
+ },
440
+ {
441
+ "include": "#method"
442
+ },
443
+ {
444
+ "include": "#variable"
445
+ },
446
+ {
447
+ "include": "#punctuation-terminator"
448
+ }
449
+ ]
450
+ },
451
+ "method": {
452
+ "begin": "(?=function)",
453
+ "end": "(?<=[\\};])",
454
+ "name": "meta.method.haxe.2",
455
+ "patterns": [
456
+ {
457
+ "include": "#method-name"
458
+ },
459
+ {
460
+ "include": "#method-name-post"
461
+ },
462
+ {
463
+ "include": "#method-block"
464
+ }
465
+ ]
466
+ },
467
+ "method-block": {
468
+ "begin": "(?<=\\{)",
469
+ "beginCaptures": {
470
+ "1": {
471
+ "name": "punctuation.definition.block.begin.haxe.2"
472
+ }
473
+ },
474
+ "end": "(\\})",
475
+ "endCaptures": {
476
+ "1": {
477
+ "name": "punctuation.definition.block.end.haxe.2"
478
+ }
479
+ },
480
+ "name": "meta.method.block.haxe.2",
481
+ "patterns": [
482
+ {
483
+ "include": "#block"
484
+ },
485
+ {
486
+ "include": "#block-contents"
487
+ }
488
+ ]
489
+ },
490
+ "method-name": {
491
+ "begin": "\\b(function)\\b",
492
+ "beginCaptures": {
493
+ "1": {
494
+ "name": "storage.type.function.haxe.2"
495
+ }
496
+ },
497
+ "end": "([_A-Za-z]\\w*)",
498
+ "endCaptures": {
499
+ "1": {
500
+ "name": "entity.name.function.haxe.2"
501
+ }
502
+ },
503
+ "name": "meta.method.name.haxe.2"
504
+ },
505
+ "method-name-post": {
506
+ "begin": "(?<=\\w)",
507
+ "end": "(\\{)|(;)",
508
+ "endCaptures": {
509
+ "1": {
510
+ "name": "punctuation.definition.block.begin.haxe.2"
511
+ },
512
+ "2": {
513
+ "name": "punctuation.terminator.haxe.2"
514
+ }
515
+ },
516
+ "patterns": [
517
+ {
518
+ "include": "#block"
519
+ },
520
+ {
521
+ "include": "#block-contents"
522
+ }
523
+ ]
524
+ },
525
+ "modifiers": {
526
+ "match": "\\b(public|private|static|dynamic|inline|macro|extern|override)\\b",
527
+ "name": "storage.modifier.haxe.2"
528
+ },
529
+ "modifiers-inheritance": {
530
+ "match": "\\b(implements|extends)\\b",
531
+ "name": "storage.modifier.haxe.2"
532
+ },
533
+ "operator-assignment": {
534
+ "match": "(=)",
535
+ "name": "keyword.operator.assignment.haxe.2"
536
+ },
537
+ "operator-optional": {
538
+ "match": "(\\?)(?!\\s)",
539
+ "name": "punctuation.definition.variable.haxe.2"
540
+ },
541
+ "operators": {
542
+ "patterns": [
543
+ {
544
+ "match": "(!|&&|\\|\\|)",
545
+ "name": "keyword.operator.logical.haxe.2"
546
+ },
547
+ {
548
+ "match": "(~|&|\\||\\^|<<|>>|>>>)",
549
+ "name": "keyword.operator.bitwise.haxe.2"
550
+ },
551
+ {
552
+ "match": "(==|!=|<=|>=|<>|<|>)",
553
+ "name": "keyword.operator.comparison.haxe.2"
554
+ },
555
+ {
556
+ "match": "(\\-\\-|\\+\\+)",
557
+ "name": "keyword.operator.increment-decrement.haxe.2"
558
+ },
559
+ {
560
+ "match": "(\\-|\\+|\\*|\\/|%)",
561
+ "name": "keyword.operator.arithmetic.haxe.2"
562
+ }
563
+ ]
564
+ },
565
+ "package": {
566
+ "captures": {
567
+ "1": {
568
+ "name": "storage.type.package.haxe.2"
569
+ },
570
+ "2": {
571
+ "name": "support.package.haxe.2"
572
+ },
573
+ "4": {
574
+ "name": "punctuation.terminator.haxe.2"
575
+ }
576
+ },
577
+ "match": "\\b(package)(\\s+([\\w.*]*))?\\s*(;)",
578
+ "name": "meta.package.haxe.2"
579
+ },
580
+ "parameters": {
581
+ "begin": "(\\()",
582
+ "beginCaptures": {
583
+ "1": {
584
+ "name": "punctuation.definition.parameters.begin.haxe.2"
585
+ }
586
+ },
587
+ "end": "(\\))",
588
+ "endCaptures": {
589
+ "1": {
590
+ "name": "punctuation.definition.parameters.end.haxe.2"
591
+ }
592
+ },
593
+ "name": "meta.parameters.haxe.2",
594
+ "patterns": [
595
+ {
596
+ "include": "#operator-optional"
597
+ },
598
+ {
599
+ "include": "#block"
600
+ },
601
+ {
602
+ "include": "#block-contents"
603
+ }
604
+ ]
605
+ },
606
+ "punctuation-brackets": {
607
+ "patterns": [
608
+ {
609
+ "match": "([\\(\\<\\)\\>])",
610
+ "name": "punctuation.definition.other.haxe.2"
611
+ }
612
+ ]
613
+ },
614
+ "punctuation-separator": {
615
+ "match": "([,:.?])",
616
+ "name": "punctuation.separator.haxe.2"
617
+ },
618
+ "punctuation-terminator": {
619
+ "match": ";",
620
+ "name": "punctuation.terminator.haxe.2"
621
+ },
622
+ "regex": {
623
+ "begin": "~/",
624
+ "beginCaptures": {
625
+ "1": {
626
+ "name": "string.regexp.begin.haxe.2"
627
+ }
628
+ },
629
+ "end": "(/[gimsu]*)|(\\n$)",
630
+ "endCaptures": {
631
+ "1": {
632
+ "name": "string.regexp.end.haxe.2"
633
+ },
634
+ "2": {
635
+ "name": "invalid.illegal.haxe.2"
636
+ }
637
+ },
638
+ "name": "string.regexp.haxe.2",
639
+ "patterns": [
640
+ {
641
+ "match": "\\\\.",
642
+ "name": "constant.character.escape.haxe.2"
643
+ }
644
+ ]
645
+ },
646
+ "strings": {
647
+ "patterns": [
648
+ {
649
+ "begin": "\"",
650
+ "beginCaptures": {
651
+ "0": {
652
+ "name": "punctuation.definition.string.begin.haxe.2"
653
+ }
654
+ },
655
+ "end": "\"",
656
+ "endCaptures": {
657
+ "0": {
658
+ "name": "punctuation.definition.string.end.haxe.2"
659
+ }
660
+ },
661
+ "name": "string.quoted.double.haxe.2",
662
+ "patterns": [
663
+ {
664
+ "match": "\\\\.",
665
+ "name": "constant.character.escape.haxe.2"
666
+ }
667
+ ]
668
+ },
669
+ {
670
+ "begin": "'",
671
+ "beginCaptures": {
672
+ "0": {
673
+ "name": "punctuation.definition.string.begin.haxe.2"
674
+ }
675
+ },
676
+ "end": "'",
677
+ "endCaptures": {
678
+ "0": {
679
+ "name": "punctuation.definition.string.end.haxe.2"
680
+ }
681
+ },
682
+ "name": "string.quoted.single.haxe.2",
683
+ "patterns": [
684
+ {
685
+ "match": "\\\\.",
686
+ "name": "constant.character.escape.haxe.2"
687
+ },
688
+ {
689
+ "match": "\\$\\$",
690
+ "name": "constant.character.escape.haxe.2"
691
+ },
692
+ {
693
+ "captures": {
694
+ "1": {
695
+ "name": "variable.other.haxe.2"
696
+ },
697
+ "2": {
698
+ "name": "variable.other.haxe.2"
699
+ },
700
+ "3": {
701
+ "name": "variable.other.haxe.2"
702
+ },
703
+ "4": {
704
+ "name": "variable.other.haxe.2"
705
+ }
706
+ },
707
+ "comment": "String interpolation : \"${test.ole}\"",
708
+ "match": "(\\$)(\\{)([^}]*)(\\})"
709
+ },
710
+ {
711
+ "captures": {
712
+ "1": {
713
+ "name": "variable.other.haxe.2"
714
+ },
715
+ "2": {
716
+ "name": "variable.other.haxe.2"
717
+ }
718
+ },
719
+ "comment": "String interpolation : \"$test\"",
720
+ "match": "(\\$)([\\w]*)"
721
+ }
722
+ ]
723
+ }
724
+ ]
725
+ },
726
+ "support-class-name": {
727
+ "captures": {
728
+ "1": {
729
+ "name": "support.package.haxe.2"
730
+ },
731
+ "3": {
732
+ "name": "support.class.haxe.2"
733
+ }
734
+ },
735
+ "match": "\\b(([a-z][a-zA-Z0-9]*\\.)*)(([A-Z]\\w*\\.?)+)\\b"
736
+ },
737
+ "type-abstract": {
738
+ "begin": "(?=abstract)",
739
+ "end": "(?<=\\})|(;)",
740
+ "endCaptures": {
741
+ "1": {
742
+ "name": "punctuation.terminator.haxe.2"
743
+ }
744
+ },
745
+ "name": "meta.type.abstract.haxe.2",
746
+ "patterns": [
747
+ {
748
+ "include": "#type-abstract-name"
749
+ },
750
+ {
751
+ "include": "#type-abstract-name-post"
752
+ },
753
+ {
754
+ "include": "#type-abstract-block"
755
+ }
756
+ ]
757
+ },
758
+ "type-abstract-block": {
759
+ "begin": "(?<=\\{)",
760
+ "end": "(\\})",
761
+ "endCaptures": {
762
+ "1": {
763
+ "name": "punctuation.definition.block.end.haxe.2"
764
+ }
765
+ },
766
+ "name": "meta.type.block.haxe.2",
767
+ "patterns": [
768
+ {
769
+ "include": "#meta-static"
770
+ },
771
+ {
772
+ "include": "#method"
773
+ },
774
+ {
775
+ "include": "#modifiers"
776
+ },
777
+ {
778
+ "include": "#variable"
779
+ },
780
+ {
781
+ "include": "#block"
782
+ },
783
+ {
784
+ "include": "#block-contents"
785
+ }
786
+ ]
787
+ },
788
+ "type-abstract-name": {
789
+ "begin": "\\b(abstract)\\b",
790
+ "beginCaptures": {
791
+ "1": {
792
+ "name": "storage.type.class.haxe.2"
793
+ }
794
+ },
795
+ "end": "([_A-Za-z]\\w*)",
796
+ "endCaptures": {
797
+ "1": {
798
+ "name": "entity.name.type.class.haxe.2"
799
+ }
800
+ },
801
+ "name": "meta.type.name.haxe.2"
802
+ },
803
+ "type-abstract-name-post": {
804
+ "begin": "(?<=\\w)",
805
+ "end": "([\\{;])",
806
+ "endCaptures": {
807
+ "1": {
808
+ "name": "punctuation.definition.block.begin.haxe.2"
809
+ }
810
+ },
811
+ "patterns": [
812
+ {
813
+ "include": "#parameters"
814
+ },
815
+ {
816
+ "include": "#keywords-abstract"
817
+ },
818
+ {
819
+ "include": "#punctuation-brackets"
820
+ },
821
+ {
822
+ "include": "#punctuation-separator"
823
+ },
824
+ {
825
+ "include": "#support-class-name"
826
+ }
827
+ ]
828
+ },
829
+ "type-class": {
830
+ "begin": "(?=class)",
831
+ "end": "(?<=\\})|(;)",
832
+ "endCaptures": {
833
+ "1": {
834
+ "name": "punctuation.terminator.haxe.2"
835
+ }
836
+ },
837
+ "name": "meta.type.class.haxe.2",
838
+ "patterns": [
839
+ {
840
+ "include": "#type-class-name"
841
+ },
842
+ {
843
+ "include": "#type-class-name-post"
844
+ },
845
+ {
846
+ "include": "#type-class-block"
847
+ }
848
+ ]
849
+ },
850
+ "type-class-block": {
851
+ "begin": "(?<=\\{)",
852
+ "end": "(\\})",
853
+ "endCaptures": {
854
+ "1": {
855
+ "name": "punctuation.definition.block.end.haxe.2"
856
+ }
857
+ },
858
+ "name": "meta.type.block.haxe.2",
859
+ "patterns": [
860
+ {
861
+ "include": "#meta-static"
862
+ },
863
+ {
864
+ "include": "#method"
865
+ },
866
+ {
867
+ "include": "#modifiers"
868
+ },
869
+ {
870
+ "include": "#variable"
871
+ },
872
+ {
873
+ "include": "#block"
874
+ },
875
+ {
876
+ "include": "#block-contents"
877
+ }
878
+ ]
879
+ },
880
+ "type-class-name": {
881
+ "begin": "\\b(class)\\b",
882
+ "beginCaptures": {
883
+ "1": {
884
+ "name": "storage.type.class.haxe.2"
885
+ }
886
+ },
887
+ "end": "([_A-Za-z]\\w*)",
888
+ "endCaptures": {
889
+ "1": {
890
+ "name": "entity.name.type.class.haxe.2"
891
+ }
892
+ },
893
+ "name": "meta.type.name.haxe.2"
894
+ },
895
+ "type-class-name-post": {
896
+ "begin": "(?<=\\w)",
897
+ "end": "([\\{;])",
898
+ "endCaptures": {
899
+ "1": {
900
+ "name": "punctuation.definition.block.begin.haxe.2"
901
+ }
902
+ },
903
+ "patterns": [
904
+ {
905
+ "include": "#type-parameters"
906
+ },
907
+ {
908
+ "include": "#modifiers-inheritance"
909
+ },
910
+ {
911
+ "include": "#punctuation-brackets"
912
+ },
913
+ {
914
+ "include": "#punctuation-separator"
915
+ },
916
+ {
917
+ "include": "#support-class-name"
918
+ }
919
+ ]
920
+ },
921
+ "type-enum": {
922
+ "begin": "(?=enum)",
923
+ "end": "(?<=\\})|(;)",
924
+ "endCaptures": {
925
+ "1": {
926
+ "name": "punctuation.terminator.haxe.2"
927
+ }
928
+ },
929
+ "name": "meta.type.enum.haxe.2",
930
+ "patterns": [
931
+ {
932
+ "include": "#type-enum-name"
933
+ },
934
+ {
935
+ "include": "#type-enum-name-post"
936
+ },
937
+ {
938
+ "include": "#type-enum-block"
939
+ }
940
+ ]
941
+ },
942
+ "type-enum-block": {
943
+ "begin": "(?<=\\{)",
944
+ "end": "(\\})",
945
+ "endCaptures": {
946
+ "1": {
947
+ "name": "punctuation.definition.block.end.haxe.2"
948
+ }
949
+ },
950
+ "name": "meta.type.block.haxe.2",
951
+ "patterns": [
952
+ {
953
+ "include": "#type-parameters"
954
+ },
955
+ {
956
+ "include": "#block"
957
+ },
958
+ {
959
+ "include": "#block-contents"
960
+ }
961
+ ]
962
+ },
963
+ "type-enum-name": {
964
+ "begin": "\\b(enum)\\b",
965
+ "beginCaptures": {
966
+ "1": {
967
+ "name": "storage.type.class.haxe.2"
968
+ }
969
+ },
970
+ "end": "([_A-Za-z]\\w*)",
971
+ "endCaptures": {
972
+ "1": {
973
+ "name": "entity.name.type.class.haxe.2"
974
+ }
975
+ },
976
+ "name": "meta.type.name.haxe.2"
977
+ },
978
+ "type-enum-name-post": {
979
+ "begin": "(?<=\\w)",
980
+ "end": "([\\{;])",
981
+ "endCaptures": {
982
+ "1": {
983
+ "name": "punctuation.definition.block.begin.haxe.2"
984
+ }
985
+ },
986
+ "patterns": [
987
+ {
988
+ "include": "#type-parameters"
989
+ },
990
+ {
991
+ "include": "#punctuation-brackets"
992
+ },
993
+ {
994
+ "include": "#punctuation-separator"
995
+ },
996
+ {
997
+ "include": "#support-class-name"
998
+ }
999
+ ]
1000
+ },
1001
+ "type-interface": {
1002
+ "begin": "(?=interface)",
1003
+ "end": "(?<=\\})|(;)",
1004
+ "endCaptures": {
1005
+ "1": {
1006
+ "name": "punctuation.terminator.haxe.2"
1007
+ }
1008
+ },
1009
+ "name": "meta.type.interface.haxe.2",
1010
+ "patterns": [
1011
+ {
1012
+ "include": "#type-interface-name"
1013
+ },
1014
+ {
1015
+ "include": "#type-interface-name-post"
1016
+ },
1017
+ {
1018
+ "include": "#type-interface-block"
1019
+ }
1020
+ ]
1021
+ },
1022
+ "type-interface-block": {
1023
+ "begin": "(?<=\\{)",
1024
+ "end": "(\\})",
1025
+ "endCaptures": {
1026
+ "1": {
1027
+ "name": "punctuation.definition.block.end.haxe.2"
1028
+ }
1029
+ },
1030
+ "name": "meta.type.block.haxe.2",
1031
+ "patterns": [
1032
+ {
1033
+ "include": "#method"
1034
+ },
1035
+ {
1036
+ "include": "#variable"
1037
+ },
1038
+ {
1039
+ "include": "#block"
1040
+ },
1041
+ {
1042
+ "include": "#block-contents"
1043
+ }
1044
+ ]
1045
+ },
1046
+ "type-interface-name": {
1047
+ "begin": "\\b(interface)\\b",
1048
+ "beginCaptures": {
1049
+ "1": {
1050
+ "name": "storage.type.class.haxe.2"
1051
+ }
1052
+ },
1053
+ "end": "([_A-Za-z]\\w*)",
1054
+ "endCaptures": {
1055
+ "1": {
1056
+ "name": "entity.name.type.class.haxe.2"
1057
+ }
1058
+ },
1059
+ "name": "meta.type.name.haxe.2"
1060
+ },
1061
+ "type-interface-name-post": {
1062
+ "begin": "(?<=\\w)",
1063
+ "end": "([\\{;])",
1064
+ "endCaptures": {
1065
+ "1": {
1066
+ "name": "punctuation.definition.block.begin.haxe.2"
1067
+ }
1068
+ },
1069
+ "patterns": [
1070
+ {
1071
+ "include": "#modifiers-inheritance"
1072
+ },
1073
+ {
1074
+ "include": "#punctuation-brackets"
1075
+ },
1076
+ {
1077
+ "include": "#punctuation-separator"
1078
+ },
1079
+ {
1080
+ "include": "#support-class-name"
1081
+ }
1082
+ ]
1083
+ },
1084
+ "type-parameters": {
1085
+ "begin": "(\\<)",
1086
+ "beginCaptures": {
1087
+ "1": {
1088
+ "name": "punctuation.definition.parameters.begin.haxe.2"
1089
+ }
1090
+ },
1091
+ "end": "(\\>)",
1092
+ "endCaptures": {
1093
+ "1": {
1094
+ "name": "punctuation.definition.parameters.end.haxe.2"
1095
+ }
1096
+ },
1097
+ "name": "meta.type.parameters.haxe.2",
1098
+ "patterns": [
1099
+ {
1100
+ "include": "#block"
1101
+ },
1102
+ {
1103
+ "include": "#block-contents"
1104
+ }
1105
+ ]
1106
+ },
1107
+ "type-typedef": {
1108
+ "begin": "(?=typedef)",
1109
+ "end": "(?<=\\})|(;)",
1110
+ "endCaptures": {
1111
+ "1": {
1112
+ "name": "punctuation.terminator.haxe.2"
1113
+ }
1114
+ },
1115
+ "name": "meta.type.typedef.haxe.2",
1116
+ "patterns": [
1117
+ {
1118
+ "include": "#type-typedef-name"
1119
+ },
1120
+ {
1121
+ "include": "#type-typedef-name-post"
1122
+ },
1123
+ {
1124
+ "include": "#type-typedef-block"
1125
+ }
1126
+ ]
1127
+ },
1128
+ "type-typedef-block": {
1129
+ "begin": "(?<=\\{)",
1130
+ "end": "(\\})",
1131
+ "endCaptures": {
1132
+ "1": {
1133
+ "name": "punctuation.definition.block.end.haxe.2"
1134
+ }
1135
+ },
1136
+ "name": "meta.type.block.haxe.2",
1137
+ "patterns": [
1138
+ {
1139
+ "include": "#block"
1140
+ },
1141
+ {
1142
+ "include": "#block-contents"
1143
+ }
1144
+ ]
1145
+ },
1146
+ "type-typedef-name": {
1147
+ "begin": "\\b(typedef)\\b",
1148
+ "beginCaptures": {
1149
+ "1": {
1150
+ "name": "storage.type.class.haxe.2"
1151
+ }
1152
+ },
1153
+ "end": "([_A-Za-z]\\w*)",
1154
+ "endCaptures": {
1155
+ "1": {
1156
+ "name": "entity.name.type.class.haxe.2"
1157
+ }
1158
+ },
1159
+ "name": "meta.type.name.haxe.2"
1160
+ },
1161
+ "type-typedef-name-post": {
1162
+ "begin": "(?<=\\w)",
1163
+ "end": "(\\{)|(?=;)",
1164
+ "endCaptures": {
1165
+ "1": {
1166
+ "name": "punctuation.definition.block.begin.haxe.2"
1167
+ }
1168
+ },
1169
+ "patterns": [
1170
+ {
1171
+ "include": "#punctuation-brackets"
1172
+ },
1173
+ {
1174
+ "include": "#punctuation-separator"
1175
+ },
1176
+ {
1177
+ "include": "#operator-assignment"
1178
+ },
1179
+ {
1180
+ "include": "#support-class-name"
1181
+ }
1182
+ ]
1183
+ },
1184
+ "variable": {
1185
+ "begin": "(?=var)",
1186
+ "end": "(;)",
1187
+ "endCaptures": {
1188
+ "1": {
1189
+ "name": "punctuation.terminator.haxe.2"
1190
+ }
1191
+ },
1192
+ "name": "meta.variable.haxe.2",
1193
+ "patterns": [
1194
+ {
1195
+ "include": "#variable-name"
1196
+ },
1197
+ {
1198
+ "include": "#variable-assign"
1199
+ },
1200
+ {
1201
+ "include": "#variable-name-post"
1202
+ }
1203
+ ]
1204
+ },
1205
+ "variable-accessors": {
1206
+ "begin": "(\\()",
1207
+ "beginCaptures": {
1208
+ "1": {
1209
+ "name": "punctuation.definition.parameters.begin.haxe.2"
1210
+ }
1211
+ },
1212
+ "end": "(\\))",
1213
+ "endCaptures": {
1214
+ "1": {
1215
+ "name": "punctuation.definition.parameters.end.haxe.2"
1216
+ }
1217
+ },
1218
+ "name": "meta.parameters.haxe.2",
1219
+ "patterns": [
1220
+ {
1221
+ "include": "#operator-optional"
1222
+ },
1223
+ {
1224
+ "include": "#keywords-accessor"
1225
+ },
1226
+ {
1227
+ "include": "#punctuation-separator"
1228
+ }
1229
+ ]
1230
+ },
1231
+ "variable-assign": {
1232
+ "begin": "(=)",
1233
+ "beginCaptures": {
1234
+ "1": {
1235
+ "name": "keyword.operator.assignment.haxe.2"
1236
+ }
1237
+ },
1238
+ "end": "(?=;)",
1239
+ "patterns": [
1240
+ {
1241
+ "include": "#block"
1242
+ },
1243
+ {
1244
+ "include": "#block-contents"
1245
+ }
1246
+ ]
1247
+ },
1248
+ "variable-name": {
1249
+ "begin": "\\b(var)\\b",
1250
+ "beginCaptures": {
1251
+ "1": {
1252
+ "name": "storage.type.variable.haxe.2"
1253
+ }
1254
+ },
1255
+ "end": "([_a-zA-Z]\\w*)",
1256
+ "endCaptures": {
1257
+ "1": {
1258
+ "name": "entity.name.variable.haxe.2"
1259
+ }
1260
+ },
1261
+ "name": "meta.variable.name.haxe.2"
1262
+ },
1263
+ "variable-name-post": {
1264
+ "begin": "(?<=\\w)",
1265
+ "end": "(?=;)|(?==)",
1266
+ "patterns": [
1267
+ {
1268
+ "include": "#variable-accessors"
1269
+ },
1270
+ {
1271
+ "include": "#block-contents"
1272
+ }
1273
+ ]
1274
+ }
1275
+ },
1276
+ "scopeName": "source.haxe.2",
1277
+ "uuid": "fd62cd72-48d1-4e06-9ecd-76267656ac18"
1278
+ }