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,68 @@
1
+ {
2
+ "fileTypes": [
3
+ "ROOT"
4
+ ],
5
+ "name": "Isabelle ROOT",
6
+ "patterns": [
7
+ {
8
+ "match": "\\b(chapter|session|in|description|options|global_theories|theories|files|document_files)\\b",
9
+ "name": "keyword.control"
10
+ },
11
+ {
12
+ "match": "\\b(browser_info|condition|document|document_graph|document_output|document_variants|eta_contract|goals_limit|names_long|names_short|names_unique|pretty_margin|print_mode|show_brackets|show_consts|show_main_goal|show_question_marks|show_sorts|show_types|thy_output_break|thy_output_display|thy_output_indent|thy_output_modes|thy_output_quotes|thy_output_source|timeout)\\b",
13
+ "name": "keyword.other.option"
14
+ },
15
+ {
16
+ "match": "\\b(true|false)\\b",
17
+ "name": "support.constant"
18
+ },
19
+ {
20
+ "captures": {
21
+ "1": {
22
+ "name": "keyword.other.option"
23
+ },
24
+ "2": {
25
+ "name": "keyword.operator"
26
+ },
27
+ "3": {
28
+ "name": "support.constant"
29
+ }
30
+ },
31
+ "match": "\\b(quick_and_dirty|skip_proofs)[ ]*(\\=)[ ]*(false)\\b",
32
+ "name": "meta.abandon-proof.false"
33
+ },
34
+ {
35
+ "match": "\\b(quick_and_dirty|skip_proofs)\\b",
36
+ "name": "invalid.illegal.abandon-proof"
37
+ },
38
+ {
39
+ "begin": "\"",
40
+ "end": "\"",
41
+ "name": "string.quoted.double"
42
+ },
43
+ {
44
+ "begin": "\\{\\*",
45
+ "end": "\\*\\}",
46
+ "name": "comment.block.documentation"
47
+ },
48
+ {
49
+ "begin": "\\(\\*",
50
+ "end": "\\*\\)",
51
+ "name": "comment.block"
52
+ },
53
+ {
54
+ "match": "\\(|\\)|\\[|\\]|\\=|\\+|\\,",
55
+ "name": "keyword.operator"
56
+ },
57
+ {
58
+ "match": "\\??'?([^\\W\\d]|\\\\<\\w+\\>)([.\\w\\']|\\\\<\\w+\\>)*",
59
+ "name": "variable.other"
60
+ },
61
+ {
62
+ "match": "[0-9]+",
63
+ "name": "constant.numeric"
64
+ }
65
+ ],
66
+ "scopeName": "source.isabelle.root",
67
+ "uuid": "D9EB4C04-5E72-4D19-A640-4035F9A762C8"
68
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "fileTypes": [
3
+ "thy"
4
+ ],
5
+ "name": "Isabelle Theory",
6
+ "patterns": [
7
+ {
8
+ "begin": "\\{\\*",
9
+ "end": "\\*\\}",
10
+ "name": "comment.block.documentation"
11
+ },
12
+ {
13
+ "begin": "\\\\\\<open\\>",
14
+ "end": "\\\\\\<close\\>",
15
+ "name": "comment.block.documentation"
16
+ },
17
+ {
18
+ "begin": "\\(\\*",
19
+ "end": "\\*\\)",
20
+ "name": "comment.block"
21
+ },
22
+ {
23
+ "match": "--([ ]*\"[^\"]+\")?",
24
+ "name": "comment.line"
25
+ },
26
+ {
27
+ "captures": {
28
+ "1": {
29
+ "name": "keyword.other.isabelle.theory"
30
+ },
31
+ "2": {
32
+ "name": "storage"
33
+ }
34
+ },
35
+ "match": "\\b(theory)[ ]+([a-zA-Z0-9_]+)"
36
+ },
37
+ {
38
+ "match": "\\b(header|chapter|section|subsection|subsubsection|sect|subsect|subsubsect)\\b",
39
+ "name": "markup.heading"
40
+ },
41
+ {
42
+ "match": "\\b(and|assumes|attach|avoids|binder|checking|class_instance|class_relation|code_module|congs|constant|constrains|datatypes|defines|file|fixes|for|functions|hints|identifier|if|imports|in|includes|infix|infixl|infixr|is|keywords|lazy|module_name|monos|morphisms|no_discs_sels|notes|obtains|open|output|overloaded|parametric|permissive|pervasive|rep_compat|shows|structure|type_class|type_constructor|unchecked|unsafe|where|begin|end)\\b",
43
+ "name": "keyword.other.minor"
44
+ },
45
+ {
46
+ "match": "\\b(ML_command|ML_val|class_deps|code_deps|code_thms|display_drafts|find_consts|find_theorems|find_unused_assms|full_prf|help|locale_deps|nitpick|pr|prf|print_abbrevs|print_antiquotations|print_attributes|print_binds|print_bnfs|print_bundles|print_case_translations|print_cases|print_claset|print_classes|print_codeproc|print_codesetup|print_coercions|print_commands|print_context|print_defn_rules|print_dependencies|print_facts|print_induct_rules|print_inductives|print_interps|print_locale|print_locales|print_methods|print_options|print_orders|print_quot_maps|print_quotconsts|print_quotients|print_quotientsQ3|print_quotmapsQ3|print_rules|print_simpset|print_state|print_statement|print_syntax|print_theorems|print_theory|print_trans_rules|prop|pwd|quickcheck|refute|sledgehammer|smt_status|solve_direct|spark_status|term|thm|thm_deps|thy_deps|try|try0|typ|unused_thms|value|values|welcome|print_ML_antiquotations|print_term_bindings|values_prolog)\\b",
47
+ "name": "keyword.other.diagnostic"
48
+ },
49
+ {
50
+ "match": "\\b(ML|ML_file|abbreviation|adhoc_overloading|arities|atom_decl|attribute_setup|axiomatization|bundle|case_of_simps|class|classes|classrel|codatatype|code_abort|code_class|code_const|code_datatype|code_identifier|code_include|code_instance|code_modulename|code_monad|code_printing|code_reflect|code_reserved|code_type|coinductive|coinductive_set|consts|context|datatype|datatype_new|datatype_new_compat|declaration|declare|default_sort|defer_recdef|definition|defs|domain|domain_isomorphism|domaindef|equivariance|export_code|extract|extract_type|fixrec|fun|fun_cases|hide_class|hide_const|hide_fact|hide_type|import_const_map|import_file|import_tptp|import_type_map|inductive|inductive_set|instantiation|judgment|lifting_forget|lifting_update|local_setup|locale|method_setup|nitpick_params|no_adhoc_overloading|no_notation|no_syntax|no_translations|no_type_notation|nominal_datatype|nonterminal|notation|notepad|oracle|overloading|parse_ast_translation|parse_translation|partial_function|primcorec|primrec|primrec_new|print_ast_translation|print_translation|quickcheck_generator|quickcheck_params|realizability|realizers|recdef|record|refute_params|setup|setup_lifting|simproc_setup|simps_of_case|sledgehammer_params|spark_end|spark_open|spark_open_siv|spark_open_vcg|spark_proof_functions|spark_types|statespace|syntax|syntax_declaration|text|text_raw|txt|txt_raw|theorems|translations|type_notation|type_synonym|typed_print_translation|typedecl|hoarestate|install_C_file|install_C_types|wpc_setup|c_defs|c_types|memsafe|SML_export|SML_file|SML_import|approximate|bnf_axiomatization|cartouche|datatype_compat|free_constructors|functor|nominal_function|nominal_termination|permanent_interpretation|binds|defining|smt2_status|term_cartouche|boogie_file|text_cartouche|autocorres|sep_instance)\\b",
51
+ "name": "keyword.other.declaration"
52
+ },
53
+ {
54
+ "match": "\\b(inductive_cases|inductive_simps|crunch)\\b",
55
+ "name": "keyword.other.script"
56
+ },
57
+ {
58
+ "match": "\\b(ax_specification|bnf|code_pred|corollary|cpodef|crunch_ignore|enriched_type|function|instance|interpretation|lift_definition|nominal_inductive|nominal_inductive2|nominal_primrec|pcpodef|primcorecursive|quotient_definition|quotient_type|recdef_tc|rep_datatype|spark_vc|specification|subclass|sublocale|termination|theorem|typedef|wrap_free_constructors)\\b",
59
+ "name": "keyword.other.goal"
60
+ },
61
+ {
62
+ "match": "\\b(have|hence|interpret|next|proof|finally|from|then|ultimately|with|ML_prf|also|include|including|let|moreover|note|unfolding|using|write|ML_prf|also|include|including|let|moreover|note|txt|txt_raw|unfolding|using|write|assume|case|def|fix|presume|guess|obtain|show|thus|apply|apply_end|apply_trace|back|defer|prefer|and|by|done|qed)\\b",
63
+ "name": "keyword.control.proof"
64
+ },
65
+ {
66
+ "match": "\\b(lemma|schematic_lemma|theorem|schematic_theorem|corollary|schematic_corollary|lemmas)\\b",
67
+ "name": "support.constant"
68
+ },
69
+ {
70
+ "match": "\\b(sorry|oops)\\b",
71
+ "name": "invalid.illegal.abandon-proof"
72
+ },
73
+ {
74
+ "begin": "\"",
75
+ "end": "\"",
76
+ "name": "string"
77
+ },
78
+ {
79
+ "begin": "`",
80
+ "end": "`",
81
+ "name": "string"
82
+ },
83
+ {
84
+ "match": "\\??'?([^\\W\\d]|\\\\<\\w+\\>)([.\\w\\']|\\\\<\\w+\\>)*",
85
+ "name": "variable.other"
86
+ },
87
+ {
88
+ "match": "::|:|\\(|\\)|\\[|\\]|_|\\=|\\,|\\+|\\-|\\!|\\?|\\|",
89
+ "name": "keyword.operator"
90
+ },
91
+ {
92
+ "match": "\\.\\.|\\{|\\}|\\.",
93
+ "name": "keyword.operator.proof"
94
+ },
95
+ {
96
+ "match": ";",
97
+ "name": "punctuation.terminator.isabelle"
98
+ },
99
+ {
100
+ "match": "[0-9]+",
101
+ "name": "constant.numeric"
102
+ }
103
+ ],
104
+ "scopeName": "source.isabelle.theory",
105
+ "uuid": "37F7FDEA-2EAA-47C2-8EBF-2E8128D8ADD9"
106
+ }
@@ -0,0 +1,49 @@
1
+ {
2
+ "fileTypes": [
3
+ "ijs"
4
+ ],
5
+ "name": "J",
6
+ "patterns": [
7
+ {
8
+ "name": "string.j",
9
+ "match": "('[^']*')"
10
+ },
11
+ {
12
+ "name": "constant.numeric.j",
13
+ "match": "(_?\\d*\\.?\\d+)"
14
+ },
15
+ {
16
+ "name": "comment.j",
17
+ "match": "(?:^|[ )])(NB\\..*$)"
18
+ },
19
+ {
20
+ "name": "copula.global.j",
21
+ "match": "=\\:"
22
+ },
23
+ {
24
+ "name": "copula.local.j",
25
+ "match": "=\\."
26
+ },
27
+ {
28
+ "name": "keyword.j",
29
+ "match": "(?:^|(?<=[) ]))((?:while\\.)|(?:whilst\\.)|(?:if\\.)|(?:elseif\\.)|(?:else\\.)|(?:do\\.)|(?:end\\.))"
30
+ },
31
+ {
32
+ "name": "noun.j",
33
+ "match": "(?:_(?=[^\\d:]))|(?:a[.:])"
34
+ },
35
+ {
36
+ "name": "conjunction.j",
37
+ "match": "(?:\\^\\:)|(?:[.:`@][.:]?)|(?:;\\.)|(?:![.:])|(?:[\"](?![.:]))|(?:\\&\\.?\\:?)|(?:[dHT]\\.)|(?:D[.:])|(?:[LS]\\:)"
38
+ },
39
+ {
40
+ "name": "adverb.j",
41
+ "match": "(?:[~}](?![.:]))|(?:[/\\\\]\\.?)|(?:[bfM]\\.)|(?:t[.:])"
42
+ },
43
+ {
44
+ "name": "verb.j",
45
+ "match": "(?:[=!](?![.:]))|(?:[<>+*%$|,#{-][.:]?)|(?:_\\:)|(?:\\^\\.?)|(?:\\^\\!\\.)|(?:[~}\"ip][.:])|(?:[;\\[]\\:?)|(?:[/\\\\]\\:)|\\]|(?:\\{\\:\\:)|(?:\\?\\.?)|(?:[AeEIjLr]\\.)|(?:p\\.\\.)|(?:[qsux0]\\:)|(?:_?[1-9]\\s?\\:)"
46
+ }
47
+ ],
48
+ "scopeName": "source.j"
49
+ }
@@ -0,0 +1,1009 @@
1
+ {
2
+ "fileTypes": [
3
+ "jade"
4
+ ],
5
+ "name": "Jade",
6
+ "patterns": [
7
+ {
8
+ "comment": "Doctype declaration.",
9
+ "match": "^(!!!|doctype)(\\s*[a-zA-Z0-9-_]+)?",
10
+ "name": "comment.other.doctype.jade"
11
+ },
12
+ {
13
+ "begin": "^(\\s*)//-",
14
+ "comment": "Unbuffered (jade-only) comments.",
15
+ "end": "^(?!(\\1\\s)|\\s*$)",
16
+ "name": "comment.unbuffered.block.jade"
17
+ },
18
+ {
19
+ "begin": "^(\\s*)//",
20
+ "comment": "Buffered (html) comments.",
21
+ "end": "^(?!(\\1\\s)|\\s*$)",
22
+ "name": "string.comment.buffered.block.jade",
23
+ "patterns": [
24
+ {
25
+ "captures": {
26
+ "1": {
27
+ "name": "invalid.illegal.comment.comment.block.jade"
28
+ }
29
+ },
30
+ "comment": "Buffered comments inside buffered comments will generate invalid html.",
31
+ "match": "^\\s*(//)(?!-)",
32
+ "name": "string.comment.buffered.block.jade"
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "begin": "^(\\s*)-$",
38
+ "comment": "Unbuffered code block.",
39
+ "end": "^(?!(\\1\\s)|\\s*$)",
40
+ "name": "javascript.embedded.jade",
41
+ "patterns": [
42
+ {
43
+ "include": "source.js"
44
+ }
45
+ ]
46
+ },
47
+ {
48
+ "begin": "^(\\s*)(script)(?=[.#(\\s])((?![^\\n]*type=)|(?=[^\\n]*(text|application)/javascript))",
49
+ "beginCaptures": {
50
+ "2": {
51
+ "name": "entity.name.tag.script.jade"
52
+ }
53
+ },
54
+ "comment": "Script tag with JavaScript code.",
55
+ "end": "^(?!(\\1\\s)|\\s*$)",
56
+ "name": "source.script.jade",
57
+ "patterns": [
58
+ {
59
+ "begin": "\\G(?=\\()",
60
+ "end": "$",
61
+ "name": "stuff.tag.script.jade",
62
+ "patterns": [
63
+ {
64
+ "include": "#tag_attributes"
65
+ }
66
+ ]
67
+ },
68
+ {
69
+ "begin": "\\G(?=[.#])",
70
+ "end": "$",
71
+ "name": "stuff.tag.script.jade",
72
+ "patterns": [
73
+ {
74
+ "include": "#complete_tag"
75
+ }
76
+ ]
77
+ },
78
+ {
79
+ "include": "source.js"
80
+ }
81
+ ]
82
+ },
83
+ {
84
+ "begin": "^(\\s*)(style)(?=[.#(\\s])",
85
+ "beginCaptures": {
86
+ "2": {
87
+ "name": "entity.name.tag.script.jade"
88
+ }
89
+ },
90
+ "comment": "Style tag with CSS code.",
91
+ "end": "^(?!(\\1\\s)|\\s*$)",
92
+ "name": "source.style.jade",
93
+ "patterns": [
94
+ {
95
+ "begin": "\\G(?=\\()",
96
+ "end": "$",
97
+ "name": "stuff.tag.style.jade",
98
+ "patterns": [
99
+ {
100
+ "include": "#tag_attributes"
101
+ }
102
+ ]
103
+ },
104
+ {
105
+ "begin": "\\G(?=[.#])",
106
+ "end": "$",
107
+ "name": "stuff.tag.style.jade",
108
+ "patterns": [
109
+ {
110
+ "include": "#complete_tag"
111
+ }
112
+ ]
113
+ },
114
+ {
115
+ "include": "source.css"
116
+ }
117
+ ]
118
+ },
119
+ {
120
+ "begin": "^(\\s*):(markdown)(?=\\(|$)$",
121
+ "beginCaptures": {
122
+ "2": {
123
+ "name": "constant.language.name.markdown.filter.jade"
124
+ }
125
+ },
126
+ "end": "^(?!(\\1\\s)|\\s*$)",
127
+ "name": "text.markdown.filter.jade",
128
+ "patterns": [
129
+ {
130
+ "include": "#filter_args"
131
+ },
132
+ {
133
+ "include": "text.html.markdown"
134
+ }
135
+ ]
136
+ },
137
+ {
138
+ "begin": "^(\\s*):(sass)(?=\\(|$)$",
139
+ "beginCaptures": {
140
+ "2": {
141
+ "name": "constant.language.name.sass.filter.jade"
142
+ }
143
+ },
144
+ "end": "^(?!(\\1\\s)|\\s*$)",
145
+ "name": "source.sass.filter.jade",
146
+ "patterns": [
147
+ {
148
+ "include": "#filter_args"
149
+ },
150
+ {
151
+ "include": "source.sass"
152
+ }
153
+ ]
154
+ },
155
+ {
156
+ "begin": "^(\\s*):(less)(?=\\(|$)$",
157
+ "beginCaptures": {
158
+ "2": {
159
+ "name": "constant.language.name.less.filter.jade"
160
+ }
161
+ },
162
+ "end": "^(?!(\\1\\s)|\\s*$)",
163
+ "name": "source.less.filter.jade",
164
+ "patterns": [
165
+ {
166
+ "include": "#filter_args"
167
+ },
168
+ {
169
+ "include": "source.less"
170
+ }
171
+ ]
172
+ },
173
+ {
174
+ "begin": "^(\\s*):(stylus)(?=\\(|$)$",
175
+ "beginCaptures": {
176
+ "2": {
177
+ "name": "constant.language.name.stylus.filter.jade"
178
+ }
179
+ },
180
+ "end": "^(?!(\\1\\s)|\\s*$)",
181
+ "name": "source.stylus.filter.jade",
182
+ "patterns": [
183
+ {
184
+ "include": "#filter_args"
185
+ },
186
+ {
187
+ "include": "source.stylus"
188
+ }
189
+ ]
190
+ },
191
+ {
192
+ "begin": "^(\\s*):(coffee(-?script)?)(?=\\(|$)",
193
+ "beginCaptures": {
194
+ "2": {
195
+ "name": "constant.language.name.coffeescript.filter.jade"
196
+ }
197
+ },
198
+ "end": "^(?!(\\1\\s)|\\s*$)",
199
+ "name": "source.coffeescript.filter.jade",
200
+ "patterns": [
201
+ {
202
+ "include": "#filter_args"
203
+ },
204
+ {
205
+ "include": "source.coffee"
206
+ }
207
+ ]
208
+ },
209
+ {
210
+ "begin": "^(\\s*)((:(?=.))|(:$))",
211
+ "beginCaptures": {
212
+ "4": {
213
+ "name": "invalid.illegal.empty.generic.filter.jade"
214
+ }
215
+ },
216
+ "comment": "Generic Jade filter.",
217
+ "end": "^(?!(\\1\\s)|\\s*$)",
218
+ "name": "text.generic.filter.jade",
219
+ "patterns": [
220
+ {
221
+ "begin": "\\G(?<=:)(?=.)",
222
+ "end": "$",
223
+ "name": "name.generic.filter.jade",
224
+ "patterns": [
225
+ {
226
+ "match": "\\G\\(",
227
+ "name": "invalid.illegal.name.generic.filter.jade"
228
+ },
229
+ {
230
+ "match": "\\w",
231
+ "name": "constant.language.name.generic.filter.jade"
232
+ },
233
+ {
234
+ "include": "#filter_args"
235
+ },
236
+ {
237
+ "match": "\\W",
238
+ "name": "invalid.illegal.name.generic.filter.jade"
239
+ }
240
+ ]
241
+ }
242
+ ]
243
+ },
244
+ {
245
+ "begin": "^(\\s*)(?=[\\w.#].*?\\.$)(?=(?:(?:(?:(?:(?:#[\\w-]+)|(?:\\.[\\w-]+))|(?:(?:[#!]\\{[^}]*\\})|(?:\\w(?:(?:[\\w:-]+[\\w-])|(?:[\\w-]*)))))(?:(?:#[\\w-]+)|(?:\\.[\\w-]+)|(?:\\((?:[^()\\'\\\"]*(?:(?:\\'(?:[^\\']|(?:(?<!\\\\)\\\\\\'))*\\')|(?:\\\"(?:[^\\\"]|(?:(?<!\\\\)\\\\\\\"))*\\\")))*[^()]*\\))*)*)(?:(?:(?::\\s+)|(?<=\\)))(?:(?:(?:(?:#[\\w-]+)|(?:\\.[\\w-]+))|(?:(?:[#!]\\{[^}]*\\})|(?:\\w(?:(?:[\\w:-]+[\\w-])|(?:[\\w-]*)))))(?:(?:#[\\w-]+)|(?:\\.[\\w-]+)|(?:\\((?:[^()\\'\\\"]*(?:(?:\\'(?:[^\\']|(?:(?<!\\\\)\\\\\\'))*\\')|(?:\\\"(?:[^\\\"]|(?:(?<!\\\\)\\\\\\\"))*\\\")))*[^()]*\\))*)*))*)\\.$)(?:(?:(#[\\w-]+)|(\\.[\\w-]+))|((?:[#!]\\{[^}]*\\})|(?:\\w(?:(?:[\\w:-]+[\\w-])|(?:[\\w-]*)))))",
246
+ "beginCaptures": {
247
+ "2": {
248
+ "name": "constant.id.tag.jade"
249
+ },
250
+ "3": {
251
+ "name": "constant.language.js"
252
+ },
253
+ "4": {
254
+ "name": "entity.name.tag.jade"
255
+ }
256
+ },
257
+ "comment": "Generated from dot_block_tag.py",
258
+ "end": "^(?!(\\1\\s)|\\s*$)",
259
+ "name": "text.block.dot.tag.jade",
260
+ "patterns": [
261
+ {
262
+ "include": "#tag_attributes"
263
+ },
264
+ {
265
+ "include": "#complete_tag"
266
+ },
267
+ {
268
+ "begin": "^(?=.)",
269
+ "end": "$",
270
+ "name": "text.block.jade",
271
+ "patterns": [
272
+ {
273
+ "include": "#inline_jade"
274
+ },
275
+ {
276
+ "include": "#embedded_html"
277
+ },
278
+ {
279
+ "include": "#html_entity"
280
+ },
281
+ {
282
+ "include": "#interpolated_value"
283
+ },
284
+ {
285
+ "include": "#interpolated_error"
286
+ }
287
+ ]
288
+ }
289
+ ]
290
+ },
291
+ {
292
+ "begin": "^\\s*",
293
+ "comment": "All constructs that generally span a single line starting with any number of white-spaces.",
294
+ "end": "$",
295
+ "name": "tag.jade",
296
+ "patterns": [
297
+ {
298
+ "include": "#inline_jade"
299
+ },
300
+ {
301
+ "include": "#blocks_and_includes"
302
+ },
303
+ {
304
+ "include": "#unbuffered_code"
305
+ },
306
+ {
307
+ "include": "#mixins"
308
+ },
309
+ {
310
+ "include": "#flow_control"
311
+ },
312
+ {
313
+ "include": "#case_conds"
314
+ },
315
+ {
316
+ "begin": "\\|",
317
+ "comment": "Tag pipe text line.",
318
+ "end": "$",
319
+ "name": "text.block.pipe.jade",
320
+ "patterns": [
321
+ {
322
+ "include": "#inline_jade"
323
+ },
324
+ {
325
+ "include": "#embedded_html"
326
+ },
327
+ {
328
+ "include": "#html_entity"
329
+ },
330
+ {
331
+ "include": "#interpolated_value"
332
+ },
333
+ {
334
+ "include": "#interpolated_error"
335
+ }
336
+ ]
337
+ },
338
+ {
339
+ "include": "#printed_expression"
340
+ },
341
+ {
342
+ "begin": "\\G(?=(#[^\\{\\w-])|[^\\w.#])",
343
+ "comment": "Line starting with characters incompatible with tag name/id/class is standalone text.",
344
+ "end": "$",
345
+ "name": "text.jade",
346
+ "patterns": [
347
+ {
348
+ "begin": "</?(?=[!#])",
349
+ "end": ">|$",
350
+ "patterns": [
351
+ {
352
+ "include": "#inline_jade"
353
+ },
354
+ {
355
+ "include": "#interpolated_value"
356
+ },
357
+ {
358
+ "include": "#interpolated_error"
359
+ }
360
+ ]
361
+ },
362
+ {
363
+ "include": "#inline_jade"
364
+ },
365
+ {
366
+ "include": "#embedded_html"
367
+ },
368
+ {
369
+ "include": "#html_entity"
370
+ },
371
+ {
372
+ "include": "#interpolated_value"
373
+ },
374
+ {
375
+ "include": "#interpolated_error"
376
+ }
377
+ ]
378
+ },
379
+ {
380
+ "include": "#complete_tag"
381
+ }
382
+ ]
383
+ }
384
+ ],
385
+ "repository": {
386
+ "blocks_and_includes": {
387
+ "captures": {
388
+ "1": {
389
+ "name": "storage.type.import.include.jade"
390
+ },
391
+ "4": {
392
+ "name": "variable.control.import.include.jade"
393
+ }
394
+ },
395
+ "comment": "Template blocks and includes.",
396
+ "match": "(extends|include|yield|append|prepend|block( (append|prepend))?)\\s+(.*)$",
397
+ "name": "meta.first-class.jade"
398
+ },
399
+ "brackets_js": {
400
+ "begin": "\\[",
401
+ "end": "\\]",
402
+ "name": "js.value.attribute.tag.jade",
403
+ "patterns": [
404
+ {
405
+ "include": "#brackets_js"
406
+ },
407
+ {
408
+ "include": "source.js"
409
+ }
410
+ ]
411
+ },
412
+ "case_conds": {
413
+ "begin": "(default|when)((\\s+|(?=:))|$)",
414
+ "captures": {
415
+ "1": {
416
+ "name": "storage.type.function.jade"
417
+ }
418
+ },
419
+ "comment": "Jade case conditionals.",
420
+ "end": "$",
421
+ "name": "meta.control.flow.jade",
422
+ "patterns": [
423
+ {
424
+ "begin": "\\G(?!:)",
425
+ "end": "(?=:\\s+)|$",
426
+ "name": "js.embedded.control.flow.jade",
427
+ "patterns": [
428
+ {
429
+ "include": "#case_when_paren"
430
+ },
431
+ {
432
+ "include": "source.js"
433
+ }
434
+ ]
435
+ },
436
+ {
437
+ "begin": ":\\s+",
438
+ "end": "$",
439
+ "name": "tag.case.control.flow.jade",
440
+ "patterns": [
441
+ {
442
+ "include": "#complete_tag"
443
+ }
444
+ ]
445
+ }
446
+ ]
447
+ },
448
+ "case_when_paren": {
449
+ "begin": "\\(",
450
+ "end": "\\)",
451
+ "name": "js.when.control.flow.jade",
452
+ "patterns": [
453
+ {
454
+ "include": "#case_when_paren"
455
+ },
456
+ {
457
+ "match": ":",
458
+ "name": "invalid.illegal.name.tag.jade"
459
+ },
460
+ {
461
+ "include": "source.js"
462
+ }
463
+ ]
464
+ },
465
+ "complete_tag": {
466
+ "begin": "(?=[\\w.#])|(:\\s*)",
467
+ "end": "(\\.?$)|(?=:.)",
468
+ "name": "complete_tag.jade",
469
+ "patterns": [
470
+ {
471
+ "include": "#blocks_and_includes"
472
+ },
473
+ {
474
+ "include": "#unbuffered_code"
475
+ },
476
+ {
477
+ "include": "#mixins"
478
+ },
479
+ {
480
+ "include": "#flow_control"
481
+ },
482
+ {
483
+ "match": "(?<=:)\\w.*$",
484
+ "name": "invalid.illegal.name.tag.jade"
485
+ },
486
+ {
487
+ "include": "#tag_name"
488
+ },
489
+ {
490
+ "include": "#tag_id"
491
+ },
492
+ {
493
+ "include": "#tag_classes"
494
+ },
495
+ {
496
+ "include": "#tag_attributes"
497
+ },
498
+ {
499
+ "include": "#tag_mixin_attributes"
500
+ },
501
+ {
502
+ "captures": {
503
+ "2": {
504
+ "name": "invalid.illegal.end.tag.jade"
505
+ },
506
+ "4": {
507
+ "name": "invalid.illegal.end.tag.jade"
508
+ }
509
+ },
510
+ "match": "((\\.)\\s+$)|((:)\\s*$)"
511
+ },
512
+ {
513
+ "include": "#printed_expression"
514
+ },
515
+ {
516
+ "include": "#tag_text"
517
+ }
518
+ ]
519
+ },
520
+ "embedded_html": {
521
+ "begin": "(?=<[^>]*>)",
522
+ "end": "$|(?=>)",
523
+ "name": "html",
524
+ "patterns": [
525
+ {
526
+ "include": "text.html.basic"
527
+ },
528
+ {
529
+ "include": "#interpolated_value"
530
+ },
531
+ {
532
+ "include": "#interpolated_error"
533
+ }
534
+ ]
535
+ },
536
+ "filter_args": {
537
+ "begin": "\\G(\\()",
538
+ "captures": {
539
+ "1": {
540
+ "name": "meta.args.filter.jade"
541
+ },
542
+ "2": {
543
+ "name": "invalid.illegal.extra.args.filter.jade"
544
+ }
545
+ },
546
+ "end": "(\\))(.*?$)",
547
+ "name": "args.filter.jade",
548
+ "patterns": [
549
+ {
550
+ "begin": "([^\\s(),=]+)(=?)",
551
+ "beginCaptures": {
552
+ "1": {
553
+ "name": "entity.other.attribute-name.tag.jade"
554
+ },
555
+ "2": {
556
+ "name": "punctuation.separator.key-value.jade"
557
+ }
558
+ },
559
+ "contentName": "string.value.args.filter.jade",
560
+ "end": "((?=\\))|,|$)",
561
+ "name": "attributes.tag.jade",
562
+ "patterns": [
563
+ {
564
+ "include": "#filter_args_paren"
565
+ }
566
+ ]
567
+ }
568
+ ]
569
+ },
570
+ "filter_args_paren": {
571
+ "begin": "\\(",
572
+ "end": "\\)|$",
573
+ "patterns": [
574
+ {
575
+ "include": "#filter_args_paren"
576
+ }
577
+ ]
578
+ },
579
+ "flow_control": {
580
+ "begin": "(for|if|else if|else|each|until|while|unless|case)(\\s+|$)",
581
+ "captures": {
582
+ "1": {
583
+ "name": "storage.type.function.jade"
584
+ }
585
+ },
586
+ "comment": "Jade control flow.",
587
+ "end": "$",
588
+ "name": "meta.control.flow.jade",
589
+ "patterns": [
590
+ {
591
+ "begin": "",
592
+ "end": "$",
593
+ "name": "js.embedded.control.flow.jade",
594
+ "patterns": [
595
+ {
596
+ "include": "source.js"
597
+ }
598
+ ]
599
+ }
600
+ ]
601
+ },
602
+ "html_entity": {
603
+ "patterns": [
604
+ {
605
+ "match": "(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",
606
+ "name": "constant.character.entity.html.text.jade"
607
+ },
608
+ {
609
+ "match": "[<>&]",
610
+ "name": "invalid.illegal.html_entity.text.jade"
611
+ }
612
+ ]
613
+ },
614
+ "inline_jade": {
615
+ "begin": "(?<!\\\\)(#\\[)",
616
+ "captures": {
617
+ "1": {
618
+ "name": "entity.name.function.jade"
619
+ },
620
+ "2": {
621
+ "name": "entity.name.function.jade"
622
+ }
623
+ },
624
+ "end": "(\\])",
625
+ "name": "inline.jade",
626
+ "patterns": [
627
+ {
628
+ "include": "#inline_jade"
629
+ },
630
+ {
631
+ "include": "#mixins"
632
+ },
633
+ {
634
+ "begin": "(?<!\\])(?=[\\w.#])|(:\\s*)",
635
+ "end": "(?=\\]|(:.)|=|\\s)",
636
+ "name": "tag.inline.jade",
637
+ "patterns": [
638
+ {
639
+ "include": "#tag_name"
640
+ },
641
+ {
642
+ "include": "#tag_id"
643
+ },
644
+ {
645
+ "include": "#tag_classes"
646
+ },
647
+ {
648
+ "include": "#tag_attributes"
649
+ },
650
+ {
651
+ "include": "#tag_mixin_attributes"
652
+ },
653
+ {
654
+ "include": "#inline_jade"
655
+ },
656
+ {
657
+ "match": "\\[",
658
+ "name": "invalid.illegal.tag.jade"
659
+ }
660
+ ]
661
+ },
662
+ {
663
+ "include": "#unbuffered_code"
664
+ },
665
+ {
666
+ "include": "#printed_expression"
667
+ },
668
+ {
669
+ "match": "\\[",
670
+ "name": "invalid.illegal.tag.jade"
671
+ },
672
+ {
673
+ "include": "#inline_jade_text"
674
+ }
675
+ ]
676
+ },
677
+ "inline_jade_text": {
678
+ "begin": "",
679
+ "end": "(?=\\])",
680
+ "name": "text.jade",
681
+ "patterns": [
682
+ {
683
+ "begin": "\\[",
684
+ "end": "\\]",
685
+ "patterns": [
686
+ {
687
+ "include": "#inline_jade_text"
688
+ }
689
+ ]
690
+ },
691
+ {
692
+ "include": "#inline_jade"
693
+ },
694
+ {
695
+ "include": "#embedded_html"
696
+ },
697
+ {
698
+ "include": "#html_entity"
699
+ },
700
+ {
701
+ "include": "#interpolated_value"
702
+ },
703
+ {
704
+ "include": "#interpolated_error"
705
+ }
706
+ ]
707
+ },
708
+ "interpolated_error": {
709
+ "match": "(?<!\\\\)[#!]\\{(?=[^}]*$)",
710
+ "name": "invalid.illegal.tag.jade"
711
+ },
712
+ "interpolated_value": {
713
+ "begin": "(?<!\\\\)[#!]\\{(?=.*?\\})",
714
+ "end": "\\}",
715
+ "name": "string.interpolated.jade",
716
+ "patterns": [
717
+ {
718
+ "match": "{",
719
+ "name": "invalid.illegal.tag.jade"
720
+ },
721
+ {
722
+ "include": "source.js"
723
+ }
724
+ ]
725
+ },
726
+ "mixins": {
727
+ "begin": "(((mixin\\s+)|\\+)([\\w-]+))\\s*",
728
+ "beginCaptures": {
729
+ "2": {
730
+ "name": "storage.type.function.jade"
731
+ },
732
+ "4": {
733
+ "name": "entity.name.function.jade"
734
+ }
735
+ },
736
+ "comment": "Mixin declaration and use, including the new '+' syntax.",
737
+ "end": "(?=\\])|$",
738
+ "name": "meta.mixin.jade",
739
+ "patterns": [
740
+ {
741
+ "begin": "",
742
+ "end": "(?=\\])|$",
743
+ "name": "args.mixin.jade",
744
+ "patterns": [
745
+ {
746
+ "include": "#tag_attribute_value_paren"
747
+ },
748
+ {
749
+ "include": "#tag_attribute_value_brackets"
750
+ },
751
+ {
752
+ "include": "#tag_attribute_value_braces"
753
+ },
754
+ {
755
+ "include": "source.js"
756
+ }
757
+ ]
758
+ }
759
+ ]
760
+ },
761
+ "printed_expression": {
762
+ "begin": "(!?\\=)\\s*",
763
+ "captures": {
764
+ "1": {
765
+ "name": "constant"
766
+ }
767
+ },
768
+ "end": "(?=\\])|$",
769
+ "patterns": [
770
+ {
771
+ "include": "#brackets_js"
772
+ },
773
+ {
774
+ "include": "source.js"
775
+ }
776
+ ]
777
+ },
778
+ "string": {
779
+ "begin": "(['\"])",
780
+ "end": "(?<!\\\\)\\1",
781
+ "name": "string.quoted.jade",
782
+ "patterns": [
783
+ {
784
+ "match": "\\\\((x[0-9a-fA-F]{2})|(u[0-9]{4})|.)",
785
+ "name": "constant.character.quoted.jade"
786
+ },
787
+ {
788
+ "include": "#interpolated_value"
789
+ },
790
+ {
791
+ "include": "#interpolated_error"
792
+ }
793
+ ]
794
+ },
795
+ "tag_attribute_value_braces": {
796
+ "begin": "\\{",
797
+ "end": "\\}",
798
+ "name": "js.value.attribute.tag.jade",
799
+ "patterns": [
800
+ {
801
+ "include": "#tag_attribute_value_paren"
802
+ },
803
+ {
804
+ "include": "#tag_attribute_value_brackets"
805
+ },
806
+ {
807
+ "include": "#tag_attribute_value_braces"
808
+ },
809
+ {
810
+ "include": "#string"
811
+ },
812
+ {
813
+ "include": "source.js"
814
+ }
815
+ ]
816
+ },
817
+ "tag_attribute_value_brackets": {
818
+ "begin": "\\[",
819
+ "end": "\\]",
820
+ "name": "js.value.attribute.tag.jade",
821
+ "patterns": [
822
+ {
823
+ "include": "#tag_attribute_value_paren"
824
+ },
825
+ {
826
+ "include": "#tag_attribute_value_brackets"
827
+ },
828
+ {
829
+ "include": "#tag_attribute_value_braces"
830
+ },
831
+ {
832
+ "include": "#string"
833
+ },
834
+ {
835
+ "include": "source.js"
836
+ }
837
+ ]
838
+ },
839
+ "tag_attribute_value_paren": {
840
+ "begin": "\\(",
841
+ "end": "\\)",
842
+ "name": "js.value.attribute.tag.jade",
843
+ "patterns": [
844
+ {
845
+ "include": "#tag_attribute_value_paren"
846
+ },
847
+ {
848
+ "include": "#tag_attribute_value_brackets"
849
+ },
850
+ {
851
+ "include": "#tag_attribute_value_braces"
852
+ },
853
+ {
854
+ "include": "#string"
855
+ },
856
+ {
857
+ "include": "source.js"
858
+ }
859
+ ]
860
+ },
861
+ "tag_attributes": {
862
+ "begin": "(\\()",
863
+ "captures": {
864
+ "1": {
865
+ "name": "constant.name.attribute.tag.jade"
866
+ }
867
+ },
868
+ "end": "(\\))",
869
+ "name": "attributes.tag.jade",
870
+ "patterns": [
871
+ {
872
+ "captures": {
873
+ "1": {
874
+ "name": "entity.other.attribute-name.tag.jade"
875
+ }
876
+ },
877
+ "match": "([^\\s(),=/]+)\\s*((?=\\))|,|\\s+|$)(?!\\!?\\=)",
878
+ "name": "attributes.tag.jade"
879
+ },
880
+ {
881
+ "begin": "([^\\s(),=/]*[^\\s(),=!/])\\s*(!?\\=)",
882
+ "beginCaptures": {
883
+ "1": {
884
+ "name": "entity.other.attribute-name.tag.jade"
885
+ },
886
+ "2": {
887
+ "name": "punctuation.separator.key-value.jade"
888
+ }
889
+ },
890
+ "end": "(,|$|(?=\\)|((?<![+/*|&=:^~!?<>%-])\\s+[^+/*|&=:^~!?<>%-])))",
891
+ "name": "attributes.tag.jade",
892
+ "patterns": [
893
+ {
894
+ "include": "#tag_attribute_value_paren"
895
+ },
896
+ {
897
+ "include": "#tag_attribute_value_brackets"
898
+ },
899
+ {
900
+ "include": "#tag_attribute_value_braces"
901
+ },
902
+ {
903
+ "include": "#string"
904
+ },
905
+ {
906
+ "include": "source.js"
907
+ }
908
+ ]
909
+ }
910
+ ]
911
+ },
912
+ "tag_classes": {
913
+ "captures": {
914
+ "1": {
915
+ "name": "invalid.illegal.tag.jade"
916
+ }
917
+ },
918
+ "match": "\\.([^\\w-])?[\\w-]*",
919
+ "name": "constant.language.js"
920
+ },
921
+ "tag_id": {
922
+ "match": "#[\\w-]+",
923
+ "name": "constant.id.tag.jade"
924
+ },
925
+ "tag_mixin_attributes": {
926
+ "begin": "(&attributes\\()",
927
+ "captures": {
928
+ "1": {
929
+ "name": "entity.name.function.jade"
930
+ }
931
+ },
932
+ "end": "(\\))",
933
+ "name": "attributes.tag.jade",
934
+ "patterns": [
935
+ {
936
+ "match": "attributes(?=\\))",
937
+ "name": "storage.type.keyword.jade"
938
+ },
939
+ {
940
+ "include": "source.js"
941
+ }
942
+ ]
943
+ },
944
+ "tag_name": {
945
+ "begin": "([#!]\\{(?=.*?\\}))|(\\w(([\\w:-]+[\\w-])|([\\w-]*)))",
946
+ "end": "(\\G(?<!\\5[^\\w-]))|\\}|$",
947
+ "name": "entity.name.tag.jade",
948
+ "patterns": [
949
+ {
950
+ "begin": "\\G(?<=\\{)",
951
+ "end": "(?=\\})",
952
+ "name": "entity.name.tag.jade",
953
+ "patterns": [
954
+ {
955
+ "match": "{",
956
+ "name": "invalid.illegal.tag.jade"
957
+ },
958
+ {
959
+ "include": "source.js"
960
+ }
961
+ ]
962
+ }
963
+ ]
964
+ },
965
+ "tag_text": {
966
+ "begin": "(?=.)",
967
+ "end": "$",
968
+ "name": "text.jade",
969
+ "patterns": [
970
+ {
971
+ "include": "#inline_jade"
972
+ },
973
+ {
974
+ "include": "#embedded_html"
975
+ },
976
+ {
977
+ "include": "#html_entity"
978
+ },
979
+ {
980
+ "include": "#interpolated_value"
981
+ },
982
+ {
983
+ "include": "#interpolated_error"
984
+ }
985
+ ]
986
+ },
987
+ "unbuffered_code": {
988
+ "begin": "(-|(([a-zA-Z0-9_]+)\\s+=))",
989
+ "beginCaptures": {
990
+ "3": {
991
+ "name": "variable.parameter.javascript.embedded.jade"
992
+ }
993
+ },
994
+ "comment": "name = function() {}",
995
+ "end": "(?=\\])|$",
996
+ "name": "javascript.embedded.jade",
997
+ "patterns": [
998
+ {
999
+ "include": "#brackets_js"
1000
+ },
1001
+ {
1002
+ "include": "source.js"
1003
+ }
1004
+ ]
1005
+ }
1006
+ },
1007
+ "scopeName": "source.jade",
1008
+ "uuid": "eee6ba25-6ac2-4f7e-9c70-cddf2bd3448b"
1009
+ }