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,218 @@
1
+ {
2
+ "scopeName": "source.jq",
3
+ "fileTypes": [
4
+ "jq"
5
+ ],
6
+ "firstLineMatch": "^\\bjsoniq\\s+version\\b.*",
7
+ "foldingStartMarker": "^\\s*(<[^!?%/](?!.+?(/>|</.+?>))|<[!%]--(?!.+?--%?>)|<%[!]?(?!.+?%>))|(declare|.*\\{\\s*(//.*)?$)",
8
+ "foldingStopMarker": "^\\s*(</[^>]+>|[/%]>|-->)\\s*$|(.*\\}\\s*;?\\s*|.*;)",
9
+ "name": "JSONiq",
10
+ "patterns": [
11
+ {
12
+ "begin": "^(?=xquery\\s+version\\s+)",
13
+ "end": "\\z",
14
+ "patterns": [
15
+ {
16
+ "include": "source.xq"
17
+ }
18
+ ]
19
+ },
20
+ {
21
+ "begin": "\\(#",
22
+ "end": "#\\)",
23
+ "name": "constant.jsoniq"
24
+ },
25
+ {
26
+ "begin": "\\(:~",
27
+ "end": ":\\)",
28
+ "name": "comment.doc.jsoniq",
29
+ "patterns": [
30
+ {
31
+ "name": "constant.language.jsoniq",
32
+ "match": "@[a-zA-Z0-9_\\.\\-]+"
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "include": "#XMLComment"
38
+ },
39
+ {
40
+ "include": "#CDATA"
41
+ },
42
+ {
43
+ "include": "#PredefinedEntityRef"
44
+ },
45
+ {
46
+ "include": "#CharRef"
47
+ },
48
+ {
49
+ "begin": "<\\?",
50
+ "end": "\\?>",
51
+ "name": "comment.jsoniq"
52
+ },
53
+ {
54
+ "begin": "\\(:",
55
+ "end": ":\\)",
56
+ "name": "comment.jsoniq"
57
+ },
58
+ {
59
+ "begin": "\"",
60
+ "end": "\"",
61
+ "name": "string.jsoniq",
62
+ "patterns": [
63
+ {
64
+ "match": "(?x: # turn on extended mode\n \\\\ # a literal backslash\n (?: # ...followed by...\n [\"\\\\/bfnrt] # one of these characters\n | # ...or...\n u # a u\n [0-9a-fA-F]{4} # and four hex digits\n )\n )",
65
+ "name": "constant.character.escape.jsoniq"
66
+ },
67
+ {
68
+ "match": "\\\\.",
69
+ "name": "invalid.illegal.unrecognized-string-escape.jsoniq"
70
+ }
71
+ ]
72
+ },
73
+ {
74
+ "match": "%([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*)",
75
+ "name": "meta.declaration.annotation.jsoniq"
76
+ },
77
+ {
78
+ "match": "@(\\* | ([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*))",
79
+ "name": "support.type.jsoniq"
80
+ },
81
+ {
82
+ "match": "\\$([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-_a-zA-Z0-9]*)",
83
+ "name": "meta.definition.variable.name.jsoniq"
84
+ },
85
+ {
86
+ "match": "\\b(\\.[0-9]+|[0-9]+(\\.[0-9]*)?)[Ee][+#x002D]?[0-9]+\\b",
87
+ "name": "constant.numeric.jsoniq"
88
+ },
89
+ {
90
+ "match": "\\b(\\.[0-9]+|[0-9]+\\.[0-9]*)\\b",
91
+ "name": "constant.numeric.jsoniq"
92
+ },
93
+ {
94
+ "match": "\\b[0-9]+\\b",
95
+ "name": "constant.numeric.jsoniq"
96
+ },
97
+ {
98
+ "match": "\\b(NaN|after|allowing|ancestor|ancestor-or-self|and|append|array|as|ascending|at|attribute|base-uri|before|boundary-space|break|by|case|cast|castable|catch|child|collation|comment|constraint|construction|contains|context|continue|copy|copy-namespaces|count|decimal-format|decimal-separator|declare|default|delete|descendant|descendant-or-self|descending|digit|div|document|document-node|element|else|empty|empty-sequence|encoding|end|eq|every|except|exit|external|false|first|following|following-sibling|for|from|ft-option|function|ge|greatest|group|grouping-separator|gt|idiv|if|import|in|index|infinity|insert|instance|integrity|intersect|into|is|item|json|json-item|jsoniq|last|lax|le|least|let|loop|lt|minus-sign|mod|modify|module|namespace|namespace-node|ne|next|node|nodes|not|null|object|of|only|option|or|order|ordered|ordering|paragraphs|parent|pattern-separator|per-mille|percent|preceding|preceding-sibling|previous|processing-instruction|rename|replace|return|returning|revalidation|satisfies|schema|schema-attribute|schema-element|score|select|self|sentences|sliding|some|stable|start|strict|switch|text|then|times|to|treat|true|try|tumbling|type|typeswitch|union|unordered|updating|validate|value|variable|version|when|where|while|window|with|words|xquery|zero-digit)(?!(:|\\-))\\b",
99
+ "name": "keyword.jsoniq"
100
+ },
101
+ {
102
+ "comment": "EQName",
103
+ "match": "([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-_a-zA-Z0-9]*)(?=\\s*\\()",
104
+ "name": "support.function.jsoniq"
105
+ },
106
+ {
107
+ "match": "\\(",
108
+ "name": "lparen.jsoniq"
109
+ },
110
+ {
111
+ "match": "\\)",
112
+ "name": "rparent.jsoniq"
113
+ },
114
+ {
115
+ "include": "#OpenTag"
116
+ },
117
+ {
118
+ "include": "#CloseTag"
119
+ }
120
+ ],
121
+ "repository": {
122
+ "OpenTag": {
123
+ "begin": "<([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-_a-zA-Z0-9]*)",
124
+ "end": "(\\/>|>)",
125
+ "name": "punctuation.definition.tag.jsoniq",
126
+ "patterns": [
127
+ {
128
+ "match": "([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-_a-zA-Z0-9]*)",
129
+ "name": "entity.other.attribute-name.jsoniq"
130
+ },
131
+ {
132
+ "match": "=",
133
+ "name": "source.jq"
134
+ },
135
+ {
136
+ "begin": "'",
137
+ "end": "'(?!')",
138
+ "name": "string.jsoniq",
139
+ "patterns": [
140
+ {
141
+ "match": "''",
142
+ "name": "constant.jsoniq"
143
+ },
144
+ {
145
+ "include": "#PredefinedEntityRef"
146
+ },
147
+ {
148
+ "include": "#CharRef"
149
+ },
150
+ {
151
+ "match": "({{|}})",
152
+ "name": "string.jsoniq"
153
+ },
154
+ {
155
+ "include": "#EnclosedExpr"
156
+ }
157
+ ]
158
+ },
159
+ {
160
+ "begin": "\"",
161
+ "end": "\"(?!\")",
162
+ "name": "string.jsoniq",
163
+ "patterns": [
164
+ {
165
+ "match": "\"\"",
166
+ "name": "constant.jsoniq"
167
+ },
168
+ {
169
+ "include": "#PredefinedEntityRef"
170
+ },
171
+ {
172
+ "include": "#CharRef"
173
+ },
174
+ {
175
+ "match": "({{|}})",
176
+ "name": "string.jsoniq"
177
+ },
178
+ {
179
+ "include": "#EnclosedExpr"
180
+ }
181
+ ]
182
+ }
183
+ ]
184
+ },
185
+ "CloseTag": {
186
+ "match": "<\\/([\\-_a-zA-Z0-9][\\-\\._a-zA-Z0-9]*:)?([\\-_a-zA-Z0-9][\\-_a-zA-Z0-9]*)\\s*>",
187
+ "name": "punctuation.definition.tag.jsoniq"
188
+ },
189
+ "XMLComment": {
190
+ "begin": "<!--",
191
+ "end": "-->",
192
+ "name": "comment.jsoniq"
193
+ },
194
+ "CDATA": {
195
+ "begin": "<!\\[CDATA\\[",
196
+ "end": "\\]\\]>",
197
+ "name": "constant.language.jsoniq"
198
+ },
199
+ "PredefinedEntityRef": {
200
+ "match": "&(lt|gt|amp|quot|apos);",
201
+ "name": "constant.language.escape.jsoniq"
202
+ },
203
+ "CharRef": {
204
+ "match": "&#([0-9]+|x[0-9A-Fa-f]+);",
205
+ "name": "constant.language.escape.jsoniq"
206
+ },
207
+ "EnclosedExpr": {
208
+ "begin": "{",
209
+ "end": "}",
210
+ "name": "source.jq",
211
+ "patterns": [
212
+ {
213
+ "include": "$self"
214
+ }
215
+ ]
216
+ }
217
+ }
218
+ }
@@ -0,0 +1,948 @@
1
+ {
2
+ "scopeName": "source.js",
3
+ "fileTypes": [
4
+ "js",
5
+ "htc",
6
+ "_js",
7
+ "es",
8
+ "es6",
9
+ "jsm",
10
+ "pjs",
11
+ "xsjs",
12
+ "xsjslib"
13
+ ],
14
+ "firstLineMatch": "^#!.*\\b(node|iojs|JavaScript)",
15
+ "name": "JavaScript",
16
+ "patterns": [
17
+ {
18
+ "begin": "(?<!\\.)\\b(import)(?!\\s*:)\\b",
19
+ "beginCaptures": {
20
+ "1": {
21
+ "name": "keyword.control.js"
22
+ }
23
+ },
24
+ "patterns": [
25
+ {
26
+ "include": "#strings"
27
+ },
28
+ {
29
+ "include": "#comments"
30
+ },
31
+ {
32
+ "match": "\\b(as|from)\\b",
33
+ "name": "keyword.control.js"
34
+ },
35
+ {
36
+ "match": "\\b([a-zA-Z_$][a-zA-Z_$0-9]*)\\b"
37
+ },
38
+ {
39
+ "match": ",",
40
+ "name": "meta.delimiter.object.comma.js"
41
+ },
42
+ {
43
+ "match": "\\{|\\}",
44
+ "name": "meta.brace.curly.js"
45
+ }
46
+ ],
47
+ "end": "(;)?$",
48
+ "endCaptures": {
49
+ "1": {
50
+ "name": "punctuation.terminator.statement.js"
51
+ }
52
+ },
53
+ "name": "meta.import.js"
54
+ },
55
+ {
56
+ "captures": {
57
+ "1": {
58
+ "name": "support.class.js"
59
+ },
60
+ "2": {
61
+ "name": "support.constant.js"
62
+ },
63
+ "3": {
64
+ "name": "keyword.operator.js"
65
+ }
66
+ },
67
+ "comment": "match stuff like: Sound.prototype = { … } when extending an object",
68
+ "match": "([a-zA-Z_?.$][\\w?.$]*)\\.(prototype)\\s*(=)\\s*",
69
+ "name": "meta.class.js"
70
+ },
71
+ {
72
+ "begin": "([a-zA-Z_?.$][\\w?.$]*)\\.(prototype)\\.([a-zA-Z_?.$][\\w?.$]*)\\s*(=)\\s*(?:(async)(?:\\s+))?(function\\*?)\\s*(\\*?)(\\()",
73
+ "beginCaptures": {
74
+ "1": {
75
+ "name": "support.class.js"
76
+ },
77
+ "2": {
78
+ "name": "support.constant.js"
79
+ },
80
+ "3": {
81
+ "name": "entity.name.function.js"
82
+ },
83
+ "4": {
84
+ "name": "keyword.operator.js"
85
+ },
86
+ "5": {
87
+ "name": "storage.modifier.js"
88
+ },
89
+ "6": {
90
+ "name": "storage.type.function.js"
91
+ },
92
+ "7": {
93
+ "name": "storage.type.function.js"
94
+ },
95
+ "8": {
96
+ "name": "punctuation.definition.parameters.begin.js"
97
+ }
98
+ },
99
+ "comment": "match stuff like: Sound.prototype.play = function() { … }",
100
+ "end": "(\\))",
101
+ "endCaptures": {
102
+ "1": {
103
+ "name": "punctuation.definition.parameters.end.js"
104
+ }
105
+ },
106
+ "name": "meta.function.prototype.js",
107
+ "patterns": [
108
+ {
109
+ "include": "#function-params"
110
+ }
111
+ ]
112
+ },
113
+ {
114
+ "captures": {
115
+ "1": {
116
+ "name": "support.class.js"
117
+ },
118
+ "2": {
119
+ "name": "support.constant.js"
120
+ },
121
+ "3": {
122
+ "name": "entity.name.function.js"
123
+ },
124
+ "4": {
125
+ "name": "keyword.operator.js"
126
+ }
127
+ },
128
+ "comment": "match stuff like: Sound.prototype.play = myfunc",
129
+ "match": "([a-zA-Z_?.$][\\w?.$]*)\\.(prototype)\\.([a-zA-Z_?.$][\\w?.$]*)\\s*(=)\\s*",
130
+ "name": "meta.function.js"
131
+ },
132
+ {
133
+ "begin": "([a-zA-Z_?.$][\\w?.$]*)\\.([a-zA-Z_?.$][\\w?.$]*)\\s*(=)\\s*(?:(async)(?:\\s+))?(function\\*?)\\s*(\\*?)\\s*([a-zA-Z_?$][\\w?$]*)?\\s*(\\()",
134
+ "beginCaptures": {
135
+ "1": {
136
+ "name": "support.class.js"
137
+ },
138
+ "2": {
139
+ "name": "entity.name.function.js"
140
+ },
141
+ "3": {
142
+ "name": "keyword.operator.js"
143
+ },
144
+ "4": {
145
+ "name": "storage.modifier.js"
146
+ },
147
+ "5": {
148
+ "name": "storage.type.function.js"
149
+ },
150
+ "6": {
151
+ "name": "storage.type.function.js"
152
+ },
153
+ "7": {
154
+ "name": "entity.name.function.js"
155
+ },
156
+ "8": {
157
+ "name": "punctuation.definition.parameters.begin.js"
158
+ }
159
+ },
160
+ "comment": "match stuff like: Sound.play = function() { … }",
161
+ "end": "(\\))",
162
+ "endCaptures": {
163
+ "1": {
164
+ "name": "punctuation.definition.parameters.end.js"
165
+ }
166
+ },
167
+ "name": "meta.function.js",
168
+ "patterns": [
169
+ {
170
+ "include": "#function-params"
171
+ }
172
+ ]
173
+ },
174
+ {
175
+ "begin": "([a-zA-Z_?$][\\w?$]*)\\s*(=)\\s*(?:(async)(?:\\s+))?(function\\*?)\\s*(\\*?)\\s*([a-zA-Z_?$][\\w?$]*)?\\s*(\\()",
176
+ "beginCaptures": {
177
+ "1": {
178
+ "name": "entity.name.function.js"
179
+ },
180
+ "2": {
181
+ "name": "keyword.operator.js"
182
+ },
183
+ "3": {
184
+ "name": "storage.modifier.js"
185
+ },
186
+ "4": {
187
+ "name": "storage.type.function.js"
188
+ },
189
+ "5": {
190
+ "name": "storage.type.function.js"
191
+ },
192
+ "6": {
193
+ "name": "entity.name.function.js"
194
+ },
195
+ "7": {
196
+ "name": "punctuation.definition.parameters.begin.js"
197
+ }
198
+ },
199
+ "comment": "match stuff like: play = function() { … }",
200
+ "end": "(\\))",
201
+ "endCaptures": {
202
+ "1": {
203
+ "name": "punctuation.definition.parameters.end.js"
204
+ }
205
+ },
206
+ "name": "meta.function.js",
207
+ "patterns": [
208
+ {
209
+ "include": "#function-params"
210
+ }
211
+ ]
212
+ },
213
+ {
214
+ "begin": "\\b(?:(async)(?:\\s+))?(function\\*?)\\s*((\\*)|(?:(?:\\s+)(\\*?[a-zA-Z_$]\\w*)))?\\s*(\\()",
215
+ "beginCaptures": {
216
+ "1": {
217
+ "name": "storage.modifier.js"
218
+ },
219
+ "2": {
220
+ "name": "storage.type.function.js"
221
+ },
222
+ "4": {
223
+ "name": "storage.type.function.js"
224
+ },
225
+ "5": {
226
+ "name": "entity.name.function.js"
227
+ },
228
+ "6": {
229
+ "name": "punctuation.definition.parameters.begin.js"
230
+ }
231
+ },
232
+ "comment": "match regular function like: function myFunc(arg) { … }",
233
+ "end": "(\\))",
234
+ "endCaptures": {
235
+ "1": {
236
+ "name": "punctuation.definition.parameters.end.js"
237
+ }
238
+ },
239
+ "name": "meta.function.js",
240
+ "patterns": [
241
+ {
242
+ "include": "#function-params"
243
+ }
244
+ ]
245
+ },
246
+ {
247
+ "begin": "\\b([a-zA-Z_?.$][\\w?.$]*)\\s*(:)\\s*\\b(?:(async)(?:\\s+))?(function\\*?)\\s*(\\*?)\\s*([a-zA-Z_?$][\\w?$]*)?\\s*(\\()",
248
+ "beginCaptures": {
249
+ "1": {
250
+ "name": "entity.name.function.js"
251
+ },
252
+ "2": {
253
+ "name": "keyword.operator.js"
254
+ },
255
+ "3": {
256
+ "name": "storage.modifier.js"
257
+ },
258
+ "4": {
259
+ "name": "storage.type.function.js"
260
+ },
261
+ "5": {
262
+ "name": "storage.type.function.js"
263
+ },
264
+ "6": {
265
+ "name": "entity.name.function.js"
266
+ },
267
+ "7": {
268
+ "name": "punctuation.definition.parameters.begin.js"
269
+ }
270
+ },
271
+ "comment": "match stuff like: foobar: function() { … }",
272
+ "end": "(\\))",
273
+ "endCaptures": {
274
+ "1": {
275
+ "name": "punctuation.definition.parameters.end.js"
276
+ }
277
+ },
278
+ "name": "meta.function.json.js",
279
+ "patterns": [
280
+ {
281
+ "include": "#function-params"
282
+ }
283
+ ]
284
+ },
285
+ {
286
+ "begin": "(?:((')([^']*?)('))|((\")([^\"]*?)(\")))\\s*(:)\\s*\\b(?:(async)(?:\\s+))?(function\\*?)\\s*(\\*?)\\s*([a-zA-Z_?$][\\w?$]*)?\\s*(\\()",
287
+ "beginCaptures": {
288
+ "1": {
289
+ "name": "string.quoted.single.js"
290
+ },
291
+ "2": {
292
+ "name": "punctuation.definition.string.begin.js"
293
+ },
294
+ "3": {
295
+ "name": "entity.name.function.js"
296
+ },
297
+ "4": {
298
+ "name": "punctuation.definition.string.end.js"
299
+ },
300
+ "5": {
301
+ "name": "string.quoted.double.js"
302
+ },
303
+ "6": {
304
+ "name": "punctuation.definition.string.begin.js"
305
+ },
306
+ "7": {
307
+ "name": "entity.name.function.js"
308
+ },
309
+ "8": {
310
+ "name": "punctuation.definition.string.end.js"
311
+ },
312
+ "9": {
313
+ "name": "keyword.operator.js"
314
+ },
315
+ "10": {
316
+ "name": "storage.modifier.js"
317
+ },
318
+ "11": {
319
+ "name": "storage.type.function.js"
320
+ },
321
+ "12": {
322
+ "name": "storage.type.function.js"
323
+ },
324
+ "13": {
325
+ "name": "entity.name.function.js"
326
+ },
327
+ "14": {
328
+ "name": "punctuation.definition.parameters.begin.js"
329
+ }
330
+ },
331
+ "comment": "Attempt to match \"foo\": function",
332
+ "end": "(\\))",
333
+ "endCaptures": {
334
+ "1": {
335
+ "name": "punctuation.definition.parameters.end.js"
336
+ }
337
+ },
338
+ "name": "meta.function.json.js",
339
+ "patterns": [
340
+ {
341
+ "include": "#function-params"
342
+ }
343
+ ]
344
+ },
345
+ {
346
+ "begin": "\\b(constructor)\\s*(\\()",
347
+ "beginCaptures": {
348
+ "1": {
349
+ "name": "entity.name.function.constructor.js"
350
+ },
351
+ "2": {
352
+ "name": "punctuation.definition.parameters.begin.js"
353
+ }
354
+ },
355
+ "end": "(\\))",
356
+ "endCaptures": {
357
+ "1": {
358
+ "name": "punctuation.definition.parameters.end.js"
359
+ }
360
+ },
361
+ "patterns": [
362
+ {
363
+ "include": "#function-params"
364
+ }
365
+ ]
366
+ },
367
+ {
368
+ "include": "#methods"
369
+ },
370
+ {
371
+ "match": "\\b(class)(?:(?:\\s+(extends)\\s+(\\w+(?:\\.\\w*)?))|(?:(?:\\s+(\\w+(?:\\.\\w*)?))(?:\\s+(extends)\\s+(\\w+(?:\\.\\w*)?))?))",
372
+ "captures": {
373
+ "1": {
374
+ "name": "storage.type.class.js"
375
+ },
376
+ "2": {
377
+ "name": "storage.modifier.js"
378
+ },
379
+ "3": {
380
+ "name": "entity.name.type.js"
381
+ },
382
+ "4": {
383
+ "name": "entity.name.type.js"
384
+ },
385
+ "5": {
386
+ "name": "storage.modifier.js"
387
+ },
388
+ "6": {
389
+ "name": "entity.name.type.js"
390
+ }
391
+ },
392
+ "name": "meta.class.js"
393
+ },
394
+ {
395
+ "name": "meta.function.arrow.js",
396
+ "begin": "(?<![A-Za-z0-9])(\\()(?=(?:[^\\(\\)]*)?\\)\\s*=>)",
397
+ "beginCaptures": {
398
+ "1": {
399
+ "name": "punctuation.definition.parameters.begin.js"
400
+ }
401
+ },
402
+ "end": "(\\))(\\s*=>)",
403
+ "endCaptures": {
404
+ "1": {
405
+ "name": "punctuation.definition.parameters.end.js"
406
+ },
407
+ "2": {
408
+ "name": "storage.type.arrow.js"
409
+ }
410
+ },
411
+ "patterns": [
412
+ {
413
+ "include": "#function-params"
414
+ }
415
+ ]
416
+ },
417
+ {
418
+ "comment": "match stuff like: play = (a,b) => { … }",
419
+ "name": "meta.function.arrow.js",
420
+ "begin": "([a-zA-Z_?$][\\w?$]*)\\s*(=)\\s*(\\()(?=(?:[^\\(\\)]*)?\\)\\s*=>)",
421
+ "beginCaptures": {
422
+ "1": {
423
+ "name": "entity.name.function.js"
424
+ },
425
+ "2": {
426
+ "name": "keyword.operator.js"
427
+ },
428
+ "3": {
429
+ "name": "punctuation.definition.parameters.begin.js"
430
+ }
431
+ },
432
+ "end": "(\\))(\\s*=>)",
433
+ "endCaptures": {
434
+ "1": {
435
+ "name": "punctuation.definition.parameters.end.js"
436
+ },
437
+ "2": {
438
+ "name": "storage.type.arrow.js"
439
+ }
440
+ },
441
+ "patterns": [
442
+ {
443
+ "include": "#function-params"
444
+ }
445
+ ]
446
+ },
447
+ {
448
+ "captures": {
449
+ "1": {
450
+ "name": "keyword.operator.new.js"
451
+ },
452
+ "2": {
453
+ "name": "entity.name.type.instance.js"
454
+ }
455
+ },
456
+ "match": "(new)\\s+(\\$?\\w+(?:\\.\\w*)?)",
457
+ "name": "meta.class.instance.constructor"
458
+ },
459
+ {
460
+ "match": "\\b(console)\\b",
461
+ "name": "entity.name.type.object.js.console"
462
+ },
463
+ {
464
+ "match": "\\.(warn|info|log|error|time|timeEnd|assert)\\b",
465
+ "name": "support.function.js.console"
466
+ },
467
+ {
468
+ "include": "#numbers"
469
+ },
470
+ {
471
+ "include": "#strings"
472
+ },
473
+ {
474
+ "include": "#comments"
475
+ },
476
+ {
477
+ "captures": {
478
+ "0": {
479
+ "name": "punctuation.definition.comment.html.js"
480
+ },
481
+ "2": {
482
+ "name": "punctuation.definition.comment.html.js"
483
+ }
484
+ },
485
+ "match": "(<!--|-->)",
486
+ "name": "comment.block.html.js"
487
+ },
488
+ {
489
+ "match": "=>",
490
+ "name": "storage.type.arrow.js"
491
+ },
492
+ {
493
+ "match": "(?<!\\.)\\b(class|enum|function|interface)(?!\\s*:)\\b",
494
+ "name": "storage.type.js"
495
+ },
496
+ {
497
+ "match": "(?<!\\.)\\b(async|export|extends|implements|let|private|protected|public|static|var)(?!\\s*:)\\b",
498
+ "name": "storage.modifier.js"
499
+ },
500
+ {
501
+ "begin": "(?<!\\.)\\b(const)(?!\\s*:)\\b",
502
+ "beginCaptures": {
503
+ "1": {
504
+ "name": "storage.modifier.js"
505
+ }
506
+ },
507
+ "end": "(=|\\bof\\b|\\bin\\b)|(;)|(?<!,)\\n",
508
+ "endCaptures": {
509
+ "1": {
510
+ "name": "keyword.operator.js"
511
+ },
512
+ "2": {
513
+ "name": "punctuation.terminator.statement.js"
514
+ }
515
+ },
516
+ "patterns": [
517
+ {
518
+ "match": "([$_a-zA-Z][$_a-zA-Z0-9]*)\\s*(:)\\s*([$_a-zA-Z][$_a-zA-Z0-9]*)?",
519
+ "captures": {
520
+ "2": {
521
+ "name": "keyword.operator.js"
522
+ },
523
+ "3": {
524
+ "name": "constant.other.js"
525
+ }
526
+ }
527
+ },
528
+ {
529
+ "match": "([$_a-zA-Z][$_a-zA-Z0-9]*)",
530
+ "captures": {
531
+ "1": {
532
+ "name": "constant.other.js"
533
+ }
534
+ }
535
+ },
536
+ {
537
+ "match": "\\.\\.\\.",
538
+ "name": "keyword.operator.js"
539
+ },
540
+ {
541
+ "match": ",",
542
+ "name": "meta.delimiter.object.comma.js"
543
+ },
544
+ {
545
+ "match": "\\(|\\)",
546
+ "name": "meta.brace.round.js"
547
+ },
548
+ {
549
+ "match": "\\{|\\}",
550
+ "name": "meta.brace.curly.js"
551
+ },
552
+ {
553
+ "match": "\\[|\\]",
554
+ "name": "meta.brace.square.js"
555
+ },
556
+ {
557
+ "include": "#comments"
558
+ }
559
+ ]
560
+ },
561
+ {
562
+ "match": "(?<!\\.)\\b(yield)(?!\\s*:)\\b(?:\\s*(\\*))?",
563
+ "captures": {
564
+ "1": {
565
+ "name": "keyword.control.js"
566
+ },
567
+ "2": {
568
+ "name": "storage.modifier.js"
569
+ }
570
+ },
571
+ "name": "meta.control.yield.js"
572
+ },
573
+ {
574
+ "match": "(?<!\\.)\\b(await|break|case|catch|continue|do|else|finally|for|if|import|from|package|return|switch|throw|try|while|with)(?!\\s*:)\\b",
575
+ "name": "keyword.control.js"
576
+ },
577
+ {
578
+ "match": "(?<!\\.)\\b(default)\\b",
579
+ "name": "keyword.control.js"
580
+ },
581
+ {
582
+ "match": "(?<!\\.)\\b(delete|in|of|instanceof|new|typeof|void)(?!\\s*:)\\b",
583
+ "name": "keyword.operator.js"
584
+ },
585
+ {
586
+ "match": "(?<!\\.)\\btrue(?!\\s*:)\\b",
587
+ "name": "constant.language.boolean.true.js"
588
+ },
589
+ {
590
+ "match": "(?<!\\.)\\bfalse(?!\\s*:)\\b",
591
+ "name": "constant.language.boolean.false.js"
592
+ },
593
+ {
594
+ "match": "(?<!\\.)\\bnull(?!\\s*:)\\b",
595
+ "name": "constant.language.null.js"
596
+ },
597
+ {
598
+ "match": "(?<!\\.)\\b([A-Z][A-Z0-9_]+)(?!\\s*:)\\b",
599
+ "name": "constant.other.js"
600
+ },
601
+ {
602
+ "match": "(?<!\\.)\\b(super|this)(?!\\s*:)\\b",
603
+ "name": "variable.language.js"
604
+ },
605
+ {
606
+ "match": "(?<!\\.)\\b(debugger)(?!\\s*:)\\b",
607
+ "name": "keyword.other.js"
608
+ },
609
+ {
610
+ "match": "(?<!\\$)\\b(Anchor|Applet|Area|Array|Boolean|Button|Checkbox|Date|document|event|FileUpload|Form|Frame|Function|Hidden|History|Image|JavaArray|JavaClass|JavaObject|JavaPackage|java|Layer|Link|Location|Math|MimeType|Number|navigator|netscape|Object|Option|Packages|Password|Plugin|Radio|RegExp|Reset|Select|String|Style|Submit|screen|sun|Text|Textarea|window|XMLHttpRequest)\\b",
611
+ "name": "support.class.js"
612
+ },
613
+ {
614
+ "match": "\\b(shift|showModelessDialog|showModalDialog|showHelp|scroll|scrollX|scrollByPages|scrollByLines|scrollY|scrollTo|stop|strike|sin|sizeToContent|sidebar|signText|sort|sup|sub|substr|substring|splice|split|send|set(Milliseconds|Seconds|Minutes|Hours|Month|Year|FullYear|Date|UTC(Milliseconds|Seconds|Minutes|Hours|Month|FullYear|Date)|Time|Hotkeys|Cursor|Timeout|Interval|ZOptions|Active|Resizable|RequestHeader)|search|sqrt|slice|savePreferences|small|home|handleEvent|navigate|char|charCodeAt|charAt|cos|concat|contextual|confirm|compile|ceil|clear|clearTimeout|clearInterval|captureEvents|call|createStyleSheet|createPopup|createEventObject|to(GMTString|UTCString|String|Source|UpperCase|LowerCase|LocaleString)|test|tan|taint|taintEnabled|isNaN|isFinite|indexOf|italics|disableExternalCapture|dump|detachEvent|unshift|untaint|unescape|unwatch|updateCommands|join|javaEnabled|pop|pow|push|plugins.refresh|paddings|parse|parseInt|parseFloat|print|prompt|preference|escape|enableExternalCapture|eval|elementFromPoint|exp|exec|execScript|execCommand|valueOf|UTC|queryCommandState|queryCommandIndeterm|queryCommandEnabled|queryCommandValue|find|file|fileModifiedDate|fileSize|fileCreatedDate|fileUpdatedDate|fixed|fontsize|fontcolor|forward|floor|fromCharCode|watch|link|load|log|lastIndexOf|asin|anchor|acos|attachEvent|atob|atan|atan2|apply|alert|abs|abort|round|routeEvents|resize|resizeBy|resizeTo|recalc|returnValue|replace|reverse|reload|releaseCapture|releaseEvents|random|go|get(Milliseconds|Seconds|Minutes|Hours|Month|Day|Year|FullYear|Time|Date|TimezoneOffset|UTC(Milliseconds|Seconds|Minutes|Hours|Day|Month|FullYear|Date)|Attention|Selection|ResponseHeader|AllResponseHeaders)|min|moveBy|moveBelow|moveTo|moveToAbsolute|moveAbove|mergeAttributes|match|margins|max|btoa|big|bold|borderWidths|blink|back)\\b(?=\\()",
615
+ "name": "support.function.js"
616
+ },
617
+ {
618
+ "match": "\\b(substringData|submit|splitText|setNamedItem|setAttribute|setAttributeNode|select|hasChildNodes|hasFeature|namedItem|click|close|cloneNode|createComment|createCDATASection|createCaption|createTHead|createTextNode|createTFoot|createDocumentFragment|createProcessingInstruction|createEntityReference|createElement|createAttribute|tabIndex|insertRow|insertBefore|insertCell|insertData|item|open|deleteRow|deleteCell|deleteCaption|deleteTHead|deleteTFoot|deleteData|focus|write|writeln|add|appendChild|appendData|reset|replaceChild|replaceData|move|moveNamedItem|moveChild|moveAttribute|moveAttributeNode|getNamedItem|getElementsByName|getElementsByTagName|getElementById|getAttribute|getAttributeNode|blur)\\b(?=\\()",
619
+ "name": "support.function.dom.js"
620
+ },
621
+ {
622
+ "match": "(?<=\\.)(systemLanguage|scripts|scrollbars|screenX|screenY|screenTop|screenLeft|style|styleSheets|status|statusText|statusbar|siblingBelow|siblingAbove|source|suffixes|security|securityPolicy|selection|self|history|host|hostname|hash|hasFocus|XMLDocument|XSLDocument|next|namespaces|namespaceURI|nameProp|MIN_VALUE|MAX_VALUE|characterSet|constructor|controllers|cookieEnabled|colorDepth|components|complete|current|cpuClass|clip|clipBoardData|clientInformation|closed|classes|callee|caller|crypto|toolbar|top|textTransform|textIndent|textDecoration|textAlign|tags|SQRT1_2|SQRT2|innerHeight|innerWidth|input|ids|ignoreCase|zIndex|oscpu|onreadystatechange|onLine|outerHeight|outerWidth|opsProfile|opener|offscreenBuffering|NEGATIVE_INFINITY|display|dialogHeight|dialogTop|dialogWidth|dialogLeft|dialogArguments|directories|description|defaultStatus|defaultChecked|defaultCharset|defaultView|userProfile|userLanguage|userAgent|uniqueID|undefined|updateInterval|_content|pixelDepth|port|personalbar|pkcs11|plugins|platform|pathname|paddingRight|paddingBottom|paddingTop|paddingLeft|parent|parentWindow|parentLayer|pageX|pageXOffset|pageY|pageYOffset|protocol|prototype|product|productSub|prompter|previous|prefix|encoding|enabledPlugin|external|expando|embeds|visiblity|vendor|vendorSub|vLinkcolor|URLUnencoded|PI|POSITIVE_INFINITY|filename|fontSize|fontFamily|fontWeight|formName|frames|frameElement|fgColor|E|whiteSpace|listStyleType|lineHeight|linkColor|location|locationbar|localName|lowsrc|length|left|leftContext|lastModified|lastMatch|lastIndex|lastParen|layers|layerX|language|appMinorVersion|appName|appCodeName|appCore|appVersion|availHeight|availTop|availWidth|availLeft|all|arity|arguments|aLinkcolor|above|right|rightContext|responseXML|responeText|readyState|global|x|y|z|mimeTypes|multiline|menubar|marginRight|marginBottom|marginTop|marginLeft|LN10|LN2|LOG10E|LOG2E|bottom|border(Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth)|bufferDepth|below|backgroundColor|backgroundImage)\\b",
623
+ "name": "support.constant.js"
624
+ },
625
+ {
626
+ "match": "(?<=\\.)(shape|systemId|scheme|scope|scrolling|standby|start|size|summary|specified|sectionRowIndex|selected|selectedIndex|hspace|httpEquiv|htmlFor|height|headers|href|hreflang|noResize|notations|notationName|noShade|noHref|nodeName|nodeType|nodeValue|noWrap|nextSibling|name|ch|childNodes|chOff|checked|charset|cite|content|cookie|cords|code|codeBase|codeType|cols|colSpan|color|compact|cells|cellSpacing|cellPadding|clear|className|caption|type|tBodies|title|tHead|text|target|tagName|tFoot|isMap|index|id|implementation|images|options|ownerDocument|object|disabled|dir|doctype|documentElement|docmain|declare|defer|defaultSelected|defaultChecked|defaultValue|dateTime|data|useMap|publicId|parentNode|profile|profileend|prompt|previousDibling|enctype|entities|event|elements|vspace|version|value|valueType|vLink|vAlign|URL|firstChild|form|forms|face|frame|frameBorder|width|link|links|longDesc|lowSrc|lastChild|lang|label|anchors|accessKey|accept|acceptCharset|action|attributes|applets|alt|align|archive|areas|axis|aLink|abbr|rows|rowSpan|rowIndex|rules|rev|referrer|rel|readOnly|multiple|method|media|marginHeight|marginWidth|maxLength|body|border|background|bgColor)\\b",
627
+ "name": "support.constant.dom.js"
628
+ },
629
+ {
630
+ "match": "\\b(ELEMENT_NODE|ATTRIBUTE_NODE|TEXT_NODE|CDATA_SECTION_NODE|ENTITY_REFERENCE_NODE|ENTITY_NODE|PROCESSING_INSTRUCTION_NODE|COMMENT_NODE|DOCUMENT_NODE|DOCUMENT_TYPE_NODE|DOCUMENT_FRAGMENT_NODE|NOTATION_NODE|INDEX_SIZE_ERR|DOMSTRING_SIZE_ERR|HIERARCHY_REQUEST_ERR|WRONG_DOCUMENT_ERR|INVALID_CHARACTER_ERR|NO_DATA_ALLOWED_ERR|NO_MODIFICATION_ALLOWED_ERR|NOT_FOUND_ERR|NOT_SUPPORTED_ERR|INUSE_ATTRIBUTE_ERR)\\b",
631
+ "name": "support.constant.dom.js"
632
+ },
633
+ {
634
+ "match": "\\bon(Rowsinserted|Rowsdelete|Rowenter|Rowexit|Resize|Resizestart|Resizeend|Reset|Readystatechange|Mouseout|Mouseover|Mousedown|Mouseup|Mousemove|Before(cut|deactivate|unload|update|paste|print|editfocus|activate)|Blur|Scrolltop|Submit|Select|Selectstart|Selectionchange|Hover|Help|Change|Contextmenu|Controlselect|Cut|Cellchange|Clock|Close|Deactivate|Datasetchanged|Datasetcomplete|Dataavailable|Drop|Drag|Dragstart|Dragover|Dragdrop|Dragenter|Dragend|Dragleave|Dblclick|Unload|Paste|Propertychange|Error|Errorupdate|Keydown|Keyup|Keypress|Focus|Load|Activate|Afterupdate|Afterprint|Abort)\\b",
635
+ "name": "support.function.event-handler.js"
636
+ },
637
+ {
638
+ "match": "(?<!\\.)\\b(require)(?!\\s*:)\\b",
639
+ "name": "support.function.js"
640
+ },
641
+ {
642
+ "match": "(?<!\\.)\\b(module|exports|__filename|__dirname|global|process)(?!\\s*:)\\b",
643
+ "name": "support.variable.js"
644
+ },
645
+ {
646
+ "match": "\\b(Infinity|NaN|undefined)\\b",
647
+ "name": "constant.language.js"
648
+ },
649
+ {
650
+ "begin": "(?<=[\\[=(:+,!]|^|return|&&|\\|\\|)\\s*(/)(?![/*+{}?])(?=.*/)",
651
+ "beginCaptures": {
652
+ "1": {
653
+ "name": "punctuation.definition.string.begin.js"
654
+ }
655
+ },
656
+ "end": "(/)[gimuy]*",
657
+ "endCaptures": {
658
+ "1": {
659
+ "name": "punctuation.definition.string.end.js"
660
+ }
661
+ },
662
+ "name": "string.regexp.js",
663
+ "patterns": [
664
+ {
665
+ "include": "source.js.regexp"
666
+ }
667
+ ]
668
+ },
669
+ {
670
+ "match": "!=|!==|<=|>=|<<=|>>=|>>>=|\\*=|(?<!\\()/=|%=|\\+=|\\-=|&=|\\^=|!|%|&|\\*|/|\\-\\-|\\-|\\+\\+|\\+|~|===|==|=|<>|<|>|!|&&|\\|\\||\\?|\\:|\\^",
671
+ "comment": "match 2-character operator first",
672
+ "name": "keyword.operator.js"
673
+ },
674
+ {
675
+ "match": "\\;",
676
+ "name": "punctuation.terminator.statement.js"
677
+ },
678
+ {
679
+ "match": ",",
680
+ "name": "meta.delimiter.object.comma.js"
681
+ },
682
+ {
683
+ "match": "\\.",
684
+ "name": "meta.delimiter.method.period.js"
685
+ },
686
+ {
687
+ "captures": {
688
+ "1": {
689
+ "name": "punctuation.section.scope.begin.js"
690
+ },
691
+ "2": {
692
+ "name": "punctuation.section.scope.end.js"
693
+ }
694
+ },
695
+ "comment": "Allows the special return snippet to fire.",
696
+ "match": "(\\{)(\\})"
697
+ },
698
+ {
699
+ "match": "\\{|\\}",
700
+ "name": "meta.brace.curly.js"
701
+ },
702
+ {
703
+ "match": "\\(|\\)",
704
+ "name": "meta.brace.round.js"
705
+ },
706
+ {
707
+ "match": "\\[|\\]",
708
+ "name": "meta.brace.square.js"
709
+ },
710
+ {
711
+ "match": "\\A#!.*$",
712
+ "name": "comment.line.shebang.js"
713
+ }
714
+ ],
715
+ "repository": {
716
+ "numbers": {
717
+ "patterns": [
718
+ {
719
+ "match": "\\b((0(x|X)[0-9a-fA-F]+)|(0(b|B)[01]+)|(0(o|O)[0-7]+)|([0-9]+(\\.[0-9]+)?)((e|E)[+-]?[0-9]+)?)\\b",
720
+ "name": "constant.numeric.js"
721
+ }
722
+ ]
723
+ },
724
+ "strings": {
725
+ "patterns": [
726
+ {
727
+ "begin": "'",
728
+ "beginCaptures": {
729
+ "0": {
730
+ "name": "punctuation.definition.string.begin.js"
731
+ }
732
+ },
733
+ "end": "'",
734
+ "endCaptures": {
735
+ "0": {
736
+ "name": "punctuation.definition.string.end.js"
737
+ }
738
+ },
739
+ "name": "string.quoted.single.js",
740
+ "patterns": [
741
+ {
742
+ "match": "\\\\(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)",
743
+ "name": "constant.character.escape.js"
744
+ },
745
+ {
746
+ "match": "[^']*[^\\n\\r'\\\\]$",
747
+ "name": "invalid.illegal.string.js"
748
+ }
749
+ ]
750
+ },
751
+ {
752
+ "begin": "\"",
753
+ "beginCaptures": {
754
+ "0": {
755
+ "name": "punctuation.definition.string.begin.js"
756
+ }
757
+ },
758
+ "end": "\"",
759
+ "endCaptures": {
760
+ "0": {
761
+ "name": "punctuation.definition.string.end.js"
762
+ }
763
+ },
764
+ "name": "string.quoted.double.js",
765
+ "patterns": [
766
+ {
767
+ "match": "\\\\(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)",
768
+ "name": "constant.character.escape.js"
769
+ },
770
+ {
771
+ "match": "[^\"]*[^\\n\\r\"\\\\]$",
772
+ "name": "invalid.illegal.string.js"
773
+ }
774
+ ]
775
+ },
776
+ {
777
+ "begin": "`",
778
+ "beginCaptures": {
779
+ "0": {
780
+ "name": "punctuation.definition.string.begin.js"
781
+ }
782
+ },
783
+ "end": "`",
784
+ "endCaptures": {
785
+ "0": {
786
+ "name": "punctuation.definition.string.end.js"
787
+ }
788
+ },
789
+ "name": "string.quoted.template.js",
790
+ "patterns": [
791
+ {
792
+ "match": "\\\\(x\\h{2}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.)",
793
+ "name": "constant.character.escape.js"
794
+ },
795
+ {
796
+ "include": "#interpolated_js"
797
+ }
798
+ ]
799
+ }
800
+ ]
801
+ },
802
+ "methods": {
803
+ "patterns": [
804
+ {
805
+ "name": "meta.method.js",
806
+ "comment": "match regular function like: function myFunc(arg) { … }",
807
+ "begin": "\\b((?!(?:break|case|catch|continue|do|else|finally|for|function|if|export|import|package|return|switch|throw|try|while|with)[\\s\\(])(?:[a-zA-Z_$][a-zA-Z_$0-9]*))\\s*(\\()(?=(?:[^\\(\\)]*)?\\)\\s*\\{)",
808
+ "beginCaptures": {
809
+ "1": {
810
+ "name": "entity.name.function.js"
811
+ },
812
+ "2": {
813
+ "name": "punctuation.definition.parameters.begin.js"
814
+ }
815
+ },
816
+ "patterns": [
817
+ {
818
+ "include": "#function-params"
819
+ },
820
+ {
821
+ "include": "#strings"
822
+ }
823
+ ],
824
+ "end": "(\\))",
825
+ "endCaptures": {
826
+ "1": {
827
+ "name": "punctuation.definition.parameters.end.js"
828
+ }
829
+ }
830
+ }
831
+ ]
832
+ },
833
+ "function-params": {
834
+ "patterns": [
835
+ {
836
+ "include": "#numbers"
837
+ },
838
+ {
839
+ "include": "#strings"
840
+ },
841
+ {
842
+ "match": "\\(|\\)",
843
+ "name": "meta.brace.round.js"
844
+ },
845
+ {
846
+ "match": "\\[|\\]",
847
+ "name": "meta.brace.square.js"
848
+ },
849
+ {
850
+ "match": "\\{|\\}",
851
+ "name": "meta.brace.curly.js"
852
+ },
853
+ {
854
+ "match": ",",
855
+ "name": "meta.object.delimiter.js"
856
+ },
857
+ {
858
+ "match": "=",
859
+ "name": "keyword.operator.js"
860
+ },
861
+ {
862
+ "include": "#comments"
863
+ },
864
+ {
865
+ "match": "[a-zA-Z_$][a-zA-Z_$0-9]*",
866
+ "name": "variable.parameter.function.js"
867
+ }
868
+ ]
869
+ },
870
+ "interpolated_js": {
871
+ "patterns": [
872
+ {
873
+ "begin": "\\$\\{",
874
+ "captures": {
875
+ "0": {
876
+ "name": "punctuation.section.embedded.js"
877
+ }
878
+ },
879
+ "end": "\\}",
880
+ "name": "source.js.embedded.source",
881
+ "patterns": [
882
+ {
883
+ "include": "$self"
884
+ }
885
+ ]
886
+ }
887
+ ]
888
+ },
889
+ "docblock": {
890
+ "patterns": [
891
+ {
892
+ "match": "(?<!\\w)@(abstract|access|alias|augments|author|async|attribute|arg|argument|beta|borrows|bubbes|callback|class|classdesc|config|const|constant|constructs|constructor|copyright|chainable|default|defaultvalue|deprecated|desc|description|enum|emits|event|example|exports|external|extends|extension|extensionfor|extension_for|for|file|fileoverview|fires|final|function|global|host|ignore|implements|inheritdoc|inner|instance|interface|kind|lends|license|listens|main|member|memberof|method|mixex|mixin(?:s|)|module|name|namespace|override|overview|param|private|prop|property|protected|readonly|readOnly|requires|required|return|returns|see|since|static|summary|submodule|this|throws|todo|tutorial|type|typedef|var|variation|version|virtual|uses|writeOnce)\\b",
893
+ "name": "storage.type.class.jsdoc"
894
+ }
895
+ ]
896
+ },
897
+ "comments": {
898
+ "patterns": [
899
+ {
900
+ "begin": "/\\*\\*(?!/)",
901
+ "captures": {
902
+ "0": {
903
+ "name": "punctuation.definition.comment.js"
904
+ }
905
+ },
906
+ "patterns": [
907
+ {
908
+ "include": "#docblock"
909
+ }
910
+ ],
911
+ "end": "\\*/",
912
+ "name": "comment.block.documentation.js"
913
+ },
914
+ {
915
+ "begin": "/\\*",
916
+ "captures": {
917
+ "0": {
918
+ "name": "punctuation.definition.comment.js"
919
+ }
920
+ },
921
+ "end": "\\*/",
922
+ "name": "comment.block.js"
923
+ },
924
+ {
925
+ "begin": "(^[ \\t]+)?(?=//)",
926
+ "beginCaptures": {
927
+ "1": {
928
+ "name": "punctuation.whitespace.comment.leading.js"
929
+ }
930
+ },
931
+ "end": "(?!\\G)",
932
+ "patterns": [
933
+ {
934
+ "begin": "//",
935
+ "beginCaptures": {
936
+ "0": {
937
+ "name": "punctuation.definition.comment.js"
938
+ }
939
+ },
940
+ "end": "\\n",
941
+ "name": "comment.line.double-slash.js"
942
+ }
943
+ ]
944
+ }
945
+ ]
946
+ }
947
+ }
948
+ }