github-linguist-grammars 4.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (335) hide show
  1. checksums.yaml +7 -0
  2. data/grammars/file.lasso.json +713 -0
  3. data/grammars/module.ceylon.json +54 -0
  4. data/grammars/objdump.x86asm.json +73 -0
  5. data/grammars/source.Inform7.json +45 -0
  6. data/grammars/source.Kotlin.json +774 -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 +963 -0
  28. data/grammars/source.ats.json +170 -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.clips.json +80 -0
  56. data/grammars/source.clojure.json +397 -0
  57. data/grammars/source.cm.json +54 -0
  58. data/grammars/source.cmake.json +181 -0
  59. data/grammars/source.cobol.json +528 -0
  60. data/grammars/source.coffee.json +678 -0
  61. data/grammars/source.compiled-papyrus.json +11 -0
  62. data/grammars/source.cool.json +103 -0
  63. data/grammars/source.coq.json +62 -0
  64. data/grammars/source.crystal.json +2760 -0
  65. data/grammars/source.cs.json +556 -0
  66. data/grammars/source.css.json +630 -0
  67. data/grammars/source.css.less.json +276 -0
  68. data/grammars/source.css.mss.json +256 -0
  69. data/grammars/source.csx.json +16 -0
  70. data/grammars/source.cuda-c++.json +137 -0
  71. data/grammars/source.cython.json +2108 -0
  72. data/grammars/source.d.json +722 -0
  73. data/grammars/source.dart.json +763 -0
  74. data/grammars/source.desktop.json +90 -0
  75. data/grammars/source.diff.json +162 -0
  76. data/grammars/source.dockerfile.json +89 -0
  77. data/grammars/source.dosbatch.json +70 -0
  78. data/grammars/source.dot.json +126 -0
  79. data/grammars/source.dylan.json +217 -0
  80. data/grammars/source.eiffel.json +138 -0
  81. data/grammars/source.elixir.json +737 -0
  82. data/grammars/source.elm.json +355 -0
  83. data/grammars/source.erazor.json +126 -0
  84. data/grammars/source.erlang.json +1674 -0
  85. data/grammars/source.essl.json +50 -0
  86. data/grammars/source.factor.json +260 -0
  87. data/grammars/source.fan.json +188 -0
  88. data/grammars/source.fancy.json +270 -0
  89. data/grammars/source.fish.json +214 -0
  90. data/grammars/source.forth.json +101 -0
  91. data/grammars/source.fortran.json +499 -0
  92. data/grammars/source.fortran.modern.json +226 -0
  93. data/grammars/source.fsharp.json +403 -0
  94. data/grammars/source.gap.json +167 -0
  95. data/grammars/source.gcode.json +25 -0
  96. data/grammars/source.gdscript.json +154 -0
  97. data/grammars/source.gfm.json +1270 -0
  98. data/grammars/source.glsl.json +71 -0
  99. data/grammars/source.gnuplot.json +276 -0
  100. data/grammars/source.go.json +552 -0
  101. data/grammars/source.golo.json +182 -0
  102. data/grammars/source.gosu.2.json +163 -0
  103. data/grammars/source.grace.json +679 -0
  104. data/grammars/source.groovy.gradle.json +73 -0
  105. data/grammars/source.groovy.json +1385 -0
  106. data/grammars/source.harbour.json +450 -0
  107. data/grammars/source.haskell.json +449 -0
  108. data/grammars/source.haxe.2.json +1243 -0
  109. data/grammars/source.hss.1.json +464 -0
  110. data/grammars/source.httpspec.json +287 -0
  111. data/grammars/source.hxml.json +26 -0
  112. data/grammars/source.hy.json +270 -0
  113. data/grammars/source.idl-dlm.json +112 -0
  114. data/grammars/source.idl.json +267 -0
  115. data/grammars/source.idris.json +537 -0
  116. data/grammars/source.ini.json +113 -0
  117. data/grammars/source.inno.json +65 -0
  118. data/grammars/source.io.json +164 -0
  119. data/grammars/source.ioke.json +272 -0
  120. data/grammars/source.isabelle.root.json +68 -0
  121. data/grammars/source.isabelle.theory.json +106 -0
  122. data/grammars/source.j.json +49 -0
  123. data/grammars/source.jade.json +1009 -0
  124. data/grammars/source.jasmin.json +299 -0
  125. data/grammars/source.java-properties.json +97 -0
  126. data/grammars/source.java.json +1026 -0
  127. data/grammars/source.jcl.json +49 -0
  128. data/grammars/source.jflex.json +490 -0
  129. data/grammars/source.jq.json +218 -0
  130. data/grammars/source.js.json +948 -0
  131. data/grammars/source.js.jsx.json +2937 -0
  132. data/grammars/source.js.objj.json +424 -0
  133. data/grammars/source.js.regexp.json +150 -0
  134. data/grammars/source.js.regexp.replacement.json +30 -0
  135. data/grammars/source.json.json +149 -0
  136. data/grammars/source.julia.json +407 -0
  137. data/grammars/source.lean.json +145 -0
  138. data/grammars/source.lid.json +23 -0
  139. data/grammars/source.lilypond.json +623 -0
  140. data/grammars/source.lisp.json +111 -0
  141. data/grammars/source.litcoffee.json +669 -0
  142. data/grammars/source.livescript.json +616 -0
  143. data/grammars/source.llvm.json +71 -0
  144. data/grammars/source.logos.json +31 -0
  145. data/grammars/source.logtalk.json +315 -0
  146. data/grammars/source.loomscript.json +214 -0
  147. data/grammars/source.lsl.json +216 -0
  148. data/grammars/source.lua.json +191 -0
  149. data/grammars/source.makefile.json +474 -0
  150. data/grammars/source.makegen.json +13 -0
  151. data/grammars/source.man.json +53 -0
  152. data/grammars/source.mask.json +701 -0
  153. data/grammars/source.mata.json +133 -0
  154. data/grammars/source.mathematica.json +429 -0
  155. data/grammars/source.matlab.json +776 -0
  156. data/grammars/source.mercury.json +251 -0
  157. data/grammars/source.ml.json +291 -0
  158. data/grammars/source.modelica.json +142 -0
  159. data/grammars/source.modula2.json +103 -0
  160. data/grammars/source.monkey.json +701 -0
  161. data/grammars/source.moonscript.json +149 -0
  162. data/grammars/source.mupad.json +149 -0
  163. data/grammars/source.nant-build.json +86 -0
  164. data/grammars/source.ncl.json +66 -0
  165. data/grammars/source.nemerle.json +137 -0
  166. data/grammars/source.nesc.json +27 -0
  167. data/grammars/source.netlinx.erb.json +47 -0
  168. data/grammars/source.netlinx.json +768 -0
  169. data/grammars/source.nginx.json +797 -0
  170. data/grammars/source.nim.json +1150 -0
  171. data/grammars/source.nim_filter.json +133 -0
  172. data/grammars/source.nimcfg.json +116 -0
  173. data/grammars/source.ninja.json +66 -0
  174. data/grammars/source.nit.json +238 -0
  175. data/grammars/source.nix.json +1200 -0
  176. data/grammars/source.nmml.json +87 -0
  177. data/grammars/source.nsis.json +150 -0
  178. data/grammars/source.objc++.json +19 -0
  179. data/grammars/source.objc.json +918 -0
  180. data/grammars/source.objc.platform.json +277 -0
  181. data/grammars/source.ocaml.json +1426 -0
  182. data/grammars/source.ocamllex.json +305 -0
  183. data/grammars/source.ocamlyacc.json +346 -0
  184. data/grammars/source.octave.json +451 -0
  185. data/grammars/source.ooc.json +692 -0
  186. data/grammars/source.opa.json +206 -0
  187. data/grammars/source.opal.json +415 -0
  188. data/grammars/source.opalsysdefs.json +70 -0
  189. data/grammars/source.opencobol.json +65 -0
  190. data/grammars/source.ox.json +97 -0
  191. data/grammars/source.oz.json +84 -0
  192. data/grammars/source.papyrus-assembly.json +266 -0
  193. data/grammars/source.papyrus.json +231 -0
  194. data/grammars/source.parrot.pir.json +117 -0
  195. data/grammars/source.pascal.json +150 -0
  196. data/grammars/source.perl.6.json +310 -0
  197. data/grammars/source.perl.json +2413 -0
  198. data/grammars/source.php.zephir.json +362 -0
  199. data/grammars/source.pig_latin.json +172 -0
  200. data/grammars/source.pike.json +62 -0
  201. data/grammars/source.plsql.oracle.json +642 -0
  202. data/grammars/source.po.json +232 -0
  203. data/grammars/source.pogoscript.json +85 -0
  204. data/grammars/source.postscript.json +231 -0
  205. data/grammars/source.powershell.json +755 -0
  206. data/grammars/source.processing.json +885 -0
  207. data/grammars/source.prolog.eclipse.json +206 -0
  208. data/grammars/source.prolog.json +292 -0
  209. data/grammars/source.protobuf.json +395 -0
  210. data/grammars/source.pubspec.json +13 -0
  211. data/grammars/source.puppet.json +494 -0
  212. data/grammars/source.purescript.json +818 -0
  213. data/grammars/source.pyjade.json +1010 -0
  214. data/grammars/source.python.django.json +34 -0
  215. data/grammars/source.python.json +1960 -0
  216. data/grammars/source.python.salt.json +13 -0
  217. data/grammars/source.qmake.json +217 -0
  218. data/grammars/source.qml.json +195 -0
  219. data/grammars/source.r.json +203 -0
  220. data/grammars/source.racket.json +119 -0
  221. data/grammars/source.rebol.json +647 -0
  222. data/grammars/source.red.json +652 -0
  223. data/grammars/source.regexp.babel.json +190 -0
  224. data/grammars/source.regexp.python.json +187 -0
  225. data/grammars/source.regexp.spin.json +188 -0
  226. data/grammars/source.ruby.json +1956 -0
  227. data/grammars/source.ruby.rspec.cucumber.steps.json +274 -0
  228. data/grammars/source.rust.json +269 -0
  229. data/grammars/source.sas.json +322 -0
  230. data/grammars/source.sas_log.json +26 -0
  231. data/grammars/source.sass.json +248 -0
  232. data/grammars/source.sbt.json +36 -0
  233. data/grammars/source.scad.json +152 -0
  234. data/grammars/source.scala.json +739 -0
  235. data/grammars/source.scaml.json +466 -0
  236. data/grammars/source.scheme.json +370 -0
  237. data/grammars/source.scilab.json +103 -0
  238. data/grammars/source.scss.json +1321 -0
  239. data/grammars/source.shell.json +1212 -0
  240. data/grammars/source.smali.json +1668 -0
  241. data/grammars/source.smalltalk.json +135 -0
  242. data/grammars/source.smt.json +173 -0
  243. data/grammars/source.sp.json +118 -0
  244. data/grammars/source.sparql.json +23 -0
  245. data/grammars/source.spin.json +936 -0
  246. data/grammars/source.sqf.json +112 -0
  247. data/grammars/source.sql.json +473 -0
  248. data/grammars/source.stata.json +208 -0
  249. data/grammars/source.strings.json +53 -0
  250. data/grammars/source.stylus.json +1021 -0
  251. data/grammars/source.swift.json +965 -0
  252. data/grammars/source.systemverilog.json +1050 -0
  253. data/grammars/source.tcl.json +277 -0
  254. data/grammars/source.tea.json +180 -0
  255. data/grammars/source.thrift.json +704 -0
  256. data/grammars/source.toml.json +327 -0
  257. data/grammars/source.ts.json +1094 -0
  258. data/grammars/source.tsx.json +1324 -0
  259. data/grammars/source.turtle.json +505 -0
  260. data/grammars/source.txl.json +62 -0
  261. data/grammars/source.ucfconstraints.json +72 -0
  262. data/grammars/source.vala.json +814 -0
  263. data/grammars/source.varnish.vcl.json +343 -0
  264. data/grammars/source.vbnet.json +338 -0
  265. data/grammars/source.verilog.json +302 -0
  266. data/grammars/source.vhdl.json +1349 -0
  267. data/grammars/source.viml.json +224 -0
  268. data/grammars/source.webidl.json +814 -0
  269. data/grammars/source.x10.json +68 -0
  270. data/grammars/source.x86asm.json +47 -0
  271. data/grammars/source.xc.json +379 -0
  272. data/grammars/source.xq.json +241 -0
  273. data/grammars/source.xquery.json +193 -0
  274. data/grammars/source.xtend.json +733 -0
  275. data/grammars/source.yaml.json +334 -0
  276. data/grammars/source.yaml.salt.json +348 -0
  277. data/grammars/text.bibtex.json +251 -0
  278. data/grammars/text.cfml.basic.json +736 -0
  279. data/grammars/text.dart-analysis-output.json +162 -0
  280. data/grammars/text.dart-doccomments.json +19 -0
  281. data/grammars/text.elixir.json +45 -0
  282. data/grammars/text.gherkin.feature.json +135 -0
  283. data/grammars/text.groff.json +113 -0
  284. data/grammars/text.haml.json +299 -0
  285. data/grammars/text.html.abl.json +24 -0
  286. data/grammars/text.html.asciidoc.json +492 -0
  287. data/grammars/text.html.asdoc.json +541 -0
  288. data/grammars/text.html.asp.json +58 -0
  289. data/grammars/text.html.basic.json +552 -0
  290. data/grammars/text.html.cfm.json +811 -0
  291. data/grammars/text.html.creole.json +329 -0
  292. data/grammars/text.html.django.json +69 -0
  293. data/grammars/text.html.elixir.json +18 -0
  294. data/grammars/text.html.erb.json +157 -0
  295. data/grammars/text.html.erlang.yaws.json +72 -0
  296. data/grammars/text.html.factor.json +27 -0
  297. data/grammars/text.html.handlebars.json +783 -0
  298. data/grammars/text.html.jsp.json +1203 -0
  299. data/grammars/text.html.liquid.json +35 -0
  300. data/grammars/text.html.mako.json +729 -0
  301. data/grammars/text.html.markdown.source.gfm.apib.json +1297 -0
  302. data/grammars/text.html.markdown.source.gfm.mson.json +1165 -0
  303. data/grammars/text.html.mediawiki.json +972 -0
  304. data/grammars/text.html.php.json +2607 -0
  305. data/grammars/text.html.slash.json +313 -0
  306. data/grammars/text.html.smarty.json +216 -0
  307. data/grammars/text.html.ssp.json +49 -0
  308. data/grammars/text.html.tcl.json +44 -0
  309. data/grammars/text.html.twig.json +1353 -0
  310. data/grammars/text.html.vue.json +642 -0
  311. data/grammars/text.idl-idldoc.json +14 -0
  312. data/grammars/text.junit-test-report.json +92 -0
  313. data/grammars/text.log.latex.json +86 -0
  314. data/grammars/text.python.console.json +25 -0
  315. data/grammars/text.python.traceback.json +46 -0
  316. data/grammars/text.rdoc.json +48 -0
  317. data/grammars/text.restructuredtext.json +561 -0
  318. data/grammars/text.robot.json +73 -0
  319. data/grammars/text.shell-session.json +48 -0
  320. data/grammars/text.slim.json +527 -0
  321. data/grammars/text.tex.json +271 -0
  322. data/grammars/text.tex.latex.beamer.json +63 -0
  323. data/grammars/text.tex.latex.haskell.json +56 -0
  324. data/grammars/text.tex.latex.json +1013 -0
  325. data/grammars/text.tex.latex.memoir.json +99 -0
  326. data/grammars/text.tex.latex.rd.json +117 -0
  327. data/grammars/text.xml.ant.json +202 -0
  328. data/grammars/text.xml.flex-config.json +2634 -0
  329. data/grammars/text.xml.genshi.json +34 -0
  330. data/grammars/text.xml.json +364 -0
  331. data/grammars/text.xml.pom.json +774 -0
  332. data/grammars/text.xml.xsl.json +94 -0
  333. data/grammars/text.zone_file.json +72 -0
  334. data/lib/linguist/grammars.rb +13 -0
  335. metadata +389 -0
@@ -0,0 +1,299 @@
1
+ {
2
+ "fileTypes": [
3
+ "j"
4
+ ],
5
+ "name": "jasmin",
6
+ "patterns": [
7
+ {
8
+ "include": "#class-def"
9
+ },
10
+ {
11
+ "include": "#interface-def"
12
+ },
13
+ {
14
+ "include": "#super-def"
15
+ },
16
+ {
17
+ "include": "#implements-def"
18
+ },
19
+ {
20
+ "include": "#method-def"
21
+ },
22
+ {
23
+ "include": "#field-def"
24
+ },
25
+ {
26
+ "include": "#var-def"
27
+ },
28
+ {
29
+ "include": "#comment"
30
+ },
31
+ {
32
+ "include": "#directive"
33
+ },
34
+ {
35
+ "include": "#modifier"
36
+ },
37
+ {
38
+ "include": "#type-descriptor"
39
+ },
40
+ {
41
+ "include": "#double-string"
42
+ },
43
+ {
44
+ "include": "#number"
45
+ },
46
+ {
47
+ "include": "#label"
48
+ },
49
+ {
50
+ "include": "#true-false-null"
51
+ },
52
+ {
53
+ "include": "#control"
54
+ }
55
+ ],
56
+ "repository": {
57
+ "class-def": {
58
+ "begin": "(?=\\.class)",
59
+ "end": "$",
60
+ "patterns": [
61
+ {
62
+ "include": "#comment"
63
+ },
64
+ {
65
+ "include": "#modifier"
66
+ },
67
+ {
68
+ "include": "#directive"
69
+ },
70
+ {
71
+ "captures": {
72
+ "1": {
73
+ "name": "entity.name.type.jasmin"
74
+ }
75
+ },
76
+ "match": "([\\w/]+)(?=$|\\s+(?:;.*)?$)"
77
+ }
78
+ ]
79
+ },
80
+ "comment": {
81
+ "match": "(?<=^|[ \t]);.*",
82
+ "name": "comment.line.jasmin"
83
+ },
84
+ "control": {
85
+ "match": "(?<=^|\\s)return(?=$|\\s)",
86
+ "name": "keyword.control.jasmin"
87
+ },
88
+ "directive": {
89
+ "match": "(?<=^|\\s)\\.(?:catch|class|end method|field|implements|interface|limit|line|method|source|super|throws|var)(?=$|\\s)",
90
+ "name": "keyword.meta.directive.jasmin"
91
+ },
92
+ "double-string": {
93
+ "begin": "\"",
94
+ "beginCaptures": {
95
+ "0": {
96
+ "name": "string.begin.jasmin"
97
+ }
98
+ },
99
+ "end": "\"",
100
+ "endCaptures": {
101
+ "0": {
102
+ "name": "string.end.jasmin"
103
+ }
104
+ },
105
+ "patterns": [
106
+ {
107
+ "match": "\\\\.",
108
+ "name": "constant.character.escape.jasmin"
109
+ },
110
+ {
111
+ "match": ".",
112
+ "name": "string.double.jasmin"
113
+ }
114
+ ]
115
+ },
116
+ "field-def": {
117
+ "begin": "(?=\\.field)",
118
+ "end": "$",
119
+ "patterns": [
120
+ {
121
+ "include": "#comment"
122
+ },
123
+ {
124
+ "include": "#modifier"
125
+ },
126
+ {
127
+ "include": "#directive"
128
+ },
129
+ {
130
+ "include": "#number"
131
+ },
132
+ {
133
+ "include": "#double-string"
134
+ },
135
+ {
136
+ "include": "#type-descriptor"
137
+ },
138
+ {
139
+ "captures": {
140
+ "1": {
141
+ "name": "variable.parameter.jasmin"
142
+ },
143
+ "2": {
144
+ "name": "storage.type.type-descriptor.jasmin"
145
+ }
146
+ },
147
+ "match": "([\\w/]+)\\s+((?:\\[+)?(?:L[/\\w_]+;|[BCDFIJSZV]))(?=(\\s+)?[=]|(\\s+)?$|\\s+;)"
148
+ }
149
+ ]
150
+ },
151
+ "implements-def": {
152
+ "begin": "(?=\\.implements)",
153
+ "end": "$",
154
+ "patterns": [
155
+ {
156
+ "include": "#comment"
157
+ },
158
+ {
159
+ "captures": {
160
+ "1": {
161
+ "name": "keyword.meta.directive.jasmin"
162
+ },
163
+ "2": {
164
+ "name": "entity.other.inherited-class.jasmin"
165
+ }
166
+ },
167
+ "match": "(\\.implements)\\s+([\\w/]+)"
168
+ }
169
+ ]
170
+ },
171
+ "interface-def": {
172
+ "begin": "(?=\\.interface)",
173
+ "end": "$",
174
+ "patterns": [
175
+ {
176
+ "include": "#comment"
177
+ },
178
+ {
179
+ "include": "#modifier"
180
+ },
181
+ {
182
+ "include": "#directive"
183
+ },
184
+ {
185
+ "captures": {
186
+ "1": {
187
+ "name": "entity.name.type.jasmin"
188
+ }
189
+ },
190
+ "match": "([\\w/]+)(?=$|\\s+(?:;.*)?$)"
191
+ }
192
+ ]
193
+ },
194
+ "label": {
195
+ "match": "^[^0-9][^=^:.\"-]*:",
196
+ "name": "keyword.meta.label.jasmin"
197
+ },
198
+ "method-def": {
199
+ "begin": "(?=\\.method)",
200
+ "end": "$",
201
+ "patterns": [
202
+ {
203
+ "include": "#comment"
204
+ },
205
+ {
206
+ "include": "#modifier"
207
+ },
208
+ {
209
+ "include": "#directive"
210
+ },
211
+ {
212
+ "include": "#type-descriptor"
213
+ },
214
+ {
215
+ "captures": {
216
+ "1": {
217
+ "name": "entity.name.function.jasmin"
218
+ }
219
+ },
220
+ "match": "([\\w/<>]+)(?=\\()"
221
+ }
222
+ ]
223
+ },
224
+ "modifier": {
225
+ "match": "(?<=^|\\s)(?:final|static|abstract|public|friend|protected|private)(?=$|\\s)",
226
+ "name": "storage.modifier.jasmin"
227
+ },
228
+ "number": {
229
+ "match": "(?<=^|[\\s(,=])[-+]?(?:[1-9][0-9]*|[-+]?(?:0?\\.|[1-9]\\.)[0-9]+|0x[0-9A-F]+|0)(?=$|[\\s,)=])",
230
+ "name": "constant.numeric.jasmin"
231
+ },
232
+ "super-def": {
233
+ "begin": "(?=\\.super)",
234
+ "end": "$",
235
+ "patterns": [
236
+ {
237
+ "include": "#comment"
238
+ },
239
+ {
240
+ "captures": {
241
+ "1": {
242
+ "name": "keyword.meta.directive.jasmin"
243
+ },
244
+ "2": {
245
+ "name": "entity.other.inherited-class.jasmin"
246
+ }
247
+ },
248
+ "match": "(\\.super)\\s+([\\w/]+)"
249
+ }
250
+ ]
251
+ },
252
+ "true-false-null": {
253
+ "match": "(?<=^|[\\s(,])(?:null|false|true)(?=$|[\\s,)])",
254
+ "name": "constant.language.jasmin"
255
+ },
256
+ "type-descriptor": {
257
+ "match": "(?<=^|[\\s()=,])(?:(?:\\[+)?(?:L[/\\w_]+;|[BCDFIJSZV]))(?=$|[\\s,)=])",
258
+ "name": "storage.type.type-descriptor.jasmin"
259
+ },
260
+ "var-def": {
261
+ "begin": "(?=\\.var)",
262
+ "end": "$",
263
+ "patterns": [
264
+ {
265
+ "include": "#comment"
266
+ },
267
+ {
268
+ "captures": {
269
+ "1": {
270
+ "name": "keyword.meta.directive.jasmin"
271
+ },
272
+ "2": {
273
+ "name": "constant.numeric.jasmin"
274
+ },
275
+ "3": {
276
+ "name": "keyword.meta.is.jasmin"
277
+ },
278
+ "4": {
279
+ "name": "variable.parameter.jasmin"
280
+ },
281
+ "5": {
282
+ "name": "storage.type.type-descriptor.jasmin"
283
+ },
284
+ "6": {
285
+ "name": "keyword.meta.from.jasmin"
286
+ },
287
+ "7": {
288
+ "name": "keyword.meta.to.jasmin"
289
+ }
290
+ },
291
+ "comment": ".var <var-number> is <name> <descriptor> from <label1> to <label2>",
292
+ "match": "(\\.var)\\s+([1-9][0-9]*|[0])\\s+(is)\\s+([\\w_]+)\\s+((?:\\[+)?(?:L[/\\w_]+;|[BCDFIJSZV]))\\s+(from)\\s+(?:[\\w_]+)\\s+(to)\\s+(?:[\\w_]+)"
293
+ }
294
+ ]
295
+ }
296
+ },
297
+ "scopeName": "source.jasmin",
298
+ "uuid": "379c2786-2b36-4771-bece-72167eaba5c4"
299
+ }
@@ -0,0 +1,97 @@
1
+ {
2
+ "fileTypes": [
3
+ "properties"
4
+ ],
5
+ "foldingStartMarker": "^[a-zA-Z0-9.-_]+=.*\\\n",
6
+ "foldingStopMarker": "^(.*(?<!\\)\n)",
7
+ "keyEquivalent": "^~J",
8
+ "name": "Java Properties",
9
+ "patterns": [
10
+ {
11
+ "comment": "Ignore blank lines",
12
+ "match": "^\\s*$"
13
+ },
14
+ {
15
+ "include": "#comment-line"
16
+ },
17
+ {
18
+ "include": "#property-name"
19
+ },
20
+ {
21
+ "include": "#property-definition"
22
+ }
23
+ ],
24
+ "repository": {
25
+ "comment-line": {
26
+ "captures": {
27
+ "1": {
28
+ "name": "punctuation.whitespace.comment.leading.java-properties"
29
+ },
30
+ "2": {
31
+ "name": "punctuation.definition.comment.java-properties"
32
+ }
33
+ },
34
+ "match": "^(\\s*)([#!])(.+)?$\\n?",
35
+ "name": "comment.line.java-properties"
36
+ },
37
+ "property-definition": {
38
+ "begin": "^(\\s*)((?:\\\\[ \\t]|\\\\:|\\\\=|[^:=\\s])+)(?:\\s*([:=]))?\\s*",
39
+ "beginCaptures": {
40
+ "1": {
41
+ "name": "punctuation.whitespace.leading.java-properties"
42
+ },
43
+ "2": {
44
+ "name": "support.constant.java-properties",
45
+ "patterns": [
46
+ {
47
+ "match": "\\\\(?:[ \\t:=\\\\ntfr\\\"']|u[0-9A-Fa-f]{4})",
48
+ "name": "constant.character.escape.java-properties"
49
+ }
50
+ ]
51
+ },
52
+ "3": {
53
+ "name": "punctuation.separator.key-value.java-properties"
54
+ }
55
+ },
56
+ "contentName": "string.unquoted.java-properties",
57
+ "end": "(?<!\\\\{1})$\\n",
58
+ "name": "meta.key-value.java-properties",
59
+ "patterns": [
60
+ {
61
+ "comment": "Leading space on a continued line is ignored",
62
+ "match": "^\\s*",
63
+ "name": "punctuation.whitespace.leading.java-properties"
64
+ },
65
+ {
66
+ "match": "(\\\\{1})(?=$\\n)",
67
+ "name": "punctuation.separator.continuation.java-properties"
68
+ },
69
+ {
70
+ "match": "\\\\(?:[\\\\ntfr\\\"']|u[0-9A-Fa-f]{4})",
71
+ "name": "constant.character.escape.java-properties"
72
+ }
73
+ ]
74
+ },
75
+ "property-name": {
76
+ "captures": {
77
+ "1": {
78
+ "name": "punctuation.whitespace.comment.leading.java-properties"
79
+ },
80
+ "2": {
81
+ "name": "support.constant.java-properties",
82
+ "patterns": [
83
+ {
84
+ "match": "\\\\(?:[ \\t:=\\\\ntfr\\\"']|u[0-9A-Fa-f]{4})",
85
+ "name": "constant.character.escape.java-properties"
86
+ }
87
+ ]
88
+ }
89
+ },
90
+ "comment": "A property name with no value",
91
+ "match": "^(\\s*)((?:\\\\[ \\t]|\\\\:|\\\\=|[^:=\\s])+)(?:\\s*([:=]))?\\s*$\\n",
92
+ "name": "meta.key-value.java-properties"
93
+ }
94
+ },
95
+ "scopeName": "source.java-properties",
96
+ "uuid": "D364E829-7643-4AFF-948D-3C0D6B4EA8A4"
97
+ }
@@ -0,0 +1,1026 @@
1
+ {
2
+ "fileTypes": [
3
+ "java",
4
+ "bsh"
5
+ ],
6
+ "keyEquivalent": "^~J",
7
+ "name": "Java",
8
+ "patterns": [
9
+ {
10
+ "captures": {
11
+ "1": {
12
+ "name": "keyword.other.package.java"
13
+ },
14
+ "2": {
15
+ "name": "storage.modifier.package.java"
16
+ },
17
+ "3": {
18
+ "name": "punctuation.terminator.java"
19
+ }
20
+ },
21
+ "match": "^\\s*(package)\\b(?:\\s*([^ ;$]+)\\s*(;)?)?",
22
+ "name": "meta.package.java"
23
+ },
24
+ {
25
+ "begin": "(import static)\\b\\s*",
26
+ "beginCaptures": {
27
+ "1": {
28
+ "name": "keyword.other.import.static.java"
29
+ }
30
+ },
31
+ "captures": {
32
+ "1": {
33
+ "name": "keyword.other.import.java"
34
+ },
35
+ "2": {
36
+ "name": "storage.modifier.import.java"
37
+ },
38
+ "3": {
39
+ "name": "punctuation.terminator.java"
40
+ }
41
+ },
42
+ "contentName": "storage.modifier.import.java",
43
+ "end": "\\s*(?:$|(;))",
44
+ "endCaptures": {
45
+ "1": {
46
+ "name": "punctuation.terminator.java"
47
+ }
48
+ },
49
+ "name": "meta.import.java",
50
+ "patterns": [
51
+ {
52
+ "match": "\\.",
53
+ "name": "punctuation.separator.java"
54
+ },
55
+ {
56
+ "match": "\\s",
57
+ "name": "invalid.illegal.character_not_allowed_here.java"
58
+ }
59
+ ]
60
+ },
61
+ {
62
+ "begin": "(import)\\b\\s*",
63
+ "beginCaptures": {
64
+ "1": {
65
+ "name": "keyword.other.import.java"
66
+ }
67
+ },
68
+ "captures": {
69
+ "1": {
70
+ "name": "keyword.other.import.java"
71
+ },
72
+ "2": {
73
+ "name": "storage.modifier.import.java"
74
+ },
75
+ "3": {
76
+ "name": "punctuation.terminator.java"
77
+ }
78
+ },
79
+ "contentName": "storage.modifier.import.java",
80
+ "end": "\\s*(?:$|(;))",
81
+ "endCaptures": {
82
+ "1": {
83
+ "name": "punctuation.terminator.java"
84
+ }
85
+ },
86
+ "name": "meta.import.java",
87
+ "patterns": [
88
+ {
89
+ "match": "\\.",
90
+ "name": "punctuation.separator.java"
91
+ },
92
+ {
93
+ "match": "\\s",
94
+ "name": "invalid.illegal.character_not_allowed_here.java"
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "include": "#code"
100
+ }
101
+ ],
102
+ "repository": {
103
+ "all-types": {
104
+ "patterns": [
105
+ {
106
+ "include": "#primitive-arrays"
107
+ },
108
+ {
109
+ "include": "#primitive-types"
110
+ },
111
+ {
112
+ "include": "#object-types"
113
+ }
114
+ ]
115
+ },
116
+ "annotations": {
117
+ "patterns": [
118
+ {
119
+ "begin": "(@[^ (]+)(\\()",
120
+ "beginCaptures": {
121
+ "1": {
122
+ "name": "storage.type.annotation.java"
123
+ },
124
+ "2": {
125
+ "name": "punctuation.definition.annotation-arguments.begin.java"
126
+ }
127
+ },
128
+ "end": "(\\))",
129
+ "endCaptures": {
130
+ "1": {
131
+ "name": "punctuation.definition.annotation-arguments.end.java"
132
+ }
133
+ },
134
+ "name": "meta.declaration.annotation.java",
135
+ "patterns": [
136
+ {
137
+ "captures": {
138
+ "1": {
139
+ "name": "constant.other.key.java"
140
+ },
141
+ "2": {
142
+ "name": "keyword.operator.assignment.java"
143
+ }
144
+ },
145
+ "match": "(\\w*)\\s*(=)"
146
+ },
147
+ {
148
+ "include": "#code"
149
+ },
150
+ {
151
+ "match": ",",
152
+ "name": "punctuation.separator.property.java"
153
+ }
154
+ ]
155
+ },
156
+ {
157
+ "match": "@\\w*",
158
+ "name": "storage.type.annotation.java"
159
+ }
160
+ ]
161
+ },
162
+ "anonymous-classes-and-new": {
163
+ "begin": "\\bnew\\b",
164
+ "beginCaptures": {
165
+ "0": {
166
+ "name": "keyword.control.new.java"
167
+ }
168
+ },
169
+ "end": "(?<=\\)|\\])(?!\\s*{)|(?<=})|(?=;)",
170
+ "patterns": [
171
+ {
172
+ "begin": "(\\w+)\\s*(?=\\[)",
173
+ "beginCaptures": {
174
+ "1": {
175
+ "name": "storage.type.java"
176
+ }
177
+ },
178
+ "end": "(})|(?=\\s*(?:,|;|\\)))",
179
+ "endCaptures": {
180
+ "1": {
181
+ "name": "punctuation.section.block.end.java"
182
+ }
183
+ },
184
+ "patterns": [
185
+ {
186
+ "begin": "\\[",
187
+ "end": "\\]",
188
+ "patterns": [
189
+ {
190
+ "include": "#code"
191
+ }
192
+ ]
193
+ },
194
+ {
195
+ "begin": "{",
196
+ "beginCaptures": {
197
+ "0": {
198
+ "name": "punctuation.section.block.begin.java"
199
+ }
200
+ },
201
+ "end": "(?=})",
202
+ "patterns": [
203
+ {
204
+ "include": "#code"
205
+ }
206
+ ]
207
+ }
208
+ ]
209
+ },
210
+ {
211
+ "begin": "(?=\\w.*\\()",
212
+ "end": "(?<=\\))",
213
+ "patterns": [
214
+ {
215
+ "include": "#object-types"
216
+ },
217
+ {
218
+ "begin": "\\(",
219
+ "beginCaptures": {
220
+ "1": {
221
+ "name": "storage.type.java"
222
+ }
223
+ },
224
+ "end": "\\)",
225
+ "patterns": [
226
+ {
227
+ "include": "#code"
228
+ }
229
+ ]
230
+ }
231
+ ]
232
+ },
233
+ {
234
+ "begin": "{",
235
+ "beginCaptures": {
236
+ "0": {
237
+ "name": "punctuation.section.inner-class.begin.java"
238
+ }
239
+ },
240
+ "end": "}",
241
+ "endCaptures": {
242
+ "0": {
243
+ "name": "punctuation.section.inner-class.end.java"
244
+ }
245
+ },
246
+ "name": "meta.inner-class.java",
247
+ "patterns": [
248
+ {
249
+ "include": "#class-body"
250
+ }
251
+ ]
252
+ }
253
+ ]
254
+ },
255
+ "assertions": {
256
+ "patterns": [
257
+ {
258
+ "begin": "\\b(assert)\\s",
259
+ "beginCaptures": {
260
+ "1": {
261
+ "name": "keyword.control.assert.java"
262
+ }
263
+ },
264
+ "end": "$",
265
+ "name": "meta.declaration.assertion.java",
266
+ "patterns": [
267
+ {
268
+ "match": ":",
269
+ "name": "keyword.operator.assert.expression-seperator.java"
270
+ },
271
+ {
272
+ "include": "#code"
273
+ }
274
+ ]
275
+ }
276
+ ]
277
+ },
278
+ "class": {
279
+ "begin": "(?=\\w?[\\w\\s]*(?:class|(?:@)?interface|enum)\\s+\\w+)",
280
+ "end": "}",
281
+ "endCaptures": {
282
+ "0": {
283
+ "name": "punctuation.section.class.end.java"
284
+ }
285
+ },
286
+ "name": "meta.class.java",
287
+ "patterns": [
288
+ {
289
+ "include": "#storage-modifiers"
290
+ },
291
+ {
292
+ "include": "#comments"
293
+ },
294
+ {
295
+ "captures": {
296
+ "1": {
297
+ "name": "storage.modifier.java"
298
+ },
299
+ "2": {
300
+ "name": "entity.name.type.class.java"
301
+ }
302
+ },
303
+ "match": "(class|(?:@)?interface|enum)\\s+(\\w+)",
304
+ "name": "meta.class.identifier.java"
305
+ },
306
+ {
307
+ "begin": "extends",
308
+ "beginCaptures": {
309
+ "0": {
310
+ "name": "storage.modifier.extends.java"
311
+ }
312
+ },
313
+ "end": "(?={|implements)",
314
+ "name": "meta.definition.class.inherited.classes.java",
315
+ "patterns": [
316
+ {
317
+ "include": "#object-types-inherited"
318
+ },
319
+ {
320
+ "include": "#comments"
321
+ }
322
+ ]
323
+ },
324
+ {
325
+ "begin": "(implements)\\s",
326
+ "beginCaptures": {
327
+ "1": {
328
+ "name": "storage.modifier.implements.java"
329
+ }
330
+ },
331
+ "end": "(?=\\s*extends|\\{)",
332
+ "name": "meta.definition.class.implemented.interfaces.java",
333
+ "patterns": [
334
+ {
335
+ "include": "#object-types-inherited"
336
+ },
337
+ {
338
+ "include": "#comments"
339
+ }
340
+ ]
341
+ },
342
+ {
343
+ "begin": "{",
344
+ "beginCaptures": {
345
+ "0": {
346
+ "name": "punctuation.section.class.begin.java"
347
+ }
348
+ },
349
+ "end": "(?=})",
350
+ "name": "meta.class.body.java",
351
+ "patterns": [
352
+ {
353
+ "include": "#class-body"
354
+ }
355
+ ]
356
+ }
357
+ ]
358
+ },
359
+ "class-body": {
360
+ "patterns": [
361
+ {
362
+ "include": "#comments"
363
+ },
364
+ {
365
+ "include": "#class"
366
+ },
367
+ {
368
+ "include": "#enums"
369
+ },
370
+ {
371
+ "include": "#variables"
372
+ },
373
+ {
374
+ "include": "#methods"
375
+ },
376
+ {
377
+ "include": "#annotations"
378
+ },
379
+ {
380
+ "include": "#storage-modifiers"
381
+ },
382
+ {
383
+ "include": "#code"
384
+ }
385
+ ]
386
+ },
387
+ "code": {
388
+ "patterns": [
389
+ {
390
+ "include": "#comments"
391
+ },
392
+ {
393
+ "include": "#class"
394
+ },
395
+ {
396
+ "begin": "{",
397
+ "beginCaptures": {
398
+ "0": {
399
+ "name": "punctuation.section.block.begin.java"
400
+ }
401
+ },
402
+ "end": "}",
403
+ "endCaptures": {
404
+ "0": {
405
+ "name": "punctuation.section.block.end.java"
406
+ }
407
+ },
408
+ "patterns": [
409
+ {
410
+ "include": "#code"
411
+ }
412
+ ]
413
+ },
414
+ {
415
+ "include": "#assertions"
416
+ },
417
+ {
418
+ "include": "#parens"
419
+ },
420
+ {
421
+ "include": "#constants-and-special-vars"
422
+ },
423
+ {
424
+ "include": "#anonymous-classes-and-new"
425
+ },
426
+ {
427
+ "include": "#keywords"
428
+ },
429
+ {
430
+ "include": "#storage-modifiers"
431
+ },
432
+ {
433
+ "include": "#method-call"
434
+ },
435
+ {
436
+ "include": "#strings"
437
+ },
438
+ {
439
+ "include": "#all-types"
440
+ }
441
+ ]
442
+ },
443
+ "comments": {
444
+ "patterns": [
445
+ {
446
+ "captures": {
447
+ "0": {
448
+ "name": "punctuation.definition.comment.java"
449
+ }
450
+ },
451
+ "match": "/\\*\\*/",
452
+ "name": "comment.block.empty.java"
453
+ },
454
+ {
455
+ "include": "text.html.javadoc"
456
+ },
457
+ {
458
+ "include": "#comments-inline"
459
+ }
460
+ ]
461
+ },
462
+ "comments-inline": {
463
+ "patterns": [
464
+ {
465
+ "begin": "/\\*",
466
+ "captures": {
467
+ "0": {
468
+ "name": "punctuation.definition.comment.java"
469
+ }
470
+ },
471
+ "end": "\\*/",
472
+ "name": "comment.block.java"
473
+ },
474
+ {
475
+ "begin": "(^[ \\t]+)?(?=//)",
476
+ "beginCaptures": {
477
+ "1": {
478
+ "name": "punctuation.whitespace.comment.leading.java"
479
+ }
480
+ },
481
+ "end": "(?!\\G)",
482
+ "patterns": [
483
+ {
484
+ "begin": "//",
485
+ "beginCaptures": {
486
+ "0": {
487
+ "name": "punctuation.definition.comment.java"
488
+ }
489
+ },
490
+ "end": "\\n",
491
+ "name": "comment.line.double-slash.java"
492
+ }
493
+ ]
494
+ }
495
+ ]
496
+ },
497
+ "constants-and-special-vars": {
498
+ "patterns": [
499
+ {
500
+ "match": "\\b(true|false|null)\\b",
501
+ "name": "constant.language.java"
502
+ },
503
+ {
504
+ "match": "\\b(this|super)\\b",
505
+ "name": "variable.language.java"
506
+ },
507
+ {
508
+ "match": "\\b0[xX]\\h([\\h_]*\\h)?[lL]?(?!\\w|\\.)",
509
+ "name": "constant.numeric.hex.java"
510
+ },
511
+ {
512
+ "match": "\\b0[0-7_]*[0-7][lL]?\\b",
513
+ "name": "constant.numeric.octal.java"
514
+ },
515
+ {
516
+ "match": "\\b0[bB][01]([01_]*[01])?[lL]?\\b",
517
+ "name": "constant.numeric.binary.java"
518
+ },
519
+ {
520
+ "match": "\\b(0|[1-9]([0-9_]*[0-9])?)[lL]?(?!\\w|\\.)",
521
+ "name": "constant.numeric.integer.java"
522
+ },
523
+ {
524
+ "match": "(?x)\n\t\t\t\t\t\t(?<!\\w)\t\t\t\t\t\t\t\t\t\t# Ensure word boundry\n\t\t\t\t\t\t(?>\n\t\t\t\t\t\t\t0[xX]\t\t\t\t\t\t\t\t\t# Start literal\n\t\t\t\t\t\t\t(\\h([\\h_]*\\h)?)?\t\t\t\t\t\t# Optional Number\n\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t(?<=\\h)\\.\t\t\t\t\t\t\t# A number must exist on\n\t\t\t\t\t\t | \\.(?=\\h)\t\t\t\t\t\t\t# one side of the decimal\n\t\t\t\t\t\t | (?<=\\h)\t\t\t\t\t\t\t\t# Decimal not required\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t(\\h([\\h_]*\\h)?)?\t\t\t\t\t\t# Optional Number\n\t\t\t\t\t\t\t[pP]\t\t\t\t\t\t\t\t\t# Exponent Indicator\n\t\t\t\t\t\t\t[+-]?(0|[1-9]([0-9_]*[0-9])?)\t\t\t# Signed Integer\n\t\t\t\t\t\t\t[fFdD]?\t\t\t\t\t\t\t\t\t# Float Type Suffix\n\t\t\t\t\t\t)\n\t\t\t\t\t\t(?!\\w)\t\t\t\t\t\t\t\t\t\t# Ensure word boundry\n\t\t\t\t\t",
525
+ "name": "constant.numeric.hex-float.java"
526
+ },
527
+ {
528
+ "match": "(?x)\n\t\t\t\t\t\t(?<!\\w)\t\t\t\t\t\t\t\t\t\t\t# Ensure word boundry\n\t\t\t\t\t\t(?>\n\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t(0|[1-9]([0-9_]*[0-9])?)\t\t\t\t# Leading digits\n\t\t\t\t\t\t\t\t(?=[eEfFdD.])\t\t\t\t\t\t\t# Allow for numbers without .\n\t\t\t\t\t\t\t)?\n\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t(?<=[0-9])(?=[eEfFdD])\t\t\t\t\t# Allow for numbers without .\n\t\t\t\t\t\t\t | \\.\n\t\t\t\t\t\t\t)\n\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t[0-9]([0-9_]*[0-9])?\t\t\t\t\t# Numbers after .\n\t\t\t\t\t\t\t)?\n\t\t\t\t\t\t\t(\n\t\t\t\t\t\t\t\t[eE][+-]?(0|[1-9]([0-9_]*[0-9])?)\t\t# Exponent\n\t\t\t\t\t\t\t)?\n\t\t\t\t\t\t\t[fFdD]?\t\t\t\t\t\t\t\t\t\t# Float Type Suffix\n\t\t\t\t\t\t)\n\t\t\t\t\t\t(?!\\w)\t\t\t\t\t\t\t\t\t\t\t# Ensure word boundry\n\t\t\t\t\t",
529
+ "name": "constant.numeric.float.java"
530
+ },
531
+ {
532
+ "captures": {
533
+ "1": {
534
+ "name": "keyword.operator.dereference.java"
535
+ }
536
+ },
537
+ "match": "(\\.)?\\b([A-Z][A-Z0-9_]+)(?!<|\\.class|\\s*\\w+\\s*=)\\b",
538
+ "name": "constant.other.java"
539
+ }
540
+ ]
541
+ },
542
+ "enums": {
543
+ "begin": "^(?=\\s*[A-Z0-9_]+\\s*({|\\(|,))",
544
+ "end": "(?=;|})",
545
+ "patterns": [
546
+ {
547
+ "begin": "\\w+",
548
+ "beginCaptures": {
549
+ "0": {
550
+ "name": "constant.other.enum.java"
551
+ }
552
+ },
553
+ "end": "(?=,|;|})",
554
+ "name": "meta.enum.java",
555
+ "patterns": [
556
+ {
557
+ "include": "#parens"
558
+ },
559
+ {
560
+ "begin": "{",
561
+ "beginCaptures": {
562
+ "0": {
563
+ "name": "punctuation.section.enum.begin.java"
564
+ }
565
+ },
566
+ "end": "}",
567
+ "endCaptures": {
568
+ "0": {
569
+ "name": "punctuation.section.enum.end.java"
570
+ }
571
+ },
572
+ "patterns": [
573
+ {
574
+ "include": "#class-body"
575
+ }
576
+ ]
577
+ }
578
+ ]
579
+ },
580
+ {
581
+ "include": "#comments"
582
+ },
583
+ {
584
+ "include": "#annotations"
585
+ }
586
+ ]
587
+ },
588
+ "keywords": {
589
+ "patterns": [
590
+ {
591
+ "match": "\\b(try|catch|finally|throw)\\b",
592
+ "name": "keyword.control.catch-exception.java"
593
+ },
594
+ {
595
+ "match": "\\?|:",
596
+ "name": "keyword.control.ternary.java"
597
+ },
598
+ {
599
+ "match": "\\b(return|break|case|continue|default|do|while|for|switch|if|else)\\b",
600
+ "name": "keyword.control.java"
601
+ },
602
+ {
603
+ "match": "\\b(instanceof)\\b",
604
+ "name": "keyword.operator.java"
605
+ },
606
+ {
607
+ "match": "(<<|>>>?|~|\\^)",
608
+ "name": "keyword.operator.bitwise.java"
609
+ },
610
+ {
611
+ "match": "((&|\\^|\\||<<|>>>?)=)",
612
+ "name": "keyword.operator.assignment.bitwise.java"
613
+ },
614
+ {
615
+ "match": "(===?|!=|<=|>=|<>|<|>)",
616
+ "name": "keyword.operator.comparison.java"
617
+ },
618
+ {
619
+ "match": "([+*/%-]=)",
620
+ "name": "keyword.operator.assignment.arithmetic.java"
621
+ },
622
+ {
623
+ "match": "(=)",
624
+ "name": "keyword.operator.assignment.java"
625
+ },
626
+ {
627
+ "match": "(\\-\\-|\\+\\+)",
628
+ "name": "keyword.operator.increment-decrement.java"
629
+ },
630
+ {
631
+ "match": "(\\-|\\+|\\*|\\/|%)",
632
+ "name": "keyword.operator.arithmetic.java"
633
+ },
634
+ {
635
+ "match": "(!|&&|\\|\\|)",
636
+ "name": "keyword.operator.logical.java"
637
+ },
638
+ {
639
+ "match": "(\\||&)",
640
+ "name": "keyword.operator.bitwise.java"
641
+ },
642
+ {
643
+ "match": "(?<=\\S)\\.(?=\\S)",
644
+ "name": "keyword.operator.dereference.java"
645
+ },
646
+ {
647
+ "match": ";",
648
+ "name": "punctuation.terminator.java"
649
+ }
650
+ ]
651
+ },
652
+ "method-call": {
653
+ "begin": "([\\w$]+)(\\()",
654
+ "beginCaptures": {
655
+ "1": {
656
+ "name": "meta.method.java"
657
+ },
658
+ "2": {
659
+ "name": "punctuation.definition.method-parameters.begin.java"
660
+ }
661
+ },
662
+ "end": "\\)",
663
+ "endCaptures": {
664
+ "0": {
665
+ "name": "punctuation.definition.method-parameters.end.java"
666
+ }
667
+ },
668
+ "name": "meta.method-call.java",
669
+ "patterns": [
670
+ {
671
+ "match": ",",
672
+ "name": "punctuation.definition.seperator.parameter.java"
673
+ },
674
+ {
675
+ "include": "#code"
676
+ }
677
+ ]
678
+ },
679
+ "methods": {
680
+ "begin": "(?!new)(?=[\\w<].*\\s+)(?=([^=/]|/(?!/))+\\()",
681
+ "end": "(})|(?=;)",
682
+ "endCaptures": {
683
+ "1": {
684
+ "name": "punctuation.section.method.end.java"
685
+ }
686
+ },
687
+ "name": "meta.method.java",
688
+ "patterns": [
689
+ {
690
+ "include": "#storage-modifiers"
691
+ },
692
+ {
693
+ "begin": "(\\w+)\\s*\\(",
694
+ "beginCaptures": {
695
+ "1": {
696
+ "name": "entity.name.function.java"
697
+ }
698
+ },
699
+ "end": "\\)",
700
+ "name": "meta.method.identifier.java",
701
+ "patterns": [
702
+ {
703
+ "include": "#parameters"
704
+ },
705
+ {
706
+ "include": "#comments"
707
+ }
708
+ ]
709
+ },
710
+ {
711
+ "begin": "<",
712
+ "end": ">",
713
+ "name": "storage.type.token.java",
714
+ "patterns": [
715
+ {
716
+ "include": "#object-types"
717
+ },
718
+ {
719
+ "begin": "<",
720
+ "comment": "This is just to support <>'s with no actual type prefix",
721
+ "end": ">|[^\\w\\s,\\[\\]<]",
722
+ "name": "storage.type.generic.java"
723
+ }
724
+ ]
725
+ },
726
+ {
727
+ "begin": "(?=\\w.*\\s+\\w+\\s*\\()",
728
+ "end": "(?=\\w+\\s*\\()",
729
+ "name": "meta.method.return-type.java",
730
+ "patterns": [
731
+ {
732
+ "include": "#all-types"
733
+ },
734
+ {
735
+ "include": "#comments"
736
+ }
737
+ ]
738
+ },
739
+ {
740
+ "include": "#throws"
741
+ },
742
+ {
743
+ "begin": "{",
744
+ "beginCaptures": {
745
+ "0": {
746
+ "name": "punctuation.section.method.begin.java"
747
+ }
748
+ },
749
+ "end": "(?=})",
750
+ "name": "meta.method.body.java",
751
+ "patterns": [
752
+ {
753
+ "include": "#code"
754
+ }
755
+ ]
756
+ },
757
+ {
758
+ "include": "#comments"
759
+ }
760
+ ]
761
+ },
762
+ "object-types": {
763
+ "patterns": [
764
+ {
765
+ "begin": "\\b((?:[a-z]\\w*\\.)*[A-Z]+\\w*)<",
766
+ "end": ">|[^\\w\\s,\\?<\\[\\]]",
767
+ "name": "storage.type.generic.java",
768
+ "patterns": [
769
+ {
770
+ "include": "#object-types"
771
+ },
772
+ {
773
+ "begin": "<",
774
+ "comment": "This is just to support <>'s with no actual type prefix",
775
+ "end": ">|[^\\w\\s,\\[\\]<]",
776
+ "name": "storage.type.generic.java"
777
+ }
778
+ ]
779
+ },
780
+ {
781
+ "begin": "\\b((?:[a-z]\\w*\\.)*[A-Z]+\\w*)(?=\\[)",
782
+ "end": "(?=[^\\]\\s])",
783
+ "name": "storage.type.object.array.java",
784
+ "patterns": [
785
+ {
786
+ "begin": "\\[",
787
+ "end": "\\]",
788
+ "patterns": [
789
+ {
790
+ "include": "#code"
791
+ }
792
+ ]
793
+ }
794
+ ]
795
+ },
796
+ {
797
+ "captures": {
798
+ "1": {
799
+ "name": "keyword.operator.dereference.java"
800
+ }
801
+ },
802
+ "match": "\\b(?:[a-z]\\w*(\\.))*[A-Z]+\\w*\\b",
803
+ "name": "storage.type.java"
804
+ }
805
+ ]
806
+ },
807
+ "object-types-inherited": {
808
+ "patterns": [
809
+ {
810
+ "begin": "\\b((?:[a-z]\\w*\\.)*[A-Z]+\\w*)<",
811
+ "end": ">|[^\\w\\s,<]",
812
+ "name": "entity.other.inherited-class.java",
813
+ "patterns": [
814
+ {
815
+ "include": "#object-types"
816
+ },
817
+ {
818
+ "begin": "<",
819
+ "comment": "This is just to support <>'s with no actual type prefix",
820
+ "end": ">|[^\\w\\s,<]",
821
+ "name": "storage.type.generic.java"
822
+ }
823
+ ]
824
+ },
825
+ {
826
+ "captures": {
827
+ "1": {
828
+ "name": "keyword.operator.dereference.java"
829
+ }
830
+ },
831
+ "match": "\\b(?:[a-z]\\w*(\\.))*[A-Z]+\\w*",
832
+ "name": "entity.other.inherited-class.java"
833
+ }
834
+ ]
835
+ },
836
+ "parameters": {
837
+ "patterns": [
838
+ {
839
+ "match": "final",
840
+ "name": "storage.modifier.java"
841
+ },
842
+ {
843
+ "include": "#annotations"
844
+ },
845
+ {
846
+ "include": "#primitive-arrays"
847
+ },
848
+ {
849
+ "include": "#primitive-types"
850
+ },
851
+ {
852
+ "include": "#object-types"
853
+ },
854
+ {
855
+ "match": "\\w+",
856
+ "name": "variable.parameter.java"
857
+ }
858
+ ]
859
+ },
860
+ "parens": {
861
+ "begin": "\\(",
862
+ "end": "\\)",
863
+ "patterns": [
864
+ {
865
+ "include": "#code"
866
+ }
867
+ ]
868
+ },
869
+ "primitive-arrays": {
870
+ "patterns": [
871
+ {
872
+ "match": "\\b(?:void|boolean|byte|char|short|int|float|long|double)(\\[\\])*\\b",
873
+ "name": "storage.type.primitive.array.java"
874
+ }
875
+ ]
876
+ },
877
+ "primitive-types": {
878
+ "patterns": [
879
+ {
880
+ "match": "\\b(?:void|boolean|byte|char|short|int|float|long|double)\\b",
881
+ "name": "storage.type.primitive.java"
882
+ }
883
+ ]
884
+ },
885
+ "storage-modifiers": {
886
+ "captures": {
887
+ "1": {
888
+ "name": "storage.modifier.java"
889
+ }
890
+ },
891
+ "match": "\\b(public|private|protected|static|final|native|synchronized|volatile|abstract|threadsafe|transient)\\b"
892
+ },
893
+ "strings": {
894
+ "patterns": [
895
+ {
896
+ "begin": "\"",
897
+ "beginCaptures": {
898
+ "0": {
899
+ "name": "punctuation.definition.string.begin.java"
900
+ }
901
+ },
902
+ "end": "\"",
903
+ "endCaptures": {
904
+ "0": {
905
+ "name": "punctuation.definition.string.end.java"
906
+ }
907
+ },
908
+ "name": "string.quoted.double.java",
909
+ "patterns": [
910
+ {
911
+ "match": "\\\\.",
912
+ "name": "constant.character.escape.java"
913
+ }
914
+ ]
915
+ },
916
+ {
917
+ "begin": "'",
918
+ "beginCaptures": {
919
+ "0": {
920
+ "name": "punctuation.definition.string.begin.java"
921
+ }
922
+ },
923
+ "end": "'",
924
+ "endCaptures": {
925
+ "0": {
926
+ "name": "punctuation.definition.string.end.java"
927
+ }
928
+ },
929
+ "name": "string.quoted.single.java",
930
+ "patterns": [
931
+ {
932
+ "match": "\\\\.",
933
+ "name": "constant.character.escape.java"
934
+ }
935
+ ]
936
+ }
937
+ ]
938
+ },
939
+ "throws": {
940
+ "begin": "throws",
941
+ "beginCaptures": {
942
+ "0": {
943
+ "name": "storage.modifier.java"
944
+ }
945
+ },
946
+ "end": "(?={|;)",
947
+ "name": "meta.throwables.java",
948
+ "patterns": [
949
+ {
950
+ "include": "#object-types"
951
+ }
952
+ ]
953
+ },
954
+ "values": {
955
+ "patterns": [
956
+ {
957
+ "include": "#strings"
958
+ },
959
+ {
960
+ "include": "#object-types"
961
+ },
962
+ {
963
+ "include": "#constants-and-special-vars"
964
+ }
965
+ ]
966
+ },
967
+ "variables": {
968
+ "applyEndPatternLast": 1,
969
+ "patterns": [
970
+ {
971
+ "begin": "(?x:(?=\n (?:\n (?:private|protected|public|native|synchronized|volatile|abstract|threadsafe|transient|static|final) # visibility/modifier\n |\n (?:def)\n |\n (?:void|boolean|byte|char|short|int|float|long|double)\n |\n (?:(?:[a-z]\\w*\\.)*[A-Z]+\\w*) # object type\n )\n \\s+\n (?!private|protected|public|native|synchronized|volatile|abstract|threadsafe|transient|static|final|def|void|boolean|byte|char|short|int|float|long|double)\n [\\w\\d_<>\\[\\],\\?][\\w\\d_<>\\[\\],\\? \\t]*\n (?:=|$)\n \n\t\t\t\t\t))",
972
+ "end": "(?=;)",
973
+ "name": "meta.definition.variable.java",
974
+ "patterns": [
975
+ {
976
+ "match": "\\s"
977
+ },
978
+ {
979
+ "captures": {
980
+ "1": {
981
+ "name": "constant.other.variable.java"
982
+ }
983
+ },
984
+ "match": "([A-Z_0-9]+)\\s+(?=\\=)"
985
+ },
986
+ {
987
+ "captures": {
988
+ "1": {
989
+ "name": "meta.definition.variable.name.java"
990
+ }
991
+ },
992
+ "match": "(\\w[^\\s,]*)\\s+(?=\\=)"
993
+ },
994
+ {
995
+ "begin": "=",
996
+ "beginCaptures": {
997
+ "0": {
998
+ "name": "keyword.operator.assignment.java"
999
+ }
1000
+ },
1001
+ "end": "(?=;)",
1002
+ "patterns": [
1003
+ {
1004
+ "include": "#code"
1005
+ }
1006
+ ]
1007
+ },
1008
+ {
1009
+ "captures": {
1010
+ "1": {
1011
+ "name": "meta.definition.variable.name.java"
1012
+ }
1013
+ },
1014
+ "match": "(\\w[^\\s=]*)(?=\\s*;)"
1015
+ },
1016
+ {
1017
+ "include": "#code"
1018
+ }
1019
+ ]
1020
+ }
1021
+ ]
1022
+ }
1023
+ },
1024
+ "scopeName": "source.java",
1025
+ "uuid": "2B449DF6-6B1D-11D9-94EC-000D93589AF6"
1026
+ }