github-linguist 9.6.0 → 9.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (226) hide show
  1. checksums.yaml +4 -4
  2. data/grammars/documentation.markdown.injection.haxe.json +1 -1
  3. data/grammars/gno.mod.json +1 -0
  4. data/grammars/inline.hbs.json +1 -1
  5. data/grammars/inline.template.json +1 -1
  6. data/grammars/markdown.glimmer.codeblock.json +1 -1
  7. data/grammars/markdown.goose.codeblock.json +1 -0
  8. data/grammars/markdown.nextflow.codeblock.json +1 -0
  9. data/grammars/markdown.ocaml.codeblock.json +1 -0
  10. data/grammars/markdown.reason.codeblock.json +1 -0
  11. data/grammars/markdown.roc.codeblock.json +1 -0
  12. data/grammars/nextflow.interpolation.injection.json +1 -0
  13. data/grammars/nextflow.script.injection.json +1 -0
  14. data/grammars/source.abl.json +1 -1
  15. data/grammars/source.abnf.json +1 -1
  16. data/grammars/source.action.menhir.json +1 -0
  17. data/grammars/source.aleo.json +1 -0
  18. data/grammars/source.ampl.dat.json +1 -0
  19. data/grammars/source.ampl.json +1 -1
  20. data/grammars/source.apl.json +1 -1
  21. data/grammars/source.armasm.json +1 -0
  22. data/grammars/source.astro.json +1 -1
  23. data/grammars/source.astylerc.json +1 -0
  24. data/grammars/source.atd.json +1 -0
  25. data/grammars/source.avisynth.json +1 -0
  26. data/grammars/source.baml.json +1 -1
  27. data/grammars/source.bbcbasic.json +1 -0
  28. data/grammars/source.bend.json +1 -0
  29. data/grammars/source.bird2.json +1 -0
  30. data/grammars/source.blueprint.json +1 -0
  31. data/grammars/source.bnd.json +1 -1
  32. data/grammars/source.bsl.json +1 -1
  33. data/grammars/source.c++.json +1 -1
  34. data/grammars/source.c.json +1 -1
  35. data/grammars/source.c3.json +1 -1
  36. data/grammars/source.carbon.json +1 -0
  37. data/grammars/source.cedar.json +1 -0
  38. data/grammars/source.cj.json +1 -1
  39. data/grammars/source.cl.json +1 -1
  40. data/grammars/source.clar.json +1 -1
  41. data/grammars/source.cmake.json +1 -1
  42. data/grammars/source.cmd.json +1 -1
  43. data/grammars/source.cmhg.json +1 -0
  44. data/grammars/source.comment-string.wesl.json +1 -1
  45. data/grammars/source.comment-string.wgsl.json +1 -1
  46. data/grammars/source.compact.json +1 -0
  47. data/grammars/source.cram.json +1 -0
  48. data/grammars/source.cs.json +1 -1
  49. data/grammars/source.csswg.json +1 -1
  50. data/grammars/source.cue.json +1 -1
  51. data/grammars/source.curlrc.json +1 -1
  52. data/grammars/source.dart.json +1 -1
  53. data/grammars/source.dataflex.json +1 -0
  54. data/grammars/source.dax.json +1 -0
  55. data/grammars/source.dds.dspf.json +1 -1
  56. data/grammars/source.dds.icff.json +1 -1
  57. data/grammars/source.dds.lf.json +1 -1
  58. data/grammars/source.dds.pf.json +1 -1
  59. data/grammars/source.dds.prtf.json +1 -1
  60. data/grammars/source.deq.json +1 -0
  61. data/grammars/source.ditroff.desc.json +1 -1
  62. data/grammars/source.dm.json +1 -1
  63. data/grammars/source.dml.json +1 -0
  64. data/grammars/source.dune-project.json +1 -0
  65. data/grammars/source.dune-workspace.json +1 -0
  66. data/grammars/source.dune.json +1 -1
  67. data/grammars/source.easycrypt.json +1 -0
  68. data/grammars/source.emacs.lisp.json +1 -1
  69. data/grammars/source.env-spec.json +1 -0
  70. data/grammars/source.erlang.json +1 -1
  71. data/grammars/source.ets.json +1 -0
  72. data/grammars/source.fift.json +1 -0
  73. data/grammars/source.flix.json +1 -1
  74. data/grammars/source.fpp.json +1 -0
  75. data/grammars/source.func.json +1 -0
  76. data/grammars/source.gdscript.json +1 -1
  77. data/grammars/source.gedcom.json +1 -1
  78. data/grammars/source.gitconfig.json +1 -1
  79. data/grammars/source.gjs.json +1 -1
  80. data/grammars/source.gno.json +1 -0
  81. data/grammars/source.goose.json +1 -0
  82. data/grammars/source.graphql.json +1 -1
  83. data/grammars/source.gts.json +1 -1
  84. data/grammars/source.hack.json +1 -1
  85. data/grammars/source.hx.json +1 -1
  86. data/grammars/source.hxml.json +1 -1
  87. data/grammars/source.ice.json +1 -1
  88. data/grammars/source.ifc.json +1 -0
  89. data/grammars/source.indent-profile.json +1 -0
  90. data/grammars/source.ink.json +1 -1
  91. data/grammars/source.jac.json +1 -1
  92. data/grammars/source.jass.json +1 -0
  93. data/grammars/source.julia.console.json +1 -1
  94. data/grammars/source.julia.json +1 -1
  95. data/grammars/source.kcl.json +1 -1
  96. data/grammars/source.kerml.json +1 -0
  97. data/grammars/source.koka.json +1 -1
  98. data/grammars/source.leo.json +1 -1
  99. data/grammars/source.liquidsoap.json +1 -1
  100. data/grammars/source.lobster.json +1 -0
  101. data/grammars/source.logos.json +1 -1
  102. data/grammars/source.lsf.json +1 -0
  103. data/grammars/source.luau.json +1 -1
  104. data/grammars/source.lumscript.json +1 -0
  105. data/grammars/source.m2.json +1 -1
  106. data/grammars/source.maple.json +1 -0
  107. data/grammars/source.metafont.json +1 -0
  108. data/grammars/source.metapost.json +1 -0
  109. data/grammars/source.mi.json +1 -1
  110. data/grammars/source.mo.json +1 -1
  111. data/grammars/source.mojo.json +1 -1
  112. data/grammars/source.moonbit.config.json +1 -1
  113. data/grammars/source.moonbit.json +1 -1
  114. data/grammars/source.ms.json +1 -0
  115. data/grammars/source.nextflow-config.json +1 -0
  116. data/grammars/source.nextflow-groovy.json +1 -1
  117. data/grammars/source.nextflow-log.json +1 -0
  118. data/grammars/source.nextflow.json +1 -1
  119. data/grammars/source.nim.json +1 -1
  120. data/grammars/source.nushell.json +1 -1
  121. data/grammars/source.ocaml.META.json +1 -0
  122. data/grammars/source.ocaml.interface.json +1 -0
  123. data/grammars/source.ocaml.json +1 -1
  124. data/grammars/source.ocaml.menhir.json +1 -0
  125. data/grammars/source.ocaml.merlin.json +1 -0
  126. data/grammars/source.ocaml.mlx.json +1 -0
  127. data/grammars/source.ocaml.oasis.json +1 -0
  128. data/grammars/source.ocaml.ocamlbuild.json +1 -0
  129. data/grammars/source.ocaml.ocamldoc.json +1 -0
  130. data/grammars/source.ocaml.ocamlformat.json +1 -0
  131. data/grammars/source.ocaml.ocamllex.json +1 -0
  132. data/grammars/source.ocaml.opam-install.json +1 -0
  133. data/grammars/source.ocaml.opam.json +1 -0
  134. data/grammars/source.openqasm.json +1 -1
  135. data/grammars/source.opy.json +1 -1
  136. data/grammars/source.paperspecs.json +1 -0
  137. data/grammars/source.pkl.json +1 -1
  138. data/grammars/source.pl.json +1 -0
  139. data/grammars/source.pnlgrp.json +1 -1
  140. data/grammars/source.prisma.json +1 -1
  141. data/grammars/source.qsharp.json +1 -1
  142. data/grammars/source.quint.json +1 -1
  143. data/grammars/source.rarlist.json +1 -0
  144. data/grammars/source.rascal.json +1 -1
  145. data/grammars/source.rascript.json +1 -1
  146. data/grammars/source.reason.json +1 -1
  147. data/grammars/source.rego.json +1 -1
  148. data/grammars/source.rhai.json +1 -0
  149. data/grammars/source.roc.json +1 -1
  150. data/grammars/source.ron.json +1 -1
  151. data/grammars/source.rpg.json +1 -1
  152. data/grammars/source.rpgle.json +1 -1
  153. data/grammars/source.rpm-spec.json +1 -1
  154. data/grammars/source.rust.json +1 -1
  155. data/grammars/source.scala.json +1 -1
  156. data/grammars/source.skip.json +1 -0
  157. data/grammars/source.skript.json +1 -0
  158. data/grammars/source.slice.json +1 -1
  159. data/grammars/source.smithy.json +1 -1
  160. data/grammars/source.spicedb.json +1 -1
  161. data/grammars/source.stim.json +1 -0
  162. data/grammars/source.surrealql.json +1 -1
  163. data/grammars/source.swift.json +1 -1
  164. data/grammars/source.sysml.json +1 -0
  165. data/grammars/source.tablegen.json +1 -0
  166. data/grammars/source.tasm.json +1 -0
  167. data/grammars/source.tlb.json +1 -0
  168. data/grammars/source.tolk.json +1 -0
  169. data/grammars/source.tsp.json +1 -1
  170. data/grammars/source.tsq.json +1 -0
  171. data/grammars/source.tsrx.json +1 -0
  172. data/grammars/source.ucode-template.json +1 -0
  173. data/grammars/source.ucode.json +1 -0
  174. data/grammars/source.uiua.json +1 -0
  175. data/grammars/source.vento.json +1 -1
  176. data/grammars/source.verse.json +1 -0
  177. data/grammars/source.veryl.json +1 -0
  178. data/grammars/source.vespaSchema.json +1 -0
  179. data/grammars/source.vespaYQL.json +1 -0
  180. data/grammars/source.vhs.json +1 -0
  181. data/grammars/source.vim9.json +1 -0
  182. data/grammars/source.wdl.json +1 -1
  183. data/grammars/source.webassembly.json +1 -1
  184. data/grammars/source.wesl.json +1 -1
  185. data/grammars/source.wgsl.json +1 -1
  186. data/grammars/source.yaml.salt.json +1 -1
  187. data/grammars/text.bbcode.json +1 -0
  188. data/grammars/text.html.cobmd.json +1 -0
  189. data/grammars/text.html.ember-handlebars.json +1 -1
  190. data/grammars/text.html.handlebars.json +1 -1
  191. data/grammars/text.html.jte.json +1 -1
  192. data/grammars/text.html.markdown.json +1 -0
  193. data/grammars/text.html.pfm.json +1 -0
  194. data/grammars/text.html.ss.json +1 -0
  195. data/grammars/text.html.statamic.json +1 -1
  196. data/grammars/text.marko.json +1 -1
  197. data/grammars/text.recfile.json +1 -0
  198. data/grammars/text.roff.json +1 -1
  199. data/grammars/text.valve-cfg.json +1 -1
  200. data/grammars/text.vtt.json +1 -1
  201. data/grammars/version +1 -1
  202. data/lib/linguist/VERSION +1 -1
  203. data/lib/linguist/blob_helper.rb +21 -2
  204. data/lib/linguist/documentation.yml +3 -0
  205. data/lib/linguist/generated.rb +99 -8
  206. data/lib/linguist/generic.yml +3 -0
  207. data/lib/linguist/heuristics.yml +239 -62
  208. data/lib/linguist/language.rb +5 -9
  209. data/lib/linguist/languages.yml +610 -30
  210. data/lib/linguist/languages_data.rb +7965 -0
  211. data/lib/linguist/lazy_blob.rb +6 -1
  212. data/lib/linguist/samples.rb +4 -10
  213. data/lib/linguist/samples_data.rb +203998 -0
  214. data/lib/linguist/strategy/modeline.rb +0 -1
  215. data/lib/linguist/vendor.yml +3 -0
  216. metadata +95 -25
  217. data/grammars/markdown.bicep.codeblock.json +0 -1
  218. data/grammars/source.baml-jinja.json +0 -1
  219. data/grammars/source.camlp4.ocaml.json +0 -1
  220. data/grammars/source.ocamllex.json +0 -1
  221. data/grammars/source.ocamlyacc.json +0 -1
  222. data/grammars/source.reason.hover.type.json +0 -1
  223. data/grammars/source.scm.json +0 -1
  224. data/grammars/text.plain.json +0 -1
  225. data/lib/linguist/languages.json +0 -1
  226. data/lib/linguist/samples.json +0 -1
@@ -1 +1 @@
1
- {"name":"DDS.PRTF","scopeName":"source.dds.prtf","patterns":[{"include":"#comments"},{"include":"#constants"},{"include":"#keywords"},{"include":"#gutter"},{"include":"#strings"}],"repository":{"comments":{"patterns":[{"name":"comment.line.dds.prtf","match":"^.{5}(.)(\\*).*"}]},"constants":{"patterns":[{"name":"constant.language.dds.prtf","match":"(\\*)[a-zA-Z][a-zA-Z0-9]*"},{"name":"constant.language.dds.prtf.andor","match":"(?i)(?\u003c=^.{5}(A|\\s).{0})(A|O)"},{"name":"constant.language.dds.prtf.n01","match":"(?i)(?\u003c=^.{5}(A|\\s).{1})(N|\\s)[0-9]{2}"},{"name":"constant.language.dds.prtf.n02","match":"(?i)(?\u003c=^.{5}(A|\\s).{4})(N|\\s)[0-9]{2}"},{"name":"constant.language.dds.prtf.n03","match":"(?i)(?\u003c=^.{5}(A|\\s).{7})(N|\\s)[0-9]{2}"},{"name":"constant.language.dds.prtf.nameType","match":"(?i)(?\u003c=^.{5}(A|\\s).{10})R"},{"name":"constant.language.dds.prtf.ref","match":"(?i)(?\u003c=^.{5}(A|\\s).{22})R"},{"name":"constant.language.dds.prtf.len","match":"(?i)(?\u003c=^.{5}(A|\\s).{23})[0-9|\\s]{5}"},{"name":"constant.language.dds.prtf.dataType","match":"(?i)(?\u003c=^.{5}(A|\\s).{28})(A|F|G|L|O|S|T|Z)"},{"name":"constant.language.dds.prtf.decpos","match":"(?i)(?\u003c=^.{5}(A|\\s).{29})[0-9|\\s]{2}"},{"name":"constant.language.dds.prtf.usage","match":"(?i)(?\u003c=^.{5}(A|\\s).{31})O"},{"name":"constant.language.dds.prtf.locline","match":"(?i)(?\u003c=^.{5}(A|\\s).{32})([0-9]|\\s|\\+){3}"},{"name":"constant.language.dds.prtf.locpos","match":"(?i)(?\u003c=^.{5}(A|\\s).{35})([0-9]|\\s|\\+){3}"},{"name":"constant.numeric.dds.prtf","match":"\\b([0-9]+)\\b"}]},"gutter":{"patterns":[{"name":"comment.gutter","match":"^.{5}"}]},"keywords":{"patterns":[{"name":"keyword.other.dds.prtf.spec","match":"(?i)(?\u003c=^.{5})[A]"},{"name":"keyword.other.dds.prtf","match":"\\+"},{"name":"keyword.other.dds.prtf.func","match":"((?i)(C(A|F)))[0-9]{2}"},{"name":"keyword.other.dds.prtf.funcs","match":"(?i)(?\u003c=(.{44}))(ZFOLD|UNISCRIPT|UNDERLINE|TXTRTT|TRNSPY|TIMSEP|TIMFMT|TIME|TEXT|STRPAGGRP|STAPLE|SPACEB|SPACEA|SKIPB|SKIPA|RELPOS|REFFLD|REF|PRTQLTY|POSITION|PAGSEG|PAGRTT|PAGNBR|OVERLAY|OUTBIN|MSGCON|LPI|LINE|INVMMAP|INVDTAMAP|INDTXT|INDARA|HIGHLIGHT|GDF|FORCE|FONTNAME|FONT|FNTCHRSET|FLTPCN|FLTFIXDEC|ENDPAGGRP|ENDPAGE|EDTWRD|EDTCDE|DUPLEX|DTASTMCMD|DRAWER|DOCIDXTAG|DLTEDT|DFT|DFNCHR|DATSEP|DATFMT|DATE|CVTDTA|CPI|COLOR|CHRSIZ|CHRID|CDEFNT|BOX|BLKFOLD|BARCODE|ALIAS|AFPRSC)\\b"}]},"strings":{"name":"string.quoted.single.dds.prtf","begin":"'","end":"'","patterns":[{"name":"keyword.other.dds.prtf.spec","match":"(?i)(?\u003c=^.{5})[A]"}]}}}
1
+ {"name":"DDS.PRTF","scopeName":"source.dds.prtf","patterns":[{"name":"variable.other.dds.prtf.field"},{"include":"#comments"},{"include":"#gutter"},{"include":"#constants"},{"include":"#keywords"},{"include":"#strings"}],"repository":{"comments":{"patterns":[{"name":"comment.line.dds.prtf","match":"^.{5}(.)(\\*).*"}]},"constants":{"patterns":[{"name":"constant.language.dds.prtf","match":"(?\u003c=(.{44}))(\\*)[a-zA-Z][a-zA-Z0-9]*"},{"name":"constant.language.dds.prtf.andor","match":"(?i)(?\u003c=^.{5}(A|\\s).{0})(A|O)"},{"name":"constant.language.dds.prtf.n01","match":"(?i)(?\u003c=^.{5}(A|\\s).{1})(N|\\s)[0-9]{2}"},{"name":"constant.language.dds.prtf.n02","match":"(?i)(?\u003c=^.{5}(A|\\s).{4})(N|\\s)[0-9]{2}"},{"name":"constant.language.dds.prtf.n03","match":"(?i)(?\u003c=^.{5}(A|\\s).{7})(N|\\s)[0-9]{2}"},{"name":"constant.language.dds.prtf.nameType","match":"(?i)(?\u003c=^.{5}(A|\\s).{10})R"},{"name":"constant.language.dds.prtf.ref","match":"(?i)(?\u003c=^.{5}(A|\\s).{22})R"},{"name":"constant.language.dds.prtf.len","match":"(?i)(?\u003c=^.{5}(A|\\s).{23})[0-9|\\s]{5}"},{"name":"constant.language.dds.prtf.dataType","match":"(?i)(?\u003c=^.{5}(A|\\s).{28})(A|F|G|L|O|S|T|Z)"},{"name":"constant.language.dds.prtf.decpos","match":"(?i)(?\u003c=^.{5}(A|\\s).{29})[0-9|\\s]{2}"},{"name":"constant.language.dds.prtf.usage","match":"(?i)(?\u003c=^.{5}(A|\\s).{31})O"},{"name":"constant.language.dds.prtf.locline","match":"(?i)(?\u003c=^.{5}(A|\\s).{32})([0-9]|\\s){3}"},{"name":"constant.language.dds.prtf.locpos","match":"(?i)(?\u003c=^.{5}(A|\\s).{35})([0-9]|\\s|\\+){3}"},{"name":"constant.language.dds.prtf.edtcde","match":"(?i)(?\u003c=EDTCDE\\()[1-9A-DJ-QW-Z](?=[\\s)])"},{"name":"constant.language.dds.prtf.color","match":"(?i)(?\u003c=COLOR\\()(BLK|BLU|BRN|GRN|PNK|RED|TRQ|YLW)(?=[\\s)])"},{"name":"constant.language.dds.prtf.barcode","match":"(?i)(?\u003c=BARCODE\\()(MSI|UPCA|UPCE|UPC2|UPC5|EAN8|EAN13|EAN2|EAN5|CODEABAR|CODE128|CODE3OF9|CODE93|INTERL2OF5|INDUST2OF5|MATRIX2OF5|POSTNET|RM4SCC|AP4SCC|DUTCHKIX|JPBC|PDF417|MAXICODE|DATAMATRIX|QRCODE)(?=[\\s)])"},{"name":"constant.numeric.dds.prtf","match":"(?\u003c=(.{44}))\\b([0-9]+)\\b"}]},"gutter":{"patterns":[{"name":"comment.gutter","match":"^.{1,5}"},{"name":"comment.block.line.dds","begin":"(?\u003c=^.{80})","end":"\n"}]},"keywords":{"patterns":[{"name":"keyword.other.dds.prtf.spec","match":"(?i)(?\u003c=^.{5})[A]"},{"name":"keyword.other.dds.prtf","match":"[+-](?=\\s*$)"},{"name":"keyword.other.dds.prtf.funcs","match":"(?i)(?\u003c=(.{44}))(?\u003c=^.{44}|[^A-Za-z0-9])(ZFOLD|UNISCRIPT|UNDERLINE|TXTRTT|TRNSPY|TIMSEP|TIMFMT|TIME|TEXT|STRPAGGRP|STAPLE|SPACEB|SPACEA|SKIPB|SKIPA|RELPOS|REFFLD|REF|PRTQLTY|POSITION|PAGSEG|PAGRTT|PAGNBR|OVERLAY|OUTBIN|MSGCON|LPI|LINE|INVMMAP|INVDTAMAP|INDTXT|INDARA|HIGHLIGHT|GDF|FORCE|FONTNAME|FONT|FNTCHRSET|FLTPCN|FLTFIXDEC|ENDPAGGRP|ENDPAGE|EDTWRD|EDTCDE|DUPLEX|DTASTMCMD|DRAWER|DOCIDXTAG|DLTEDT|DFT|DFNCHR|DATSEP|DATFMT|DATE|CVTDTA|CPI|COLOR|CHRSIZ|CHRID|CDEFNT|BOX|BLKFOLD|BARCODE|ALIAS|AFPRSC)\\b\\b"}]},"strings":{"patterns":[{"name":"string.other.dds.prtf.hex","begin":"(?i)x'","end":"'|[^-+\\s]\\s*$","patterns":[{"name":"keyword.other.dds.prtf","match":"[+-](?=\\s*$)"},{"name":"comment.line.dds.prtf","match":"^.{5}(.)(\\*).*"},{"name":"comment.gutter","match":"^.{1,5}"},{"name":"keyword.other.dds.prtf.spec","match":"(?i)(?\u003c=^.{5})[A]"}]},{"name":"string.quoted.single.dds.prtf","begin":"'","end":"'|[^-+\\s]\\s*$","patterns":[{"name":"keyword.other.dds.prtf","match":"[+-](?=\\s*$)"},{"name":"comment.line.dds.prtf","match":"^.{5}(.)(\\*).*"},{"name":"comment.gutter","match":"^.{1,5}"},{"name":"keyword.other.dds.prtf.spec","match":"(?i)(?\u003c=^.{5})[A]"}]}]}}}
@@ -0,0 +1 @@
1
+ {"name":"DEQ","scopeName":"source.deq","patterns":[{"include":"#comment"},{"include":"#mako-def-block"},{"include":"#mako-block"},{"include":"#mako-line"},{"include":"#mako-expression"},{"include":"#import-statement"},{"include":"#decorator"},{"include":"#code-definition"},{"include":"#gadget-definition"},{"include":"#compose-definition"},{"include":"#program-definition"}],"repository":{"assert-statement":{"begin":"\\b(ASSERT_EQ)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"variable.other.deq","match":"M\\d+"},{"name":"variable.other.deq","match":"rec\\[-\\d+\\]"},{"name":"constant.numeric.deq","match":"\\d+"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"}}},"check-statement":{"begin":"\\b(CHECK|DETECTOR)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"keyword.directive.deq","match":"\\b(FLIP)\\b"},{"include":"#targets"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"}}},"code-definition":{"begin":"\\b(CODE)\\s+([a-zA-Z][a-zA-Z0-9_]*)\\s*(\\[\\[)","end":"^\\s*(\\})","patterns":[{"include":"#comment"},{"include":"#code-params"},{"include":"#mako-expression"},{"include":"#logical-declaration"},{"include":"#stabilizer-declaration"},{"include":"#pauli-product"}],"beginCaptures":{"1":{"name":"keyword.control.deq"},"2":{"name":"entity.name.type.deq"},"3":{"name":"punctuation.bracket.deq"}},"endCaptures":{"1":{"name":"punctuation.bracket.deq"}}},"code-params":{"match":"(\\d+|\\$\\{[^}]*\\})\\s*,\\s*(\\d+|\\$\\{[^}]*\\})(?:\\s*,\\s*(\\d+|\\$\\{[^}]*\\}))?\\s*(\\]\\])\\s*(\\{)","captures":{"1":{"name":"constant.numeric.deq"},"2":{"name":"constant.numeric.deq"},"3":{"name":"constant.numeric.deq"},"4":{"name":"punctuation.bracket.deq"},"5":{"name":"punctuation.bracket.deq"}}},"comment":{"name":"comment.line.number-sign.deq","match":"#.*$"},"compose-body":{"patterns":[{"include":"#comment"},{"include":"#mako-line"},{"include":"#mako-expression"},{"include":"#decorator"},{"include":"#repeat-block-compose"},{"include":"#port-statement"},{"include":"#conditional-correction"},{"include":"#gadget-application"},{"include":"#stim-instruction"}]},"compose-definition":{"begin":"\\b(COMPOSE)\\s+((?:[a-zA-Z][a-zA-Z0-9_]*|\\$\\{[^}]*\\})+)\\s*(\\{)","end":"^\\s*(\\})","patterns":[{"include":"#compose-body"}],"beginCaptures":{"1":{"name":"keyword.control.deq"},"2":{"name":"entity.name.function.deq"},"3":{"name":"punctuation.bracket.deq"}},"endCaptures":{"1":{"name":"punctuation.bracket.deq"}}},"conditional-correction":{"match":"\\b(CONDITIONAL)\\s+(rec\\[-\\d+\\])\\s+((?:[XYZ]\\d+)(?:\\*[XYZ]\\d+)*)\\s+(\\d+)","captures":{"1":{"name":"keyword.directive.deq"},"2":{"name":"variable.other.deq"},"3":{"name":"support.type.pauli.deq"},"4":{"name":"constant.numeric.deq"}}},"conditional-statement":{"begin":"\\b(CONDITIONAL)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"support.variable.readout.deq","match":"R\\d+"},{"name":"variable.other.deq","match":"M\\d+"},{"name":"support.class.check.deq","match":"(?:IN|OUT)\\d+\\.S\\d+"},{"name":"variable.other.deq","match":"rec\\[-\\d+\\]"},{"name":"entity.name.tag.logical.deq","match":"(?:IN|OUT)\\d+\\.L[XYZ]\\d+"},{"name":"entity.name.tag.logical.deq","match":"L[XYZ]\\d+"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"}}},"decorator":{"begin":"(@[a-zA-Z][a-zA-Z0-9_]*)\\s*(\\()?","end":"(\\))|(?=$|#)","patterns":[{"include":"#decorator-string"},{"include":"#decorator-kwarg"},{"name":"constant.numeric.deq","match":"-?\\d+(?:\\.\\d*)?(?:[eE][+-]?\\d+)?"}],"beginCaptures":{"1":{"name":"entity.name.function.decorator.deq"},"2":{"name":"punctuation.bracket.deq"}},"endCaptures":{"1":{"name":"punctuation.bracket.deq"}}},"decorator-kwarg":{"match":"\\b([a-zA-Z][a-zA-Z0-9_]*)\\s*(=)","captures":{"1":{"name":"variable.parameter.deq"},"2":{"name":"keyword.operator.assignment.deq"}}},"decorator-string":{"name":"string.quoted.double.deq","match":"\"(?:[^\"\\\\]|\\\\.)*\""},"error-statement":{"begin":"\\b(ERROR)\\s*(\\()","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"constant.numeric.deq","match":"-?\\d+(?:\\.\\d*)?(?:[eE][+-]?\\d+)?"},{"name":"punctuation.bracket.deq","match":"\\)"},{"include":"#error-targets"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"},"2":{"name":"punctuation.bracket.deq"}}},"error-targets":{"patterns":[{"name":"entity.name.tag.logical.deq","match":"(?:IN|OUT)\\d+\\.L[XYZ]\\d+"},{"name":"entity.name.tag.logical.deq","match":"L[XYZ]\\d+"},{"name":"storage.type.pauli.deq","match":"[XYZ]\\d+"},{"name":"support.class.check.deq","match":"C\\d+"},{"name":"support.variable.readout.deq","match":"R\\d+"}]},"gadget-application":{"begin":"((?:[a-zA-Z][a-zA-Z0-9_]*|\\$\\{[^}]*\\})+)\\s+(?=(IN|OUT)\\(|\\(\\)|\\d|\\$\\{)","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"include":"#port-binding"},{"name":"punctuation.bracket.deq","match":"\\(\\)"},{"name":"constant.numeric.deq","match":"\\d+"}],"beginCaptures":{"1":{"name":"entity.name.function.call.deq"}}},"gadget-body":{"patterns":[{"include":"#comment"},{"include":"#mako-line"},{"include":"#mako-expression"},{"include":"#decorator"},{"include":"#repeat-block-gadget"},{"include":"#port-statement"},{"include":"#readout-statement"},{"include":"#check-statement"},{"include":"#error-statement"},{"include":"#conditional-statement"},{"include":"#virtual-logical-statement"},{"include":"#propagate-statement"},{"include":"#preselect-statement"},{"include":"#stim-instruction"}]},"gadget-definition":{"begin":"\\b(GADGET)\\s+((?:[a-zA-Z][a-zA-Z0-9_]*|\\$\\{[^}]*\\})+)\\s*(\\{)","end":"^\\s*(\\})","patterns":[{"include":"#gadget-body"}],"beginCaptures":{"1":{"name":"keyword.control.deq"},"2":{"name":"entity.name.function.deq"},"3":{"name":"punctuation.bracket.deq"}},"endCaptures":{"1":{"name":"punctuation.bracket.deq"}}},"import-statement":{"match":"\\b(IMPORT)\\s+(\"(?:[^\"\\\\]|\\\\.)*\")","captures":{"1":{"name":"keyword.control.import.deq"},"2":{"name":"string.quoted.double.deq"}}},"logical-declaration":{"begin":"\\b(LOGICAL)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"include":"#pauli-product"}],"beginCaptures":{"1":{"name":"keyword.declaration.deq"}}},"mako-block":{"name":"meta.embedded.block.python.mako","begin":"\u003c%(?![a-zA-Z/])","end":"%\u003e","patterns":[{"include":"source.python"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.mako"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.mako"}}},"mako-def-block":{"name":"meta.mako.def-block","begin":"(\u003c%)((def))\\b([^\u003e]*)(\u003e)","end":"(\u003c/%)(def)(\u003e)","patterns":[{"include":"#comment"},{"include":"#mako-line"},{"include":"#mako-expression"},{"include":"#decorator"},{"include":"#gadget-body"},{"include":"#compose-body"},{"include":"#program-body"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.begin.mako"},"2":{"name":"keyword.control.directive.mako"},"4":{"patterns":[{"include":"#mako-tag-attributes"}]},"5":{"name":"punctuation.section.embedded.end.mako"}},"endCaptures":{"1":{"name":"punctuation.section.embedded.begin.mako"},"2":{"name":"keyword.control.directive.mako"},"3":{"name":"punctuation.section.embedded.end.mako"}}},"mako-expression":{"name":"meta.embedded.expression.mako","begin":"\\$\\{","end":"\\}","patterns":[{"include":"#mako-nested-braces"},{"include":"source.python"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.mako"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.mako"}}},"mako-line":{"name":"meta.embedded.line.python.mako","begin":"^(\\s*)(%)(?!%)\\s+","end":"$","patterns":[{"include":"source.python"}],"beginCaptures":{"2":{"name":"keyword.control.directive.mako"}}},"mako-nested-braces":{"begin":"\\{","end":"\\}","patterns":[{"include":"#mako-nested-braces"},{"include":"#mako-string"}]},"mako-string":{"patterns":[{"name":"string.quoted.double.mako","match":"\"(?:[^\"\\\\]|\\\\.)*\""},{"name":"string.quoted.single.mako","match":"'(?:[^'\\\\]|\\\\.)*'"}]},"mako-tag-attributes":{"patterns":[{"match":"\\b([a-zA-Z_][a-zA-Z0-9_]*)\\s*(=)\\s*(\"[^\"]*\")","captures":{"1":{"name":"entity.other.attribute-name.mako"},"2":{"name":"keyword.operator.assignment.mako"},"3":{"name":"string.quoted.double.mako"}}}]},"parenthesized-arguments":{"begin":"\\(","end":"\\)","patterns":[{"name":"constant.numeric.deq","match":"-?\\d+(?:\\.\\d*)?(?:[eE][+-]?\\d+)?"}],"beginCaptures":{"0":{"name":"punctuation.bracket.deq"}},"endCaptures":{"0":{"name":"punctuation.bracket.deq"}}},"pauli-product":{"name":"storage.type.pauli.deq","match":"[IXYZ]\\d+"},"port-binding":{"begin":"\\b(IN|OUT)(\\()","end":"\\)","patterns":[{"include":"#mako-expression"},{"name":"constant.numeric.deq","match":"\\d+"}],"beginCaptures":{"1":{"name":"keyword.modifier.deq"},"2":{"name":"punctuation.bracket.deq"}},"endCaptures":{"0":{"name":"punctuation.bracket.deq"}}},"port-statement":{"begin":"\\b(INPUT|OUTPUT)\\s+([a-zA-Z][a-zA-Z0-9_]*)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"constant.numeric.deq","match":"\\d+"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"},"2":{"name":"entity.name.type.deq"}}},"preselect-statement":{"begin":"\\b(PRESELECT)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"invalid.illegal.virtual-stabilizer-in-preselect.deq","match":"(?:IN|OUT)\\d+\\.S\\d+"},{"name":"variable.other.deq","match":"M\\d+"},{"name":"variable.other.deq","match":"rec\\[-\\d+\\]"},{"name":"constant.numeric.parity.deq","match":"\\b[01]\\b"},{"name":"invalid.illegal.preselect-parity-out-of-range.deq","match":"\\d+"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"}}},"program-body":{"patterns":[{"include":"#comment"},{"include":"#mako-line"},{"include":"#mako-expression"},{"include":"#decorator"},{"include":"#repeat-block-program"},{"include":"#port-statement"},{"include":"#assert-statement"},{"include":"#virtual-correction"},{"include":"#conditional-correction"},{"include":"#gadget-application"},{"include":"#stim-instruction"}]},"program-definition":{"begin":"\\b(PROGRAM)\\s+((?:[a-zA-Z][a-zA-Z0-9_]*|\\$\\{[^}]*\\})+)\\s*(\\{)","end":"^\\s*(\\})","patterns":[{"include":"#program-body"}],"beginCaptures":{"1":{"name":"keyword.control.deq"},"2":{"name":"entity.name.function.deq"},"3":{"name":"punctuation.bracket.deq"}},"endCaptures":{"1":{"name":"punctuation.bracket.deq"}}},"propagate-statement":{"begin":"\\b(PROPAGATE)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"keyword.directive.deq","match":"\\b(FROM|FLIP)\\b"},{"name":"entity.name.tag.logical.deq","match":"(?:IN|OUT)\\d+\\.L[XYZ]\\d+"},{"name":"entity.name.tag.logical.deq","match":"L[XZ]\\d+"},{"name":"support.class.check.deq","match":"IN\\d+\\.DS\\d+"},{"name":"variable.other.deq","match":"M\\d+"},{"name":"variable.other.deq","match":"rec\\[-\\d+\\]"},{"name":"support.variable.readout.deq","match":"R\\d+"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"}}},"readout-statement":{"begin":"\\b(READOUT|OBSERVABLE_INCLUDE)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"keyword.directive.deq","match":"\\b(FLIP)\\b"},{"include":"#readout-targets"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"}}},"readout-targets":{"patterns":[{"name":"entity.name.tag.logical.deq","match":"(?:IN|OUT)\\d+\\.L[XYZ]\\d+"},{"name":"entity.name.tag.logical.deq","match":"L[XYZ]\\d+"},{"name":"support.class.check.deq","match":"IN\\d+\\.DS\\d+"},{"include":"#targets"}]},"repeat-block-compose":{"begin":"\\b(REPEAT)\\s+(\\d+|\\$\\{[^}]*\\})\\s*(\\{)","end":"^\\s*(\\})","patterns":[{"include":"#compose-body"}],"beginCaptures":{"1":{"name":"keyword.control.deq"},"2":{"name":"constant.numeric.deq"},"3":{"name":"punctuation.bracket.deq"}},"endCaptures":{"1":{"name":"punctuation.bracket.deq"}}},"repeat-block-gadget":{"begin":"\\b(REPEAT)\\s+(\\d+|\\$\\{[^}]*\\})\\s*(\\{)","end":"^\\s*(\\})","patterns":[{"include":"#gadget-body"}],"beginCaptures":{"1":{"name":"keyword.control.deq"},"2":{"name":"constant.numeric.deq"},"3":{"name":"punctuation.bracket.deq"}},"endCaptures":{"1":{"name":"punctuation.bracket.deq"}}},"repeat-block-program":{"begin":"\\b(REPEAT)\\s+(\\d+|\\$\\{[^}]*\\})\\s*(\\{)","end":"^\\s*(\\})","patterns":[{"include":"#program-body"}],"beginCaptures":{"1":{"name":"keyword.control.deq"},"2":{"name":"constant.numeric.deq"},"3":{"name":"punctuation.bracket.deq"}},"endCaptures":{"1":{"name":"punctuation.bracket.deq"}}},"stabilizer-declaration":{"begin":"\\b(STABILIZER)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"include":"#pauli-product"}],"beginCaptures":{"1":{"name":"keyword.declaration.deq"}}},"stim-instruction":{"begin":"\\b([a-zA-Z][a-zA-Z0-9_]*)\\b","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"include":"#tag"},{"include":"#parenthesized-arguments"},{"include":"#targets"},{"include":"#port-binding"}],"beginCaptures":{"1":{"name":"support.function.deq"}}},"tag":{"name":"string.other.deq","match":"\\[[^\\]]*\\]"},"targets":{"patterns":[{"name":"variable.other.deq","match":"rec\\[-\\d+\\]"},{"name":"variable.other.deq","match":"sweep\\[\\d+\\]"},{"name":"variable.other.deq","match":"M\\d+"},{"name":"support.class.check.deq","match":"(?:IN|OUT)\\d+\\.S\\d+"},{"name":"storage.type.pauli.deq","match":"!?[XYZ]\\d+"},{"name":"keyword.operator.deq","match":"\\*"},{"name":"keyword.operator.deq","match":"!"},{"name":"constant.numeric.deq","match":"\\d+"}]},"virtual-correction":{"match":"\\b(VIRTUAL)\\s+((?:[XYZ]\\d+)(?:\\*[XYZ]\\d+)*)\\s+(\\d+)","captures":{"1":{"name":"keyword.directive.deq"},"2":{"name":"support.type.pauli.deq"},"3":{"name":"constant.numeric.deq"}}},"virtual-logical-statement":{"begin":"\\b(VIRTUAL)\\s+(?=(?:IN|OUT)?\\d*\\.?L[XYZ]|L[XYZ])","end":"(?=#)|$","patterns":[{"include":"#mako-expression"},{"name":"entity.name.tag.logical.deq","match":"(?:IN|OUT)\\d+\\.L[XYZ]\\d+"},{"name":"entity.name.tag.logical.deq","match":"L[XYZ]\\d+"}],"beginCaptures":{"1":{"name":"keyword.directive.deq"}}}}}
@@ -1 +1 @@
1
- {"name":"Roff (Device Description)","scopeName":"source.ditroff.desc","patterns":[{"begin":"(?=^\\s*(?:fonts|res|hor|vert|unitwidth|biggestfont)(?:\\s|$))","end":"(?=A)B","patterns":[{"name":"meta.charset.ditroff.desc","begin":"^(charset)\\s*$","end":"(?=A)B","patterns":[{"include":"#comment"},{"name":"entity.name.glyph.ditroff.desc","match":"\\S+"}],"beginCaptures":{"1":{"name":"keyword.control.section.ditroff.desc"}}},{"include":"#main"}]},{"include":"#main"}],"repository":{"charset":{"name":"meta.charset.ditroff.desc","begin":"^(charset)\\s*$","end":"^(?=kernpairs|\\s*$)","patterns":[{"name":"meta.glyph.ditroff.desc","match":"(?x) ^\n\\s* ((---)|\\S+) # Name\n\\s+ ([-\\d]+(?:,[-\\d]+){0,5}) # Metrics\n\\s+ (\\d) # Glyph type\n\\s+ (0[Xx][0-9A-Fa-f]+|\\d+) # Code\n(?:\\s+(?!--)(\\S+))? # Entity name","captures":{"1":{"name":"entity.name.glyph.ditroff.desc"},"2":{"name":"punctuation.definition.unnamed.glyph.ditroff.desc"},"3":{"patterns":[{"name":"constant.numeric.integer.ditroff.desc","match":"-?\\d+"},{"name":"punctuation.delimiter.comma.ditroff.desc","match":","}]},"4":{"name":"constant.numeric.integer.ditroff.desc"},"5":{"name":"constant.numeric.integer.ditroff.desc"},"6":{"name":"variable.other.ditroff.desc"}}},{"name":"meta.glyph.alias.ditroff.desc","match":"^\\s*(\\S+)\\s+(\")(?=\\s|$)","captures":{"1":{"name":"entity.type.var.ditroff.desc"},"2":{"name":"keyword.operator.ditroff.desc"}}},{"name":"comment.line.double-dash.ditroff.desc","begin":"(?\u003c=\\s)--(?!-)","end":"(?=$)","beginCaptures":{"0":{"name":"punctuation.definition.comment.ditroff.desc"}}},{"include":"#comment"}],"beginCaptures":{"1":{"name":"keyword.control.section.ditroff.desc"}}},"comment":{"name":"comment.line.number-sign.ditroff.desc","begin":"#","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.ditroff.desc"}}},"fields":{"patterns":[{"name":"meta.$1-list.ditroff.desc","begin":"^\\s*(ligatures|sizes)(?=\\s)","end":"(?\u003c=\\s)0(?=\\s*$)|(?=^(?!\\s*$)(?!\\s*[\\d#]))","patterns":[{"name":"constant.numeric.range.ditroff.desc","match":"\\d+(-)\\d+","captures":{"1":{"name":"punctuation.separator.range.dash.ditroff.desc"}}},{"include":"#comment"},{"name":"constant.numeric.integer.desc","match":"\\d+"},{"name":"variable.parameter.ditroff.desc","match":"\\S{2,}"}],"beginCaptures":{"1":{"name":"entity.type.var.ditroff.desc"}},"endCaptures":{"0":{"name":"punctuation.terminator.statement.ditroff.desc"}}},{"name":"meta.papersize.ditroff.desc","begin":"^\\s*(papersize)(?=\\s)","end":"(?=$|#)","patterns":[{"include":"#paperSizes"}],"beginCaptures":{"1":{"name":"entity.type.var.ditroff.desc"}}},{"begin":"(?x)^\\s*\n(afmfonts|allpunct|anysize|biggestfont|broken|checksum|designsize|encoding|family\n|fonts|hor|image_generator|internalname|lc_ctype|name|orientation|paper(?:length|width)\n|pass_filenames|postpro|prepro|print|res|sizescale|slant|spacewidth|spare\\d|special\n|styles|tcommand|unicode|unitwidth|unscaled_charwidths|use_charnames_in_special|vert\n|X11|(?:lbp|pcl)[a-z]+)\n(?=\\s)","end":"(?=$|#)","patterns":[{"name":"constant.numeric.ditroff.desc","match":"-?[\\d.]+(?=\\s|$)"},{"name":"variable.parameter.ditroff.desc","match":"\\S+"}],"beginCaptures":{"1":{"name":"entity.type.var.ditroff.desc"}}}]},"fontPath":{"match":"^(?:(\\w+)?\\t+)?(\\S+)\\t+(\\*)?(\\S+(?:\\.pf[ab]|[\\/]Resource[\\/]Font[\\/]\\S+))\\s*$","captures":{"1":{"name":"variable.other.foundry.ditroff.desc"},"2":{"name":"entity.name.var.ditroff.desc"},"3":{"name":"keyword.operator.globstar.ditroff.desc"},"4":{"name":"string.quoted.double.filename.ditroff.desc"}}},"foundry":{"name":"meta.foundry-data.ditroff.desc","begin":"^(#)Foundry\\|Name\\|Searchpath\\s*$","end":"(?=A)B","patterns":[{"include":"#comment"},{"match":"^([^\\s|]+)(\\|)([YN])(\\|)([rins]+)?(\\|)(?:([.\\w]*)(\\|)([.\\w]*)(?=\\|))?","captures":{"1":{"name":"entity.name.var.ditroff.desc"},"2":{"name":"punctuation.delimiter.pipe.ditroff.desc"},"3":{"name":"constant.boolean.is-base64.ditroff.desc"},"4":{"name":"punctuation.delimiter.pipe.ditroff.desc"},"5":{"name":"constant.language.flags.ditroff.desc"},"6":{"name":"punctuation.delimiter.pipe.ditroff.desc"},"7":{"name":"variable.parameter.ditroff.desc"},"8":{"name":"punctuation.delimiter.pipe.ditroff.desc"},"9":{"name":"variable.parameter.ditroff.desc"}}},{"match":"^(foundry)(\\|)(\\w*)(\\|)((\\()\\w+(\\)))?([^|#]+)","captures":{"1":{"name":"storage.type.foundry.ditroff.desc"},"2":{"name":"punctuation.delimiter.pipe.ditroff.desc"},"3":{"name":"variable.other.foundry.ditroff.desc"},"4":{"name":"punctuation.delimiter.pipe.ditroff.desc"},"5":{"name":"string.interpolated.ditroff.desc"},"6":{"name":"punctuation.definition.arguments.begin.ditroff.desc"},"7":{"name":"punctuation.definition.arguments.end.ditroff.desc"},"8":{"name":"string.quoted.double.filename.ditroff.desc","patterns":[{"name":"punctuation.separator.key-value.colon.ditroff.desc","match":":"}]}}},{"name":"meta.foundry-font.ditroff.desc","match":"(?\u003c=\\|)(?:([^|!]+\\.pf[ab])|([^|!]+)(!)([^|!]+\\.pf[ab]))$","captures":{"1":{"name":"string.quoted.double.filename.ditroff.desc"},"2":{"name":"variable.parameter.ditroff.desc"},"3":{"name":"punctuation.separator.fontname.ditroff.desc"},"4":{"name":"string.quoted.double.filename.ditroff.desc"}}},{"name":"meta.afmtodit-flag.ditroff.desc","match":"^([a-z])(=)(?=-)([^#]+)(?=$|#)","captures":{"1":{"name":"variable.other.ditroff.desc"},"2":{"name":"keyword.operator.assignment.ditroff.desc"},"3":{"name":"constant.other.ditroff.desc"}}},{"name":"punctuation.delimiter.pipe.ditroff.desc","match":"\\|"}],"beginCaptures":{"0":{"name":"comment.line.number-sign.ditroff.desc"},"1":{"name":"punctuation.definition.comment.ditroff.desc"}}},"kernpairs":{"name":"meta.kernpairs.ditroff.desc","begin":"^(kernpairs)\\s*$","end":"^(?=charset|\\s*$)","patterns":[{"name":"meta.kerning-pair.ditroff.desc","match":"^\\s*(\\S+)\\s+(\\S+)\\s+(-?\\d+)","captures":{"1":{"name":"entity.name.var.ditroff.desc"},"2":{"name":"entity.name.var.ditroff.desc"},"3":{"name":"constant.numeric.integer.ditroff.desc"}}}],"beginCaptures":{"1":{"name":"keyword.control.section.ditroff.desc"}}},"main":{"patterns":[{"include":"#foundry"},{"include":"#comment"},{"include":"#charset"},{"include":"#fields"},{"include":"#kernpairs"},{"include":"#fontPath"}]},"paperSizes":{"patterns":[{"name":"support.constant.papersize.ditroff.desc","match":"(?i)(?:[A-D][0-7]|DL|letter|legal|tabloid|ledger|statement|executive|com10|monarch)(?=$|[\\s#])"},{"name":"meta.custom-papersize.ditroff.desc","match":"(?\u003c=\\s)([\\d.]+)([icpP])(,)([\\d.]+)([icpP])(?=\\s|$)","captures":{"1":{"name":"constant.numeric.ditroff.desc"},"2":{"name":"keyword.other.unit.ditroff.desc"},"3":{"name":"punctuation.delimiter.comma.ditroff.desc"},"4":{"name":"constant.numeric.ditroff.desc"},"5":{"name":"keyword.other.unit.ditroff.desc"}}}]}}}
1
+ {"name":"Roff (Device Description)","scopeName":"source.ditroff.desc","patterns":[{"begin":"(?=^\\s*(?:fonts|res|hor|vert|unitwidth|biggestfont)(?:\\s|$))","end":"(?=A)B","patterns":[{"name":"meta.charset.ditroff.desc","begin":"^(charset)\\s*$","end":"(?=A)B","patterns":[{"include":"#comment"},{"name":"entity.name.glyph.ditroff.desc","match":"\\S+"}],"beginCaptures":{"1":{"name":"keyword.control.section.ditroff.desc"}}},{"include":"#main"}]},{"include":"#main"}],"repository":{"charset":{"name":"meta.charset.ditroff.desc","begin":"^(charset)\\s*$","end":"^(?=(?:kernpairs|charset(?:-range)?)(?:$|\\s)|\\s*$)","patterns":[{"name":"meta.glyph.ditroff.desc","match":"(?x) ^\n\\s* ((---)|\\S+) # Name\n\\s+ ([-\\d]+(?:,[-\\d]+){0,5}) # Metrics\n\\s+ (\\d) # Glyph type\n\\s+ (0[Xx][0-9A-Fa-f]+|\\d+) # Code\n(?:\\s+(?!--)(\\S+))? # Entity name","captures":{"1":{"name":"entity.name.glyph.ditroff.desc"},"2":{"name":"punctuation.definition.unnamed.glyph.ditroff.desc"},"3":{"patterns":[{"include":"#charset-metrics"}]},"4":{"patterns":[{"include":"#charset-glyph-type"}]},"5":{"name":"constant.numeric.integer.code.ditroff.desc"},"6":{"name":"variable.other.ditroff.desc"}}},{"name":"meta.glyph.alias.ditroff.desc","match":"^\\s*(\\S+)\\s+(\")(?=\\s|$)","captures":{"1":{"name":"entity.type.var.ditroff.desc"},"2":{"name":"keyword.operator.ditroff.desc"}}},{"include":"#charset-comment"},{"include":"#comment"}],"beginCaptures":{"1":{"name":"keyword.control.section.ditroff.desc"}}},"charset-comment":{"name":"comment.line.double-dash.ditroff.desc","begin":"(?\u003c=\\s)(?\u003c!^)--+","end":"(?=$)","beginCaptures":{"0":{"name":"punctuation.definition.comment.ditroff.desc"}}},"charset-glyph-type":{"name":"constant.numeric.integer.glyph-type.ditroff.desc","match":"(?:^|\\G)\\d(?=$|\\s)"},"charset-metrics":{"patterns":[{"name":"constant.numeric.integer.ditroff.desc","match":"-?\\d+"},{"name":"punctuation.delimiter.comma.ditroff.desc","match":","}]},"charset-range":{"name":"meta.charset-range.ditroff.desc","begin":"^(charset-range)\\s*$","end":"^(?=(?:charset(?:-range)?|kernpairs)(?:$|\\s)|\\s*$)","patterns":[{"name":"meta.glyph-range.ditroff.desc","begin":"^(u[0-9A-Fa-f]+)(\\.\\.)(u[0-9A-Fa-f]+)(?=[ \\t]|$)","end":"(?=\\s*$)","patterns":[{"match":"(?x)\n\\G \\s+([-\\d]+(?:,[-\\d]+){0,5}) # Metrics\n\\s+ (\\d) # Glyph type\n(\\s+ --+ \\s* [^\\r\\n]+?)? # Comment\n(?=\\s*$)","captures":{"1":{"patterns":[{"include":"#charset-metrics"}]},"2":{"patterns":[{"include":"#charset-glyph-type"}]},"3":{"patterns":[{"include":"#charset-comment"}]}}},{"include":"#charset-comment"},{"include":"#comment"}],"beginCaptures":{"1":{"name":"entity.other.glyph.range.begin.ditroff.desc"},"2":{"name":"keyword.operator.punctuation.dots.splat.range.ditroff.desc"},"3":{"name":"entity.other.glyph.range.end.ditroff.desc"}}}],"beginCaptures":{"1":{"name":"keyword.control.section.ditroff.desc"}}},"comment":{"name":"comment.line.number-sign.ditroff.desc","begin":"#","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.ditroff.desc"}}},"fieldArgs":{"patterns":[{"name":"constant.numeric.ditroff.desc","match":"-?[\\d.]+(?=\\s|$)"},{"name":"variable.parameter.ditroff.desc","match":"\\S+"}]},"fields":{"patterns":[{"name":"meta.$1-list.ditroff.desc","begin":"^\\s*(ligatures|sizes)(?=\\s)","end":"(?\u003c=\\s)0(?=\\s*$)|(?=^(?!\\s*$)(?!\\s*[\\d#]))","patterns":[{"name":"constant.numeric.range.ditroff.desc","match":"\\d+(-)\\d+","captures":{"1":{"name":"punctuation.separator.range.dash.ditroff.desc"}}},{"include":"#comment"},{"name":"constant.numeric.integer.desc","match":"\\d+"},{"name":"variable.parameter.ditroff.desc","match":"\\S{2,}"}],"beginCaptures":{"1":{"name":"entity.type.var.ditroff.desc"}},"endCaptures":{"0":{"name":"punctuation.terminator.statement.ditroff.desc"}}},{"name":"meta.papersize.ditroff.desc","begin":"^\\s*(papersize)(?=\\s)","end":"(?=$|#)","patterns":[{"include":"#paperSizes"}],"beginCaptures":{"1":{"name":"entity.type.var.ditroff.desc"}}},{"name":"meta.orientation.ditroff.desc","match":"^\\s*(orientation)(?:\\s+(landscape|portrait))?(?=$|\\s|#)","captures":{"1":{"name":"entity.type.var.ditroff.desc"},"2":{"name":"constant.language.orientation.$2.ditroff.desc"}}},{"begin":"(?x)^\\s*\n(afmfonts|allpunct|anysize|biggestfont|broken|checksum|designsize|encoding|family\n|fonts|hor|image_generator|internalname|lc_ctype|name|paper(?:length|width)\n|pass_filenames|postpro|prepro|print|res|sizescale|slant|spacewidth|spare\\d|special\n|styles|tcommand|unicode|unitwidth|unscaled_charwidths|use_charnames_in_special|vert\n|X11|(?:lbp|pcl)[a-z]+)\n(?=\\s)","end":"(?=$|#)","patterns":[{"include":"#fieldArgs"}],"beginCaptures":{"1":{"name":"entity.type.var.ditroff.desc"}}}]},"fontPath":{"match":"^(?:(\\w+)?\\t+)?(\\S+)\\t+(\\*)?(\\S+(?:\\.pf[ab]|[\\/]Resource[\\/]Font[\\/]\\S+))\\s*$","captures":{"1":{"name":"variable.other.foundry.ditroff.desc"},"2":{"name":"entity.name.var.ditroff.desc"},"3":{"name":"keyword.operator.globstar.ditroff.desc"},"4":{"name":"string.quoted.double.filename.ditroff.desc"}}},"foundry":{"name":"meta.foundry-data.ditroff.desc","begin":"^(#)Foundry\\|Name\\|Searchpath\\s*$","end":"(?=A)B","patterns":[{"include":"#comment"},{"match":"^([^\\s|]+)(\\|)([YN])(\\|)([rins]+)?(\\|)(?:([.\\w]*)(\\|)([.\\w]*)(?=\\|))?","captures":{"1":{"name":"entity.name.var.ditroff.desc"},"2":{"name":"punctuation.delimiter.pipe.ditroff.desc"},"3":{"name":"constant.boolean.is-base64.ditroff.desc"},"4":{"name":"punctuation.delimiter.pipe.ditroff.desc"},"5":{"name":"constant.language.flags.ditroff.desc"},"6":{"name":"punctuation.delimiter.pipe.ditroff.desc"},"7":{"name":"variable.parameter.ditroff.desc"},"8":{"name":"punctuation.delimiter.pipe.ditroff.desc"},"9":{"name":"variable.parameter.ditroff.desc"}}},{"match":"^(foundry)(\\|)(\\w*)(\\|)((\\()\\w+(\\)))?([^|#]+)","captures":{"1":{"name":"storage.type.foundry.ditroff.desc"},"2":{"name":"punctuation.delimiter.pipe.ditroff.desc"},"3":{"name":"variable.other.foundry.ditroff.desc"},"4":{"name":"punctuation.delimiter.pipe.ditroff.desc"},"5":{"name":"string.interpolated.ditroff.desc"},"6":{"name":"punctuation.definition.arguments.begin.ditroff.desc"},"7":{"name":"punctuation.definition.arguments.end.ditroff.desc"},"8":{"name":"string.quoted.double.filename.ditroff.desc","patterns":[{"name":"punctuation.separator.key-value.colon.ditroff.desc","match":":"}]}}},{"name":"meta.foundry-font.ditroff.desc","match":"(?\u003c=\\|)(?:([^|!]+\\.pf[ab])|([^|!]+)(!)([^|!]+\\.pf[ab]))$","captures":{"1":{"name":"string.quoted.double.filename.ditroff.desc"},"2":{"name":"variable.parameter.ditroff.desc"},"3":{"name":"punctuation.separator.fontname.ditroff.desc"},"4":{"name":"string.quoted.double.filename.ditroff.desc"}}},{"name":"meta.afmtodit-flag.ditroff.desc","match":"^([a-z])(=)(?=-)([^#]+)(?=$|#)","captures":{"1":{"name":"variable.other.ditroff.desc"},"2":{"name":"keyword.operator.assignment.ditroff.desc"},"3":{"name":"constant.other.ditroff.desc"}}},{"name":"punctuation.delimiter.pipe.ditroff.desc","match":"\\|"}],"beginCaptures":{"0":{"name":"comment.line.number-sign.ditroff.desc"},"1":{"name":"punctuation.definition.comment.ditroff.desc"}}},"kernpairs":{"name":"meta.kernpairs.ditroff.desc","begin":"^(kernpairs)\\s*$","end":"^(?=charset|\\s*$)","patterns":[{"name":"meta.kerning-pair.ditroff.desc","match":"^\\s*(\\S+)\\s+(\\S+)\\s+(-?\\d+)","captures":{"1":{"name":"entity.name.var.ditroff.desc"},"2":{"name":"entity.name.var.ditroff.desc"},"3":{"name":"constant.numeric.integer.ditroff.desc"}}}],"beginCaptures":{"1":{"name":"keyword.control.section.ditroff.desc"}}},"main":{"patterns":[{"include":"#foundry"},{"include":"#comment"},{"include":"#charset"},{"include":"#charset-range"},{"include":"#fields"},{"include":"#kernpairs"},{"include":"#fontPath"}]},"paperSizes":{"patterns":[{"name":"support.constant.papersize.ditroff.desc","match":"(?i)(?:[A-D][0-7]|DL|letter|legal|tabloid|ledger|statement|executive|com10|monarch)(?=$|[\\s#])"},{"name":"meta.custom-papersize.ditroff.desc","match":"(?\u003c=\\s)([\\d.]+)([icpP])(,)([\\d.]+)([icpP])(?=\\s|$)","captures":{"1":{"name":"constant.numeric.ditroff.desc"},"2":{"name":"keyword.other.unit.ditroff.desc"},"3":{"name":"punctuation.delimiter.comma.ditroff.desc"},"4":{"name":"constant.numeric.ditroff.desc"},"5":{"name":"keyword.other.unit.ditroff.desc"}}}]}}}
@@ -1 +1 @@
1
- {"name":"DreamMaker","scopeName":"source.dm","patterns":[{"include":"#preprocessor-rule-enabled"},{"include":"#preprocessor-rule-disabled"},{"include":"#preprocessor-rule-other"},{"include":"#comments"},{"name":"meta.initialization.dm","match":"\\b(var)[\\/ ](?:(static|global|tmp|const)\\/)?(?:(area|atom(?:/movable)?|client|database(?:/query)?|datum|exception|generator|icon|image|list|matrix|mob|mutable_appearance|obj|particles|regex|savefile|sound|turf|world)\\/)?(?:([a-zA-Z0-9_\\-$]*)\\/)*([A-Za-z0-9_$]*)\\b","captures":{"1":{"name":"storage.type.dm"},"2":{"name":"storage.modifier.dm"},"3":{"name":"support.class.dm"},"5":{"name":"variable.other.dm"}}},{"name":"constant.numeric.dm","match":"\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b"},{"name":"keyword.control.dm","match":"\\b(sleep|spawn|break|continue|do|else|for|goto|if|return|switch|while|try|catch|throw)\\b"},{"name":"keyword.other.dm","match":"\\b(del|new)\\b"},{"name":"storage.type.dm","match":"\\b(proc|verb|operator)\\b"},{"name":"storage.modifier.dm","match":"\\b(as|const|global|set|static|tmp)\\b"},{"match":"(/)(area|atom(/movable)?|client|database(/query)?|datum|exception|generator|icon|image|list|matrix|mob|mutable_appearance|obj|particles|regex|savefile|sound|turf|world)\\b","captures":{"1":{"name":"keyword.operator.dm"},"2":{"name":"support.class.dm"}}},{"match":"(\\(|,)\\s*(area|atom(/movable)?|client|database(/query)?|datum|exception|generator|icon|image|list|matrix|mob|mutable_appearance|obj|particles|regex|savefile|sound|turf|world)(?=/)","captures":{"1":{"name":"keyword.operator.dm"},"2":{"name":"support.class.dm"}}},{"match":"\\b(list|call|input|locate|pick|arglist|CRASH|ASSERT|EXCEPTION|REGEX_QUOTE|REGEX_QUOTE_REPLACEMENT)(?\u003e\\s*\\()","captures":{"1":{"name":"support.function.dm"}}},{"name":"variable.language.dm","match":"\\b(usr|world|src|args|vars)\\b"},{"name":"keyword.operator.dm","match":"(\\?|(\u003e|\u003c)(=)?|\\.|:|/(=)?|~|\\+(\\+|=)?|-(-|=)?|\\*(\\*|=)?|%|\u003e\u003e|\u003c\u003c|=(=)?|!(=)?|\u003c\u003e|\u0026|\u0026\u0026|\\^|\\||\\|\\||\\b(to|in|step)\\b)"},{"name":"constant.language.dm","match":"\\b(DM_BUILD|DM_VERSION|__FILE__|__LINE__|__MAIN__|DEBUG|FILE_DIR|TRUE|FALSE)\\b"},{"name":"constant.language.dm","match":"\\b([A-Z_][A-Z_0-9]+)\\b"},{"name":"constant.language.dm","match":"\\bnull\\b"},{"name":"string.quoted.other.dm","begin":"@{\"","end":"\"}","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.dm"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.dm"}}},{"name":"string.unquoted.dm","begin":"@\\(([^)]+)\\)","end":"\\1","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.dm"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.dm"}}},{"name":"string.quoted.other.dm","begin":"@(.)","end":"\\1|$","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.dm"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.dm"}}},{"name":"meta.interpstring.dm","begin":"({\")","end":"(\"})","patterns":[{"include":"#string_escaped_char"},{"include":"#string_embedded_expression"},{"name":"string.quoted.triple.dm","match":"."}],"beginCaptures":{"0":{"name":"string.quoted.triple.dm"},"1":{"name":"punctuation.definition.string.begin.dm"}},"endCaptures":{"0":{"name":"string.quoted.triple.dm"},"1":{"name":"punctuation.definition.string.end.dm"}}},{"name":"meta.interpstring.dm","begin":"(\")","end":"(\"|[^\\\\]$)","patterns":[{"include":"#string_escaped_char"},{"include":"#string_embedded_expression"},{"name":"string.quoted.double.dm","match":"."}],"beginCaptures":{"0":{"name":"string.quoted.double.dm"},"1":{"name":"punctuation.definition.string.begin.dm"}},"endCaptures":{"0":{"name":"string.quoted.double.dm"},"1":{"name":"punctuation.definition.string.end.dm"}}},{"name":"string.quoted.single.dm","begin":"'","end":"'|[^\\\\]$","patterns":[{"name":"constant.character.escape.dm","match":"\\\\(.|\\n)"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.dm"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.dm"}}},{"name":"meta.preprocessor.macro.dm","begin":"(?x)\n^\\s* ((\\#)\\s*define) \\s+ # define\n((?\u003cid\u003e[a-zA-Z_][a-zA-Z0-9_]*)) # macro name\n(?:\n\t(\\()\n\t\t(\n\t\t\t\\s* \\g\u003cid\u003e \\s* # first argument\n\t\t\t((,) \\s* \\g\u003cid\u003e \\s*)* # additional arguments\n\t\t\t(?:\\.\\.\\.)? # varargs ellipsis?\n\t\t)\n\t(\\))\n)","end":"(?=(?://|/\\*))|(?\u003c!\\\\)(?=\\n)","patterns":[{"include":"$base"}],"beginCaptures":{"1":{"name":"keyword.control.directive.define.dm"},"2":{"name":"punctuation.definition.directive.dm"},"3":{"name":"entity.name.function.preprocessor.dm"},"5":{"name":"punctuation.definition.parameters.begin.dm"},"6":{"name":"variable.parameter.preprocessor.dm"},"8":{"name":"punctuation.separator.parameters.dm"},"9":{"name":"punctuation.definition.parameters.end.dm"}}},{"name":"meta.preprocessor.macro.dm","begin":"(?x)\n^\\s* ((\\#)\\s*define) \\s+ # define\n((?\u003cid\u003e[a-zA-Z_][a-zA-Z0-9_]*)) # macro name","end":"(?=(?://|/\\*))|(?\u003c!\\\\)(?=\\n)","patterns":[{"include":"$base"}],"beginCaptures":{"1":{"name":"keyword.control.directive.define.dm"},"2":{"name":"punctuation.definition.directive.dm"},"3":{"name":"variable.other.preprocessor.dm"}}},{"name":"meta.preprocessor.diagnostic.dm","begin":"^\\s*(#\\s*(error|warn))\\b","end":"$","patterns":[{"name":"punctuation.separator.continuation.dm","match":"(?\u003e\\\\\\s*\\n)"}],"captures":{"1":{"name":"keyword.control.import.error.dm"}}},{"name":"meta.preprocessor.dm","begin":"^\\s*(?:((#)\\s*(?:elif|else|if|ifdef|ifndef))|((#)\\s*(undef|include)))\\b","end":"(?=(?://|/\\*))|(?\u003c!\\\\)(?=\\n)","patterns":[{"name":"punctuation.separator.continuation.dm","match":"(?\u003e\\\\\\s*\\n)"}],"beginCaptures":{"1":{"name":"keyword.control.directive.conditional.dm"},"2":{"name":"punctuation.definition.directive.dm"},"3":{"name":"keyword.control.directive.$5.dm"},"4":{"name":"punctuation.definition.directive.dm"}}},{"include":"#block"},{"name":"meta.function.dm","begin":"(?x)\n\t\t\t\t(?: ^ # begin-of-line\n\t\t\t\t\t|\n\t\t\t\t\t\t (?: (?= \\s ) (?\u003c!else|new|return) (?\u003c=\\w) # or word + space before name\n\t\t\t\t\t\t\t | (?= \\s*[A-Za-z_] ) (?\u003c!\u0026\u0026) (?\u003c=[*\u0026\u003e]) # or type modifier before name\n\t\t\t\t\t\t )\n\t\t\t\t)\n\t\t\t\t(\\s*) (?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\s*\\()\n\t\t\t\t(\n\t\t\t\t\t(?: [A-Za-z_][A-Za-z0-9_]*+ | :: )++ | # actual name\n\t\t\t\t\t(?: (?\u003c=operator) (?: [-*\u0026\u003c\u003e=+!]+ | \\(\\) | \\[\\] ) ) # if it is a C++ operator\n\t\t\t\t)\n\t\t\t\t \\s*(?=\\()","end":"(?\u003c=\\})|(?=#)|(;)?","patterns":[{"include":"#comments"},{"include":"#parens"},{"name":"storage.modifier.dm","match":"\\bconst\\b"},{"include":"#block"}],"beginCaptures":{"1":{"name":"punctuation.whitespace.function.leading.dm"},"3":{"name":"entity.name.function.dm"},"4":{"name":"punctuation.definition.parameters.dm"}}}],"repository":{"access":{"name":"variable.other.dot-access.dm","match":"\\.[a-zA-Z_][a-zA-Z_0-9]*\\b(?!\\s*\\()"},"block":{"name":"meta.block.dm","begin":"\\{","end":"\\}","patterns":[{"include":"#block_innards"}]},"block_innards":{"patterns":[{"include":"#preprocessor-rule-enabled-block"},{"include":"#preprocessor-rule-disabled-block"},{"include":"#preprocessor-rule-other-block"},{"include":"#access"},{"name":"meta.function-call.dm","match":"(?x) (?: (?= \\s ) (?:(?\u003c=else|new|return) | (?\u003c!\\w)) (\\s+))?\n\t\t\t(\\b\n\t\t\t\t(?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\s*\\()(?:(?!NS)[A-Za-z_][A-Za-z0-9_]*+\\b | :: )++ # actual name\n\t\t\t)\n\t\t\t \\s*(\\()","captures":{"1":{"name":"punctuation.whitespace.function-call.leading.dm"},"2":{"name":"support.function.any-method.dm"},"3":{"name":"punctuation.definition.parameters.dm"}}},{"include":"#block"},{"include":"$base"}]},"comments":{"patterns":[{"name":"comment.block.dm","match":"^/\\* =(\\s*.*?)\\s*= \\*/$\\n?","captures":{"1":{"name":"meta.toc-list.banner.block.dm"}}},{"name":"comment.block.dm","begin":"/\\*","end":"\\*/","patterns":[{"include":"#comments"}],"captures":{"0":{"name":"punctuation.definition.comment.dm"}}},{"name":"invalid.illegal.stray-comment-end.dm","match":"\\*/.*\\n"},{"name":"comment.line.banner.dm","match":"^// =(\\s*.*?)\\s*=\\s*$\\n?","captures":{"1":{"name":"meta.toc-list.banner.line.dm"}}},{"name":"comment.line.double-slash.dm","begin":"//","end":"[^\\\\]$","patterns":[{"name":"punctuation.separator.continuation.dm","match":"(?\u003e\\\\\\s*\\n)"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.dm"}}}]},"disabled":{"begin":"^\\s*#\\s*if(n?def)?\\b.*$","end":"^\\s*#\\s*endif\\b","patterns":[{"include":"#disabled"}]},"parens":{"name":"meta.parens.dm","begin":"\\(","end":"\\)","patterns":[{"include":"$base"}]},"preprocessor-rule-disabled":{"begin":"^\\s*(#(if)\\s+(0+|FALSE)\\b).*","end":"^\\s*(#\\s*(endif)\\b)","patterns":[{"begin":"^\\s*(#\\s*(else)\\b)","end":"(?=^\\s*#\\s*endif\\b)","patterns":[{"include":"$base"}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.else.dm"}}},{"name":"comment.block.preprocessor.if-branch","end":"(?=^\\s*#\\s*(else|endif)\\b)","patterns":[{"include":"#disabled"}]}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.if.dm"},"3":{"name":"constant.numeric.preprocessor.dm"}}},"preprocessor-rule-disabled-block":{"begin":"^\\s*(#(if)\\s+(0+|FALSE)\\b).*","end":"^\\s*(#\\s*(endif)\\b)","patterns":[{"begin":"^\\s*(#\\s*(else)\\b)","end":"(?=^\\s*#\\s*endif\\b)","patterns":[{"include":"#block_innards"}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.else.dm"}}},{"name":"comment.block.preprocessor.if-branch.in-block","end":"(?=^\\s*#\\s*(else|endif)\\b)","patterns":[{"include":"#disabled"}]}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.if.dm"},"3":{"name":"constant.numeric.preprocessor.dm"}}},"preprocessor-rule-enabled":{"begin":"^\\s*(#(if)\\s+(0*1|TRUE)\\b)","end":"^\\s*(#\\s*(endif)\\b)","patterns":[{"contentName":"comment.block.preprocessor.else-branch","begin":"^\\s*(#\\s*(else)\\b).*","end":"(?=^\\s*#\\s*endif\\b)","patterns":[{"include":"#disabled"}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.else.dm"}}},{"end":"(?=^\\s*#\\s*(else|endif)\\b)","patterns":[{"include":"$base"}]}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.if.dm"},"3":{"name":"constant.numeric.preprocessor.dm"}}},"preprocessor-rule-enabled-block":{"begin":"^\\s*(#(if)\\s+(0*1|TRUE)\\b)","end":"^\\s*(#\\s*(endif)\\b)","patterns":[{"contentName":"comment.block.preprocessor.else-branch.in-block","begin":"^\\s*(#\\s*(else)\\b).*","end":"(?=^\\s*#\\s*endif\\b)","patterns":[{"include":"#disabled"}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.else.dm"}}},{"end":"(?=^\\s*#\\s*(else|endif)\\b)","patterns":[{"include":"#block_innards"}]}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.if.dm"},"3":{"name":"constant.numeric.preprocessor.dm"}}},"preprocessor-rule-other":{"begin":"^\\s*((#\\s*(if(n?def)?))\\b.*?(?:(?=(?://|/\\*))|$))","end":"^\\s*((#\\s*(endif))\\b)","patterns":[{"include":"$base"}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.dm"}}},"preprocessor-rule-other-block":{"begin":"^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))","end":"^\\s*(#\\s*(endif)\\b)","patterns":[{"include":"#block_innards"}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.dm"}}},"string_embedded_expression":{"patterns":[{"name":"meta.interpolation.dm","begin":"(\\[)","end":"(\\])","patterns":[{"include":"#string_embedded_expression_2"},{"include":"$base"}],"beginCaptures":{"0":{"name":"string.quoted.other.dm"},"1":{"name":"punctuation.definition.string.end.dm"}},"endCaptures":{"0":{"name":"string.quoted.other.dm"},"1":{"name":"punctuation.definition.string.begin.dm"}}}]},"string_embedded_expression_2":{"begin":"(\\[)","end":"(\\])","patterns":[{"include":"#string_embedded_expression_2"},{"include":"$base"}]},"string_escaped_char":{"patterns":[{"name":"constant.character.escape.dm","match":"\\\\([Tt]he|[Aa]|[Aa]n|[Hh]e|[Ss]he|[Hh]is|him|himself|herself|hers|proper|improper|th|s|(icon|ref|[Rr]oman)(?=\\[)|\\.\\.\\.|t|n|\"|\\\\|\u003c|\u003e| |\n|\\[|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{6})"},{"name":"invalid.illegal.unknown-escape.dm","match":"\\\\."}]}}}
1
+ {"name":"DreamMaker","scopeName":"source.dm","patterns":[{"include":"#preprocessor-rule-enabled"},{"include":"#preprocessor-rule-disabled"},{"include":"#preprocessor-rule-other"},{"include":"#comments"},{"name":"meta.initialization.dm","match":"\\b(var)[\\/ ](?:(static|global|tmp|const|final)\\/)?(?:(area|atom(?:/movable)?|client|database(?:/query)?|datum|exception|generator|icon|image|a?list|matrix|mob|mutable_appearance|obj|particles|pixloc|regex|savefile|sound|turf|vector|world)\\/)?(?:([a-zA-Z0-9_\\-$]*)\\/)*([A-Za-z0-9_$]*)\\b","captures":{"1":{"name":"storage.type.dm"},"2":{"name":"storage.modifier.dm"},"3":{"name":"support.class.dm"},"5":{"name":"variable.other.dm"}}},{"name":"constant.numeric.dm","match":"\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)\\b"},{"name":"keyword.control.dm","match":"\\b(sleep|spawn|break|continue|do|else|for|goto|if|return|switch|while|try|catch|throw)\\b"},{"name":"keyword.other.dm","match":"\\b(del|new)\\b"},{"name":"storage.type.dm","match":"\\b(proc|verb|operator)\\b"},{"name":"storage.modifier.dm","match":"\\b(as|const|global|set|static|tmp|final)\\b"},{"match":"(/)(area|atom(/movable)?|client|database(/query)?|datum|exception|generator|icon|image|a?list|matrix|mob|mutable_appearance|obj|particles|pixloc|regex|savefile|sound|turf|vector|world)\\b","captures":{"1":{"name":"keyword.operator.dm"},"2":{"name":"support.class.dm"}}},{"match":"(\\(|,)\\s*(area|atom(/movable)?|client|database(/query)?|datum|exception|generator|icon|image|a?list|matrix|mob|mutable_appearance|obj|particles|pixloc|regex|savefile|sound|turf|vector|world)(?=/)","captures":{"1":{"name":"keyword.operator.dm"},"2":{"name":"support.class.dm"}}},{"match":"\\b(a?list|call|input|locate|pick|arglist|CRASH|ASSERT|EXCEPTION|REGEX_QUOTE|REGEX_QUOTE_REPLACEMENT)(?\u003e\\s*\\()","captures":{"1":{"name":"support.function.dm"}}},{"name":"variable.language.dm","match":"\\b(usr|world|src|args|vars)\\b"},{"name":"keyword.operator.dm","match":"(\\?|(\u003e|\u003c)(=)?|\\.|:|/(=)?|~|\\+(\\+|=)?|-(-|=)?|\\*(\\*|=)?|%|\u003e\u003e|\u003c\u003c|=(=)?|!(=)?|\u003c\u003e|\u0026|\u0026\u0026|\\^|\\||\\|\\||\\b(to|in|step)\\b)"},{"name":"constant.language.dm","match":"\\b(DM_BUILD|DM_VERSION|__FILE__|__LINE__|__MAIN__|DEBUG|FILE_DIR|TRUE|FALSE)\\b"},{"name":"constant.language.dm","match":"\\b([A-Z_][A-Z_0-9]+)\\b"},{"name":"constant.language.dm","match":"\\bnull\\b"},{"name":"string.quoted.other.dm","begin":"@{\"","end":"\"}","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.dm"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.dm"}}},{"name":"string.unquoted.dm","begin":"@\\(([^)]+)\\)","end":"\\1","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.dm"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.dm"}}},{"name":"string.quoted.other.dm","begin":"@(.)","end":"\\1|$","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.dm"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.dm"}}},{"name":"meta.interpstring.dm","begin":"({\")","end":"(\"})","patterns":[{"include":"#string_escaped_char"},{"include":"#string_embedded_expression"},{"name":"string.quoted.triple.dm","match":"."}],"beginCaptures":{"0":{"name":"string.quoted.triple.dm"},"1":{"name":"punctuation.definition.string.begin.dm"}},"endCaptures":{"0":{"name":"string.quoted.triple.dm"},"1":{"name":"punctuation.definition.string.end.dm"}}},{"name":"meta.interpstring.dm","begin":"(\")","end":"(\"|[^\\\\]$)","patterns":[{"include":"#string_escaped_char"},{"include":"#string_embedded_expression"},{"name":"string.quoted.double.dm","match":"."}],"beginCaptures":{"0":{"name":"string.quoted.double.dm"},"1":{"name":"punctuation.definition.string.begin.dm"}},"endCaptures":{"0":{"name":"string.quoted.double.dm"},"1":{"name":"punctuation.definition.string.end.dm"}}},{"name":"string.quoted.single.dm","begin":"'","end":"'|[^\\\\]$","patterns":[{"name":"constant.character.escape.dm","match":"\\\\(.|\\n)"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.dm"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.dm"}}},{"name":"meta.preprocessor.macro.dm","begin":"(?x)\n^\\s* ((\\#)\\s*define) \\s+ # define\n((?\u003cid\u003e[a-zA-Z_][a-zA-Z0-9_]*)) # macro name\n(?:\n\t(\\()\n\t\t(\n\t\t\t\\s* \\g\u003cid\u003e \\s* # first argument\n\t\t\t((,) \\s* \\g\u003cid\u003e \\s*)* # additional arguments\n\t\t\t(?:\\.\\.\\.)? # varargs ellipsis?\n\t\t)\n\t(\\))\n)","end":"(?=(?://|/\\*))|(?\u003c!\\\\)(?=\\n)","patterns":[{"include":"$base"}],"beginCaptures":{"1":{"name":"keyword.control.directive.define.dm"},"2":{"name":"punctuation.definition.directive.dm"},"3":{"name":"entity.name.function.preprocessor.dm"},"5":{"name":"punctuation.definition.parameters.begin.dm"},"6":{"name":"variable.parameter.preprocessor.dm"},"8":{"name":"punctuation.separator.parameters.dm"},"9":{"name":"punctuation.definition.parameters.end.dm"}}},{"name":"meta.preprocessor.macro.dm","begin":"(?x)\n^\\s* ((\\#)\\s*define) \\s+ # define\n((?\u003cid\u003e[a-zA-Z_][a-zA-Z0-9_]*)) # macro name","end":"(?=(?://|/\\*))|(?\u003c!\\\\)(?=\\n)","patterns":[{"include":"$base"}],"beginCaptures":{"1":{"name":"keyword.control.directive.define.dm"},"2":{"name":"punctuation.definition.directive.dm"},"3":{"name":"variable.other.preprocessor.dm"}}},{"name":"meta.preprocessor.diagnostic.dm","begin":"^\\s*(#\\s*(error|warn))\\b","end":"$","patterns":[{"name":"punctuation.separator.continuation.dm","match":"(?\u003e\\\\\\s*\\n)"}],"captures":{"1":{"name":"keyword.control.import.error.dm"}}},{"name":"meta.preprocessor.diagnostic.dm","begin":"^\\s*(#\\s*pragma)\\b","end":"$","patterns":[{"name":"punctuation.separator.continuation.dm","match":"(?\u003e\\\\\\s*\\n)"}],"captures":{"1":{"name":"keyword.control.directive.pragma.dm"}}},{"name":"meta.preprocessor.dm","begin":"^\\s*(?:((#)\\s*(?:elif|else|if|ifdef|ifndef))|((#)\\s*(undef|include)))\\b","end":"(?=(?://|/\\*))|(?\u003c!\\\\)(?=\\n)","patterns":[{"name":"punctuation.separator.continuation.dm","match":"(?\u003e\\\\\\s*\\n)"}],"beginCaptures":{"1":{"name":"keyword.control.directive.conditional.dm"},"2":{"name":"punctuation.definition.directive.dm"},"3":{"name":"keyword.control.directive.$5.dm"},"4":{"name":"punctuation.definition.directive.dm"}}},{"include":"#block"},{"name":"meta.function.dm","begin":"(?x)\n\t\t\t\t(?: ^ # begin-of-line\n\t\t\t\t\t|\n\t\t\t\t\t\t (?: (?= \\s ) (?\u003c!else|new|return) (?\u003c=\\w) # or word + space before name\n\t\t\t\t\t\t\t | (?= \\s*[A-Za-z_] ) (?\u003c!\u0026\u0026) (?\u003c=[*\u0026\u003e]) # or type modifier before name\n\t\t\t\t\t\t )\n\t\t\t\t)\n\t\t\t\t(\\s*) (?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\s*\\()\n\t\t\t\t(\n\t\t\t\t\t(?: [A-Za-z_][A-Za-z0-9_]*+ | :: )++ | # actual name\n\t\t\t\t\t(?: (?\u003c=operator) (?: [-*\u0026\u003c\u003e=+!]+ | \\(\\) | \\[\\] ) ) # if it is a C++ operator\n\t\t\t\t)\n\t\t\t\t \\s*(?=\\()","end":"(?\u003c=\\})|(?=#)|(;)?","patterns":[{"include":"#comments"},{"include":"#parens"},{"name":"storage.modifier.dm","match":"\\bconst\\b"},{"include":"#block"}],"beginCaptures":{"1":{"name":"punctuation.whitespace.function.leading.dm"},"3":{"name":"entity.name.function.dm"},"4":{"name":"punctuation.definition.parameters.dm"}}}],"repository":{"access":{"name":"variable.other.dot-access.dm","match":"\\.[a-zA-Z_][a-zA-Z_0-9]*\\b(?!\\s*\\()"},"block":{"name":"meta.block.dm","begin":"\\{","end":"\\}","patterns":[{"include":"#block_innards"}]},"block_innards":{"patterns":[{"include":"#preprocessor-rule-enabled-block"},{"include":"#preprocessor-rule-disabled-block"},{"include":"#preprocessor-rule-other-block"},{"include":"#access"},{"name":"meta.function-call.dm","match":"(?x) (?: (?= \\s ) (?:(?\u003c=else|new|return) | (?\u003c!\\w)) (\\s+))?\n\t\t\t(\\b\n\t\t\t\t(?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\s*\\()(?:(?!NS)[A-Za-z_][A-Za-z0-9_]*+\\b | :: )++ # actual name\n\t\t\t)\n\t\t\t \\s*(\\()","captures":{"1":{"name":"punctuation.whitespace.function-call.leading.dm"},"2":{"name":"support.function.any-method.dm"},"3":{"name":"punctuation.definition.parameters.dm"}}},{"include":"#block"},{"include":"$base"}]},"comments":{"patterns":[{"name":"comment.block.dm","match":"^/\\* =(\\s*.*?)\\s*= \\*/$\\n?","captures":{"1":{"name":"meta.toc-list.banner.block.dm"}}},{"name":"comment.block.dm","begin":"/\\*","end":"\\*/","patterns":[{"include":"#comments"}],"captures":{"0":{"name":"punctuation.definition.comment.dm"}}},{"name":"invalid.illegal.stray-comment-end.dm","match":"\\*/.*\\n"},{"name":"comment.line.banner.dm","match":"^// =(\\s*.*?)\\s*=\\s*$\\n?","captures":{"1":{"name":"meta.toc-list.banner.line.dm"}}},{"name":"comment.line.double-slash.dm","begin":"//","end":"[^\\\\]$","patterns":[{"name":"punctuation.separator.continuation.dm","match":"(?\u003e\\\\\\s*\\n)"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.dm"}}}]},"disabled":{"begin":"^\\s*#\\s*if(n?def)?\\b.*$","end":"^\\s*#\\s*endif\\b","patterns":[{"include":"#disabled"}]},"parens":{"name":"meta.parens.dm","begin":"\\(","end":"\\)","patterns":[{"include":"$base"}]},"preprocessor-rule-disabled":{"begin":"^\\s*(#(if)\\s+(0+|FALSE)\\b).*","end":"^\\s*(#\\s*(endif)\\b)","patterns":[{"begin":"^\\s*(#\\s*(else)\\b)","end":"(?=^\\s*#\\s*endif\\b)","patterns":[{"include":"$base"}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.else.dm"}}},{"name":"comment.block.preprocessor.if-branch","end":"(?=^\\s*#\\s*(else|endif)\\b)","patterns":[{"include":"#disabled"}]}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.if.dm"},"3":{"name":"constant.numeric.preprocessor.dm"}}},"preprocessor-rule-disabled-block":{"begin":"^\\s*(#(if)\\s+(0+|FALSE)\\b).*","end":"^\\s*(#\\s*(endif)\\b)","patterns":[{"begin":"^\\s*(#\\s*(else)\\b)","end":"(?=^\\s*#\\s*endif\\b)","patterns":[{"include":"#block_innards"}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.else.dm"}}},{"name":"comment.block.preprocessor.if-branch.in-block","end":"(?=^\\s*#\\s*(else|endif)\\b)","patterns":[{"include":"#disabled"}]}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.if.dm"},"3":{"name":"constant.numeric.preprocessor.dm"}}},"preprocessor-rule-enabled":{"begin":"^\\s*(#(if)\\s+(0*1|TRUE)\\b)","end":"^\\s*(#\\s*(endif)\\b)","patterns":[{"contentName":"comment.block.preprocessor.else-branch","begin":"^\\s*(#\\s*(else)\\b).*","end":"(?=^\\s*#\\s*endif\\b)","patterns":[{"include":"#disabled"}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.else.dm"}}},{"end":"(?=^\\s*#\\s*(else|endif)\\b)","patterns":[{"include":"$base"}]}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.if.dm"},"3":{"name":"constant.numeric.preprocessor.dm"}}},"preprocessor-rule-enabled-block":{"begin":"^\\s*(#(if)\\s+(0*1|TRUE)\\b)","end":"^\\s*(#\\s*(endif)\\b)","patterns":[{"contentName":"comment.block.preprocessor.else-branch.in-block","begin":"^\\s*(#\\s*(else)\\b).*","end":"(?=^\\s*#\\s*endif\\b)","patterns":[{"include":"#disabled"}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.else.dm"}}},{"end":"(?=^\\s*#\\s*(else|endif)\\b)","patterns":[{"include":"#block_innards"}]}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.if.dm"},"3":{"name":"constant.numeric.preprocessor.dm"}}},"preprocessor-rule-other":{"begin":"^\\s*((#\\s*(if(n?def)?))\\b.*?(?:(?=(?://|/\\*))|$))","end":"^\\s*((#\\s*(endif))\\b)","patterns":[{"include":"$base"}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.dm"}}},"preprocessor-rule-other-block":{"begin":"^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))","end":"^\\s*(#\\s*(endif)\\b)","patterns":[{"include":"#block_innards"}],"captures":{"1":{"name":"meta.preprocessor.dm"},"2":{"name":"keyword.control.import.dm"}}},"string_embedded_expression":{"patterns":[{"name":"meta.interpolation.dm","begin":"(\\[)","end":"(\\])","patterns":[{"include":"#string_embedded_expression_2"},{"include":"$base"}],"beginCaptures":{"0":{"name":"string.quoted.other.dm"},"1":{"name":"punctuation.definition.string.end.dm"}},"endCaptures":{"0":{"name":"string.quoted.other.dm"},"1":{"name":"punctuation.definition.string.begin.dm"}}}]},"string_embedded_expression_2":{"begin":"(\\[)","end":"(\\])","patterns":[{"include":"#string_embedded_expression_2"},{"include":"$base"}]},"string_escaped_char":{"patterns":[{"name":"constant.character.escape.dm","match":"\\\\([Tt]he|[Aa]|[Aa]n|[Hh]e|[Ss]he|[Hh]is|him|himself|herself|hers|proper|improper|th|s|(icon|ref|[Rr]oman)(?=\\[)|\\.\\.\\.|t|n|\"|\\\\|\u003c|\u003e| |\n|\\[|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{6})"},{"name":"invalid.illegal.unknown-escape.dm","match":"\\\\."}]}}}
@@ -0,0 +1 @@
1
+ {"name":"Dml","scopeName":"source.dml","patterns":[{"include":"#preprocessor-rule-enabled"},{"include":"#preprocessor-rule-disabled"},{"include":"#preprocessor-rule-other"},{"include":"#comments"},{"name":"keyword.control.c","match":"\\b(break|case|continue|default|do|else|for|goto|if|_Pragma|return|switch|while|foreach|select|where)\\b"},{"name":"storage.type.c","match":"\\b(asm|__asm__|auto|bool|_Bool|char|_Complex|double|enum|float|_Imaginary|int|long|short|signed|struct|typedef|union|unsigned|void)\\b"},{"name":"storage.modifier.c","match":"\\b(const|extern|bank|register|field|restrict|static|volatile|layout|bitfields)\\b"},{"name":"keyword.control.dml","match":"\\b(#if|#else|connect|constant|device|dml|bank|bitorder|param|import|interface|loggroup|log|local|template|is|implement|method|independent|memoized|saved|startup|inline|event|attribute|throw|try|catch|nothrow|delete|group|port|size|sizeoftype|shared|#select|%header|%footer|subdevice|then|provisional)\\b"},{"name":"keyword.cast.types.dml","match":"\\b[a-zA-Z_][0-9a-zA-Z_]*_t\\b"},{"name":"constant.other.variable.mac-classic.c","match":"\\bk[A-Z]\\w*\\b"},{"name":"variable.other.readwrite.global.mac-classic.c","match":"\\bg[A-Z]\\w*\\b"},{"name":"variable.other.readwrite.static.mac-classic.c","match":"\\bs[A-Z]\\w*\\b"},{"name":"constant.language.c","match":"\\b(NULL|true|false|TRUE|FALSE)\\b"},{"name":"constant.language.c","match":"\\b(this)\\b"},{"include":"#sizeof"},{"name":"constant.numeric.c","match":"\\b((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f|ll|LL|ull|ULL)?\\b"},{"name":"constant.numeric.dml","match":"\\b(0(b|B)[0-1]+)\\b"},{"name":"string.quoted.double.c","begin":"\"","end":"\"","patterns":[{"include":"#string_escaped_char"},{"include":"#string_placeholder"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}}},{"name":"string.quoted.single.c","begin":"'","end":"'","patterns":[{"include":"#string_escaped_char"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}}},{"name":"meta.preprocessor.macro.c","begin":"(?x)\n \t\t^\\s*\\#\\s*(define)\\s+ # define\n \t\t((?\u003cid\u003e[a-zA-Z_][a-zA-Z0-9_]*)) # macro name\n \t\t(?: # and optionally:\n \t\t (\\() # an open parenthesis\n \t\t (\n \t\t \\s* \\g\u003cid\u003e \\s* # first argument\n \t\t ((,) \\s* \\g\u003cid\u003e \\s*)* # additional arguments\n \t\t (?:\\.\\.\\.)? # varargs ellipsis?\n \t\t )\n \t\t (\\)) # a close parenthesis\n \t\t)?\n \t","end":"(?=(?://|/\\*))|$","patterns":[{"name":"punctuation.separator.continuation.c","match":"(?\u003e\\\\\\s*\\n)"},{"include":"$base"}],"beginCaptures":{"1":{"name":"keyword.control.import.define.c"},"2":{"name":"entity.name.function.preprocessor.c"},"4":{"name":"punctuation.definition.parameters.c"},"5":{"name":"variable.parameter.preprocessor.c"},"7":{"name":"punctuation.separator.parameters.c"},"8":{"name":"punctuation.definition.parameters.c"}}},{"name":"meta.preprocessor.diagnostic.c","begin":"^\\s*#\\s*(error|warning)\\b","end":"$","patterns":[{"name":"punctuation.separator.continuation.c","match":"(?\u003e\\\\\\s*\\n)"}],"captures":{"1":{"name":"keyword.control.import.error.c"}}},{"name":"meta.preprocessor.c.include","begin":"^\\s*#\\s*(include|import)\\b\\s+","end":"(?=(?://|/\\*))|$","patterns":[{"name":"punctuation.separator.continuation.c","match":"(?\u003e\\\\\\s*\\n)"},{"name":"string.quoted.double.include.c","begin":"\"","end":"\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}}},{"name":"string.quoted.other.lt-gt.include.c","begin":"\u003c","end":"\u003e","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c"}}}],"captures":{"1":{"name":"keyword.control.import.include.c"}}},{"include":"#pragma-mark"},{"name":"meta.preprocessor.c","begin":"^\\s*#\\s*(define|defined|elif|else|if|ifdef|ifndef|line|pragma|undef)\\b","end":"(?=(?://|/\\*))|$","patterns":[{"name":"punctuation.separator.continuation.c","match":"(?\u003e\\\\\\s*\\n)"}],"captures":{"1":{"name":"keyword.control.import.c"}}},{"name":"support.type.sys-types.c","match":"\\b(u_char|u_short|u_int|u_long|ushort|uint|u_quad_t|quad_t|qaddr_t|caddr_t|daddr_t|dev_t|fixpt_t|blkcnt_t|blksize_t|gid_t|in_addr_t|in_port_t|ino_t|key_t|mode_t|nlink_t|id_t|pid_t|off_t|segsz_t|swblk_t|uid_t|id_t|clock_t|size_t|ssize_t|time_t|useconds_t|suseconds_t)\\b"},{"name":"support.type.pthread.c","match":"\\b(pthread_attr_t|pthread_cond_t|pthread_condattr_t|pthread_mutex_t|pthread_mutexattr_t|pthread_once_t|pthread_rwlock_t|pthread_rwlockattr_t|pthread_t|pthread_key_t)\\b"},{"name":"support.type.stdint.c","match":"\\b(int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|int_least8_t|int_least16_t|int_least32_t|int_least64_t|uint_least8_t|uint_least16_t|uint_least32_t|uint_least64_t|int_fast8_t|int_fast16_t|int_fast32_t|int_fast64_t|uint_fast8_t|uint_fast16_t|uint_fast32_t|uint_fast64_t|intptr_t|uintptr_t|intmax_t|intmax_t|uintmax_t|uintmax_t)\\b"},{"name":"keyword.type.stdint.dml","match":"\\b([u]?int([0-9]|[1-5][0-9]|6[0-4]))\\b"},{"name":"support.type.stdint.dml","match":"\\b([u]?int(8|16|24|32|40|48|56|64)_(be|le)_t)\\b"},{"name":"support.constant.mac-classic.c","match":"\\b(noErr|kNilOptions|kInvalidID|kVariableLengthArray)\\b"},{"name":"support.type.mac-classic.c","match":"\\b(AbsoluteTime|Boolean|Byte|ByteCount|ByteOffset|BytePtr|CompTimeValue|ConstLogicalAddress|ConstStrFileNameParam|ConstStringPtr|Duration|Fixed|FixedPtr|Float32|Float32Point|Float64|Float80|Float96|FourCharCode|Fract|FractPtr|Handle|ItemCount|LogicalAddress|OptionBits|OSErr|OSStatus|OSType|OSTypePtr|PhysicalAddress|ProcessSerialNumber|ProcessSerialNumberPtr|ProcHandle|Ptr|ResType|ResTypePtr|ShortFixed|ShortFixedPtr|SignedByte|SInt16|SInt32|SInt64|SInt8|Size|StrFileName|StringHandle|StringPtr|TimeBase|TimeRecord|TimeScale|TimeValue|TimeValue64|UInt16|UInt32|UInt64|UInt8|UniChar|UniCharCount|UniCharCountPtr|UniCharPtr|UnicodeScalarValue|UniversalProcHandle|UniversalProcPtr|UnsignedFixed|UnsignedFixedPtr|UnsignedWide|UTF16Char|UTF32Char|UTF8Char)\\b"},{"include":"#block"},{"name":"meta.function.c","begin":"(?x)\n \t\t(?: ^ # begin-of-line\n \t\t |\n \t\t (?: (?= \\s ) (?\u003c!else|new|return) (?\u003c=\\w) # or word + space before name\n \t\t | (?= \\s*[A-Za-z_] ) (?\u003c!\u0026\u0026) (?\u003c=[*\u0026\u003e]) # or type modifier before name\n \t\t )\n \t\t)\n \t\t(\\s*) (?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\s*\\()\n \t\t(\n \t\t\t(?: [A-Za-z_][A-Za-z0-9_]*+ | :: )++ | # actual name\n \t\t\t(?: (?\u003c=operator) (?: [-*\u0026\u003c\u003e=+!]+ | \\(\\) | \\[\\] ) ) # if it is a C++ operator\n \t\t)\n \t\t \\s*(?=\\()","end":"(?\u003c=\\})|(?=#)|(;)","patterns":[{"include":"#comments"},{"include":"#parens"},{"name":"storage.modifier.c","match":"\\bconst\\b"},{"include":"#block"}],"beginCaptures":{"1":{"name":"punctuation.whitespace.function.leading.c"},"3":{"name":"entity.name.function.c"},"4":{"name":"punctuation.definition.parameters.c"}}}],"repository":{"access":{"name":"variable.other.dot-access.c","match":"\\.[a-zA-Z_][a-zA-Z_0-9]*\\b(?!\\s*\\()"},"block":{"name":"meta.block.c","begin":"\\{","end":"\\}","patterns":[{"include":"#block_innards"}]},"block_innards":{"patterns":[{"include":"#preprocessor-rule-enabled-block"},{"include":"#preprocessor-rule-disabled-block"},{"include":"#preprocessor-rule-other-block"},{"include":"#sizeof"},{"include":"#access"},{"match":"(\\s*)\\b(hypot(f|l)?|s(scanf|ystem|nprintf|ca(nf|lb(n(f|l)?|ln(f|l)?))|i(n(h(f|l)?|f|l)?|gn(al|bit))|tr(s(tr|pn)|nc(py|at|mp)|c(spn|hr|oll|py|at|mp)|to(imax|d|u(l(l)?|max)|k|f|l(d|l)?)|error|pbrk|ftime|len|rchr|xfrm)|printf|et(jmp|vbuf|locale|buf)|qrt(f|l)?|w(scanf|printf)|rand)|n(e(arbyint(f|l)?|xt(toward(f|l)?|after(f|l)?))|an(f|l)?)|c(s(in(h(f|l)?|f|l)?|qrt(f|l)?)|cos(h(f)?|f|l)?|imag(f|l)?|t(ime|an(h(f|l)?|f|l)?)|o(s(h(f|l)?|f|l)?|nj(f|l)?|pysign(f|l)?)|p(ow(f|l)?|roj(f|l)?)|e(il(f|l)?|xp(f|l)?)|l(o(ck|g(f|l)?)|earerr)|a(sin(h(f|l)?|f|l)?|cos(h(f|l)?|f|l)?|tan(h(f|l)?|f|l)?|lloc|rg(f|l)?|bs(f|l)?)|real(f|l)?|brt(f|l)?)|t(ime|o(upper|lower)|an(h(f|l)?|f|l)?|runc(f|l)?|gamma(f|l)?|mp(nam|file))|i(s(space|n(ormal|an)|cntrl|inf|digit|u(nordered|pper)|p(unct|rint)|finite|w(space|c(ntrl|type)|digit|upper|p(unct|rint)|lower|al(num|pha)|graph|xdigit|blank)|l(ower|ess(equal|greater)?)|al(num|pha)|gr(eater(equal)?|aph)|xdigit|blank)|logb(f|l)?|max(div|abs))|di(v|fftime)|_Exit|unget(c|wc)|p(ow(f|l)?|ut(s|c(har)?|wc(har)?)|error|rintf)|e(rf(c(f|l)?|f|l)?|x(it|p(2(f|l)?|f|l|m1(f|l)?)?))|v(s(scanf|nprintf|canf|printf|w(scanf|printf))|printf|f(scanf|printf|w(scanf|printf))|w(scanf|printf)|a_(start|copy|end|arg))|qsort|f(s(canf|e(tpos|ek))|close|tell|open|dim(f|l)?|p(classify|ut(s|c|w(s|c))|rintf)|e(holdexcept|set(e(nv|xceptflag)|round)|clearexcept|testexcept|of|updateenv|r(aiseexcept|ror)|get(e(nv|xceptflag)|round))|flush|w(scanf|ide|printf|rite)|loor(f|l)?|abs(f|l)?|get(s|c|pos|w(s|c))|re(open|e|ad|xp(f|l)?)|m(in(f|l)?|od(f|l)?|a(f|l|x(f|l)?)?))|l(d(iv|exp(f|l)?)|o(ngjmp|cal(time|econv)|g(1(p(f|l)?|0(f|l)?)|2(f|l)?|f|l|b(f|l)?)?)|abs|l(div|abs|r(int(f|l)?|ound(f|l)?))|r(int(f|l)?|ound(f|l)?)|gamma(f|l)?)|w(scanf|c(s(s(tr|pn)|nc(py|at|mp)|c(spn|hr|oll|py|at|mp)|to(imax|d|u(l(l)?|max)|k|f|l(d|l)?|mbs)|pbrk|ftime|len|r(chr|tombs)|xfrm)|to(b|mb)|rtomb)|printf|mem(set|c(hr|py|mp)|move))|a(s(sert|ctime|in(h(f|l)?|f|l)?)|cos(h(f|l)?|f|l)?|t(o(i|f|l(l)?)|exit|an(h(f|l)?|2(f|l)?|f|l)?)|b(s|ort))|g(et(s|c(har)?|env|wc(har)?)|mtime)|r(int(f|l)?|ound(f|l)?|e(name|alloc|wind|m(ove|quo(f|l)?|ainder(f|l)?))|a(nd|ise))|b(search|towc)|m(odf(f|l)?|em(set|c(hr|py|mp)|move)|ktime|alloc|b(s(init|towcs|rtowcs)|towc|len|r(towc|len))))\\b","captures":{"1":{"name":"punctuation.whitespace.support.function.leading.c"},"2":{"name":"support.function.C99.c"}}},{"name":"meta.function-call.c","match":"(?x) (?: (?= \\s ) (?:(?\u003c=else|new|return) | (?\u003c!\\w)) (\\s+))?\n\t\t\t(\\b\n\t\t\t\t(?!(while|for|do|if|else|switch|catch|enumerate|return|r?iterate)\\s*\\()(?:(?!NS)[A-Za-z_][A-Za-z0-9_]*+\\b | :: )++ # actual name\n\t\t\t)\n\t\t\t \\s*(\\()","captures":{"1":{"name":"punctuation.whitespace.function-call.leading.c"},"2":{"name":"support.function.any-method.c"},"3":{"name":"punctuation.definition.parameters.c"}}},{"name":"meta.initialization.c","match":"(?x)\n\t\t\t (?x)\n\t\t\t(?:\n\t\t\t (?: (?= \\s ) (?\u003c!else|new|return) (?\u003c=\\w)\\s+ # or word + space before name\n\t\t\t )\n\t\t\t)\n\t\t\t(\n\t\t\t\t(?: [A-Za-z_][A-Za-z0-9_]*+ | :: )++ | # actual name\n\t\t\t\t(?: (?\u003c=operator) (?: [-*\u0026\u003c\u003e=+!]+ | \\(\\) | \\[\\] ) )? # if it is a C++ operator\n\t\t\t)\n\t\t\t \\s*(\\()","captures":{"1":{"name":"variable.other.c"},"2":{"name":"punctuation.definition.parameters.c"}}},{"include":"#block"},{"include":"$base"}]},"comments":{"patterns":[{"name":"comment.block.c","match":"^/\\* =(\\s*.*?)\\s*= \\*/$\\n?","captures":{"1":{"name":"meta.toc-list.banner.block.c"}}},{"name":"comment.block.c","begin":"/\\*","end":"\\*/","captures":{"0":{"name":"punctuation.definition.comment.c"}}},{"name":"invalid.illegal.stray-comment-end.c","match":"\\*/.*\\n"},{"name":"comment.line.banner.c++","match":"^// =(\\s*.*?)\\s*=\\s*$\\n?","captures":{"1":{"name":"meta.toc-list.banner.line.c"}}},{"name":"comment.line.double-slash.c++","begin":"//","end":"$\\n?","patterns":[{"name":"punctuation.separator.continuation.c++","match":"(?\u003e\\\\\\s*\\n)"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.c"}}}]},"disabled":{"begin":"^\\s*#\\s*if(n?def)?\\b.*$","end":"^\\s*#\\s*endif\\b.*$","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]},"parens":{"name":"meta.parens.c","begin":"\\(","end":"\\)","patterns":[{"include":"$base"}]},"pragma-mark":{"name":"meta.section","match":"^\\s*(#\\s*(pragma\\s+mark)\\s+(.*))","captures":{"1":{"name":"meta.preprocessor.c"},"2":{"name":"keyword.control.import.pragma.c"},"3":{"name":"meta.toc-list.pragma-mark.c"}}},"preprocessor-rule-disabled":{"begin":"^\\s*(#(if)\\s+(0)\\b).*","end":"^\\s*(#\\s*(endif)\\b)","patterns":[{"begin":"^\\s*(#\\s*(else)\\b)","end":"(?=^\\s*#\\s*endif\\b.*$)","patterns":[{"include":"$base"}],"captures":{"1":{"name":"meta.preprocessor.c"},"2":{"name":"keyword.control.import.else.c"}}},{"name":"comment.block.preprocessor.if-branch","end":"(?=^\\s*#\\s*(else|endif)\\b.*$)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}],"captures":{"1":{"name":"meta.preprocessor.c"},"2":{"name":"keyword.control.import.if.c"},"3":{"name":"constant.numeric.preprocessor.c"}}},"preprocessor-rule-disabled-block":{"begin":"^\\s*(#(if)\\s+(0)\\b).*","end":"^\\s*(#\\s*(endif)\\b)","patterns":[{"begin":"^\\s*(#\\s*(else)\\b)","end":"(?=^\\s*#\\s*endif\\b.*$)","patterns":[{"include":"#block_innards"}],"captures":{"1":{"name":"meta.preprocessor.c"},"2":{"name":"keyword.control.import.else.c"}}},{"name":"comment.block.preprocessor.if-branch.in-block","end":"(?=^\\s*#\\s*(else|endif)\\b.*$)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}]}],"captures":{"1":{"name":"meta.preprocessor.c"},"2":{"name":"keyword.control.import.if.c"},"3":{"name":"constant.numeric.preprocessor.c"}}},"preprocessor-rule-enabled":{"begin":"^\\s*(#(if)\\s+(0*1)\\b)","end":"^\\s*(#\\s*(endif)\\b)","patterns":[{"contentName":"comment.block.preprocessor.else-branch","begin":"^\\s*(#\\s*(else)\\b).*","end":"(?=^\\s*#\\s*endif\\b.*$)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}],"captures":{"1":{"name":"meta.preprocessor.c"},"2":{"name":"keyword.control.import.else.c"}}},{"end":"(?=^\\s*#\\s*(else|endif)\\b.*$)","patterns":[{"include":"$base"}]}],"captures":{"1":{"name":"meta.preprocessor.c"},"2":{"name":"keyword.control.import.if.c"},"3":{"name":"constant.numeric.preprocessor.c"}}},"preprocessor-rule-enabled-block":{"begin":"^\\s*(#(if)\\s+(0*1)\\b)","end":"^\\s*(#\\s*(endif)\\b)","patterns":[{"contentName":"comment.block.preprocessor.else-branch.in-block","begin":"^\\s*(#\\s*(else)\\b).*","end":"(?=^\\s*#\\s*endif\\b.*$)","patterns":[{"include":"#disabled"},{"include":"#pragma-mark"}],"captures":{"1":{"name":"meta.preprocessor.c"},"2":{"name":"keyword.control.import.else.c"}}},{"end":"(?=^\\s*#\\s*(else|endif)\\b.*$)","patterns":[{"include":"#block_innards"}]}],"captures":{"1":{"name":"meta.preprocessor.c"},"2":{"name":"keyword.control.import.if.c"},"3":{"name":"constant.numeric.preprocessor.c"}}},"preprocessor-rule-other":{"begin":"^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))","end":"^\\s*(#\\s*(endif)\\b).*$","patterns":[{"include":"$base"}],"captures":{"1":{"name":"meta.preprocessor.c"},"2":{"name":"keyword.control.import.c"}}},"preprocessor-rule-other-block":{"begin":"^\\s*(#\\s*(if(n?def)?)\\b.*?(?:(?=(?://|/\\*))|$))","end":"^\\s*(#\\s*(endif)\\b).*$","patterns":[{"include":"#block_innards"}],"captures":{"1":{"name":"meta.preprocessor.c"},"2":{"name":"keyword.control.import.c"}}},"sizeof":{"name":"keyword.operator.sizeof.c","match":"\\b(sizeof)\\b"},"string_escaped_char":{"patterns":[{"name":"constant.character.escape.c","match":"\\\\(\\\\|[abefnprtv'\"?]|[0-3]\\d{,2}|[4-7]\\d?|x[a-fA-F0-9]{,2}|u[a-fA-F0-9]{,4}|U[a-fA-F0-9]{,8})"},{"name":"invalid.illegal.unknown-escape.c","match":"\\\\."}]},"string_placeholder":{"patterns":[{"name":"constant.other.placeholder.c","match":"(?x)%\n \t\t\t\t\t\t(\\d+\\$)? # field (argument #)\n \t\t\t\t\t\t[#0\\- +']* # flags\n \t\t\t\t\t\t[,;:_]? # separator character (AltiVec)\n \t\t\t\t\t\t((-?\\d+)|\\*(-?\\d+\\$)?)? # minimum field width\n \t\t\t\t\t\t(\\.((-?\\d+)|\\*(-?\\d+\\$)?)?)? # precision\n \t\t\t\t\t\t(hh|h|ll|l|j|t|z|q|L|vh|vl|v|hv|hl)? # length modifier\n \t\t\t\t\t\t[diouxXDOUeEfFgGaACcSspn%] # conversion type\n \t\t\t\t\t"},{"name":"invalid.illegal.placeholder.c","match":"%"}]}}}
@@ -0,0 +1 @@
1
+ {"name":"dune-project","scopeName":"source.dune-project","patterns":[{"include":"#stanzas"},{"include":"source.dune#general"}],"repository":{"opam-metadata":{"patterns":[{"contentName":"constant.language.dune-project","begin":"\\([[:space:]]*(license)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(authors|maintainers)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(source)\\b","end":"\\)","patterns":[{"contentName":"string.other.line.dune-project","begin":"\\([[:space:]]*(bitbucket|github|gitlab|sourcehut)\\b","end":"\\)","patterns":[{"name":"keyword.language.dune-project","match":"/"},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(uri)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(bug_reports|homepage|documentation)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(maintenance_intent)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}}]},"stanzas":{"patterns":[{"begin":"\\([[:space:]]*(lang)[[:space:]]+(dune)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"},"2":{"name":"keyword.language.dune-project"}}},{"contentName":"variable.other.declaration.dune-project","begin":"\\([[:space:]]*(name)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"contentName":"constant.language.dune-project","begin":"\\([[:space:]]*(version)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(implicit_transitive_deps)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(wrapped_executables)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"match":"\\([[:space:]]*(explicit_js_mode)[[:space:]]*\\)","captures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(dialect)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune-project","begin":"\\([[:space:]]*(name)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(implementation|interface)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(extension|preprocess|format)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(formatting)\\b","end":"\\)","patterns":[{"name":"constant.language.dune-project","match":"\\b(disabled)\\b"},{"begin":"\\([[:space:]]*(enabled_for)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(generate_opam_files)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(package)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune-project","begin":"\\([[:space:]]*(name)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"contentName":"constant.language.dune-project","begin":"\\([[:space:]]*(version)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(synopsis|description)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(depends|conflicts|depopts)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune-project","match":"\\b([[:word:]-]+)\\b"},{"begin":"\\([[:space:]]*([[:word:]-]+)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"variable.other.declaration.dune-project"}}},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"contentName":"variable.other.declaration.dune-project","begin":"\\([[:space:]]*(tags)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(deprecated_package_names)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(allow_empty)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"include":"#opam-metadata"},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(using)([[:space:]]+menhir)?\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"},"2":{"name":"variable.other.declaration.dune-project"}}},{"contentName":"variable.other.declaration.dune-project","begin":"\\([[:space:]]*(cram)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(accept_alternative_dune_file_name)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(executables_implicit_empty_intf)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(expand_aliases_in_sandbox)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(opam_file_location)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune-project","match":"\\b(relative_to_project|inside_opam_directory)\\b"},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(subst)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune-project","match":"\\b(enabled|disabled)\\b"},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(use_standard_c_and_cxx_flags)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(map_workspace_root)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(warnings)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(maintenance_intent)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(pin)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(url)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"begin":"\\([[:space:]]*(package)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune-project","begin":"\\([[:space:]]*(name)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"contentName":"constant.language.dune-project","begin":"\\([[:space:]]*(version)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-project"}}},{"include":"#opam-metadata"}]}}}
@@ -0,0 +1 @@
1
+ {"name":"dune-workspace","scopeName":"source.dune-workspace","patterns":[{"include":"#stanzas"},{"include":"source.dune#general"}],"repository":{"stanzas":{"patterns":[{"begin":"\\([[:space:]]*(lang)[[:space:]]+(dune)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"},"2":{"name":"keyword.language.dune-workspace"}}},{"contentName":"variable.other.declaration.dune-project","begin":"\\([[:space:]]*(profile)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(env)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(lock_dir)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(path)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(repositories)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(solver_env)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(unset_variables)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(pins)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(version_preference)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune-project","match":"\\b(newest|oldest)\\b"},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(constraints)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(depopts)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(pin)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(url)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(package)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune-project","begin":"\\([[:space:]]*(name)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"contentName":"constant.language.dune-project","begin":"\\([[:space:]]*(version)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(repository)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune-project","begin":"\\([[:space:]]*(name)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(url)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(context)\\b","end":"\\)","patterns":[{"name":"keyword.language.dune-workspace","match":"\\b(default)\\b"},{"begin":"\\([[:space:]]*(opam|default)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(switch)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(name)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(root)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(merlin)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(profile)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(env)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(toolchain)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(host)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(paths)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(fdo)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(disable_dynamically_linked_foreign_archives)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(targets)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(action_stderr_on_success|action_stdout_on_success)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune-project","match":"\\b(print|swallow|must-be-empty)\\b"},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(cache-check-probability)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(cache-storage-mode)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune-project","match":"\\b(auto|hardlink|copy)\\b"},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(cache)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune-project","match":"\\b(enabled|disabled)\\b"},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(jobs)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune-project","match":"\\b(auto)\\b"},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(display)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune-project","match":"\\b(progress|verbose|short|quiet)\\b"},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(sandboxing_preference)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune-project","match":"\\b(none|hardlink|copy|symlink)\\b"},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(terminal-persistence)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune-project","match":"\\b(preserve|clear-on-rebuild-and-flush-history|clear-on-rebuild)\\b"},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"begin":"\\([[:space:]]*(project_defaults)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(authors|maintainers)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"contentName":"constant.language.dune-project","begin":"\\([[:space:]]*(license)\\b","end":"\\)","patterns":[{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}},{"include":"source.dune#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune-workspace"}}}]}}}
@@ -1 +1 @@
1
- {"name":"Dune","scopeName":"source.dune","patterns":[{"include":"#comments"},{"name":"meta.stanza.dune","begin":"\\(\\s*(lang|using|library|rule|executable|executables|rule|ocamllex|ocamlyacc|menhir|install|alias|copy_files|copy_files#|jbuild_version|include)\\s","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"meta.class.stanza.dune"}}},{"name":"meta.stanza.library.field.dune","begin":"\\(\\s*(name|public_name|synopsis|install_c_headers|ppx_runtime_libraries|c_flags|cxx_flags|c_names|cxx_names|library_flags|c_library_flags|virtual_deps|modes|kind|wrapped|optional|self_build_stubs_archive|no_dynlink|ppx\\.driver)\\s","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.dune"}}},{"name":"meta.stanza.rule.dune","begin":"\\(\\s*(targets|deps|locks|loc|mode|action)\\s","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.dune"}}},{"name":"meta.mono-sexp.dune","match":"\\(\\s*(fallback|optional)\\s*\\)","captures":{"1":{"name":"keyword.other.dune"}}},{"name":"meta.stanza.rule.action.dune","begin":"\\(\\s*(run|chdir|setenv|with-stdout-to|with-stderr-to|with-outputs-to|ignore-stdout|ignore-stderr|ignore-outputs|progn|echo|cat|copy|copy#|system|bash|write-file|diff|diff\\?)\\s","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"entity.name.function.action.dune"}}},{"name":"meta.stanza.install.dune","begin":"\\(\\s*(section)\\s","end":"\\)","patterns":[{"name":"constant.language.rule.mode.dune","match":"\\b(lib|libexec|bin|sbin|toplevel|share|share_root|etc|doc|stublibs|man|misc)\\b"}],"beginCaptures":{"1":{"name":"keyword.other.dune"}}},{"name":"meta.stanza.install.dune","begin":"\\(\\s*(files)\\s","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.dune"}}},{"name":"meta.library.kind.dune","begin":"\\(\\s*(normal|ppx_deriver|ppx_rewriter)\\s","end":"\\)","beginCaptures":{"1":{"name":"constant.language.rule.mode.dune"}}},{"name":"meta.stanza.executables.dune","begin":"\\(\\s*(name|link_executables|link_flags|modes)\\s","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.dune"}}},{"name":"meta.stanza.lib-or-exec.buildable.dune","begin":"\\(\\s*(preprocess|preprocessor_deps|lint|modules|modules_without_implementation|libraries|flags|ocamlc_flags|ocamlopt_flags|js_of_ocaml|allow_overlapping_dependencies|per_module)\\s","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.dune"}}},{"name":"meta.stanza.lib-or-exec.buildable.preprocess.dune","begin":"\\(\\s*(no_preprocessing|action|pps)\\s","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.dune"}}},{"name":"meta.stanza.lib-or-exec.buildable.preprocess_deps.dune","begin":"\\(\\s*(file|alias|alias_rec|glob_files|files_recursively_in)\\s","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.dune"}}},{"name":"meta.stanza.lib-or-exec.buildable.libraries.dune","begin":"\\(\\s*(select)\\s","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.dune"}}},{"name":"constant.numeric.dune","match":"\\b\\d+\\b"},{"name":"constant.language.dune","match":"(true|false)"},{"name":"keyword.other.dune","match":"\\s(as|from|-\u003e)\\s"},{"name":"keyword.other.dune","match":"(\\!)"},{"name":"constant.language.flag.dune","match":"(:\\w+)\\b"},{"name":"constant.language.rule.mode.dune","match":"\\b(standard|fallback|promote|promote-until-then)\\b"},{"include":"#string"},{"include":"#variable"},{"include":"#list"},{"include":"#atom"}],"repository":{"atom":{"patterns":[{"name":"meta.atom.dune","match":"\\b[^\\s]+\\b"}]},"comment-inner":{"patterns":[{"name":"comment.sexp.inner.dune","begin":"\\(","end":"\\)","patterns":[{"include":"#comment-inner"}]}]},"comments":{"patterns":[{"name":"comment.block.dune","begin":"#\\|","end":"\\|#","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.dune"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.dune"}}},{"name":"comment.sexp.dune","begin":"#;\\s*\\(","end":"\\)","patterns":[{"include":"#comment-inner"}]},{"name":"comment.line.dune","match":";.*$"}]},"list":{"patterns":[{"name":"meta.list.dune","begin":"(\\()","end":"(\\))","patterns":[{"include":"$self"}],"captures":{"1":{"name":"entity.tag.list.parenthesis.dune"}}}]},"string":{"patterns":[{"name":"string.quoted.double.dune","begin":"(?=[^\\\\])(\")","end":"(\")","patterns":[{"name":"constant.character.string.escape.dune","match":"\\\\\""},{"include":"#variable"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.dune"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.dune"}}}]},"variable":{"patterns":[{"name":"variable.other.dune","match":"\\${[^}]*}"}]}}}
1
+ {"name":"dune","scopeName":"source.dune","patterns":[{"include":"#stanzas"},{"include":"#general"}],"repository":{"action":{"patterns":[{"begin":"\\([[:space:]]*(with-stdout-to|with-stdin-from|with-stderr-to|with-outputs-to)\\b","end":"\\)","patterns":[{"include":"#action"},{"include":"#general"}],"beginCaptures":{"1":{"name":"entity.name.function.action.dune"}}},{"begin":"\\([[:space:]]*(ignore-stdout-to|ignore-stderr-to|ignore-outputs-to)\\b","end":"\\)","patterns":[{"include":"#action"},{"include":"#general"}],"beginCaptures":{"1":{"name":"entity.name.function.action.dune"}}},{"begin":"\\([[:space:]]*(run|dynamic_run)\\b","end":"\\)","patterns":[{"include":"#action"},{"include":"#general"}],"beginCaptures":{"1":{"name":"entity.name.function.action.dune"}}},{"begin":"\\([[:space:]]*(with-accepted-exit-codes)\\b","end":"\\)","patterns":[{"include":"#action"},{"include":"#general"}],"beginCaptures":{"1":{"name":"entity.name.function.action.dune"}}},{"begin":"\\([[:space:]]*(chdir|setenv)\\b","end":"\\)","patterns":[{"include":"#action"},{"include":"#general"}],"beginCaptures":{"1":{"name":"entity.name.function.action.dune"}}},{"begin":"\\([[:space:]]*(progn|echo|write-file|cat|copy|copy\\#)\\b","end":"\\)","patterns":[{"include":"#action"},{"include":"#general"}],"beginCaptures":{"1":{"name":"entity.name.function.action.dune"}}},{"begin":"\\([[:space:]]*(system|bash|diff|diff\\?|cmp|no-infer)\\b","end":"\\)","patterns":[{"include":"#action"},{"include":"#general"}],"beginCaptures":{"1":{"name":"entity.name.function.action.dune"}}},{"begin":"\\([[:space:]]*(pipe-stdout|pipe-stderr|pipe-outputs)\\b","end":"\\)","patterns":[{"include":"#action"},{"include":"#general"}],"beginCaptures":{"1":{"name":"entity.name.function.action.dune"}}},{"include":"#general"}]},"ctypes":{"patterns":[{"begin":"\\([[:space:]]*(ctypes)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(external_library_name)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(type_description)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(instance)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(functor)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(function_description)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(instance)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(functor)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(concurrency)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune","match":"\\b(sequential|unlocked|lwt_jobs|lwt_preemptive)\\b"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(errno_policy)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune","match":"\\b(ignore_errno|return_errno)\\b"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(build_flags_resolver)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune","match":"\\b(pkg_config)\\b"},{"begin":"\\([[:space:]]*(vendored)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(c_flags|c_library_flags)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(generated_types)\\b","end":"\\)","beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(generated_entry_point)\\b","end":"\\)","beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(headers)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(include)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(preamble)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(deps)\\b","end":"\\)","patterns":[{"include":"#dependencies"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}}]},"dependencies":{"patterns":[{"begin":"\\([[:space:]]*(:[[:word:]]+\\b)","end":"\\)","patterns":[{"include":"#deps"},{"include":"#general"}],"beginCaptures":{"1":{"name":"entity.name.function.action.dune"}}},{"include":"#deps"}]},"deps":{"patterns":[{"begin":"\\([[:space:]]*(file)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(alias)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(alias_rec)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(glob_files)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(source_tree)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(universe)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(package)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(env_var)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(sandbox)\\b","end":"\\)","patterns":[{"name":"constant.language.dune","match":"\\b(always|none|preserve_file_kind)\\b"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}]},"general":{"patterns":[{"name":"comment.line.dune","begin":";","end":"$"},{"name":"string.quoted.line.dune","begin":"\"\\\\\\|","end":"$","patterns":[{"include":"#escape-characters"}]},{"name":"string.quoted.line.dune","begin":"\"\\\\\u003e","end":"$"},{"name":"string.quoted.double.dune","begin":"\"","end":"\"","patterns":[{"include":"#escape-characters"}]},{"name":"entity.name.function.action.dune","match":"(:[[:word:]_-]+)\\b"},{"name":"constant.numeric.dune","match":"\\b([[:digit:]](\\.[[:digit:]]+)+)\\b"},{"name":"constant.language.dune","match":"\\b(true|false)\\b"},{"begin":"%\\{","end":"\\}","patterns":[{"include":"#variables"}],"beginCaptures":{"0":{"name":"keyword.operator.dune"}},"endCaptures":{"0":{"name":"keyword.operator.dune"}}},{"begin":"\\([[:space:]]*(=|\u003c\u003e|\u003e=|\u003c=|\u003c|\u003e)","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.operator.dune"}}},{"begin":"\\([[:space:]]*(and|or|not)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"entity.name.function.action.dune"}}},{"begin":"\\(","end":"\\)","patterns":[{"name":"keyword.operator.dune","match":"/"},{"include":"#general"}]}],"repository":{"escape-characters":{"patterns":[{"name":"constant.character.escape.dune","match":"\\\\$"},{"name":"constant.character.escape.dune","match":"\\\\(n|r|b|t|\\\\|\")"},{"name":"constant.character.escape.dune","match":"\\\\[[:digit:]]{3}"},{"name":"constant.character.escape.dune","match":"\\\\x[[:xdigit:]]{2}"},{"begin":"(\\%\\{)","end":"(\\})","patterns":[{"include":"#variables"}],"beginCaptures":{"0":{"name":"constant.character.escape.dune"}},"endCaptures":{"0":{"name":"constant.character.escape.dune"}}}]},"variables":{"patterns":[{"name":"keyword.operator.variable.dune","match":":"},{"name":"keyword.operator.variable.dune","match":"="},{"name":"constant.language.variable.action.dune","match":"\\^"},{"name":"constant.language.variable.dune","match":"(?\u003c=\\{)(project_root|workspace_root|profile|context_name)(?=\\})"},{"name":"constant.language.variable.dune","match":"(?\u003c=\\{)(CC|CXX)(?=\\})"},{"name":"constant.language.variable.dune","match":"(?\u003c=\\{)(ocaml_bin|ocaml|ocamlc|ocamlopt|ocaml_version|ocaml_where)(?=\\})"},{"name":"constant.language.variable.dune","match":"(?\u003c=\\{)(ext_obj|ext_asm|ext_lib|ext_dll|ext_exe|ext_plugin)(?=\\})"},{"name":"constant.language.variable.dune","match":"(?\u003c=\\{)(arch_sixtyfour|architecture|os_type|model|system)(?=\\})"},{"name":"constant.language.variable.action.dune","match":"(?\u003c=\\{)(target|targets|deps)(?=\\})"},{"name":"constant.language.variable.dune","match":"(?\u003c=\\{)(null)(?=\\})"},{"name":"constant.language.variable.dune","match":"(?\u003c=\\{)(ignoring_promoted_rule)(?=\\})"},{"name":"constant.language.variable.dune","match":"(?\u003c=\\{)(ocaml-config)(?=:)"},{"name":"constant.language.variable.dune","match":"(?\u003c=\\{)(env)(?=:)"},{"name":"constant.language.variable.dune","match":"(?\u003c=\\{)(version)(?=:)"},{"name":"constant.language.variable.dune","match":"(?\u003c=\\{)(cmo|cmi|cma|cmx|cmxa)(?=:)"},{"name":"constant.language.variable.action.dune","match":"(?\u003c=\\{)(dep|exe|bin|bin-available|lib|lib-private|libexec|libexec-private|lib-available)(?=:)"},{"name":"constant.language.variable.action.dune","match":"(?\u003c=\\{)(read|read-lines|read-strings)(?=:)"}]}}},"js_of_ocaml":{"begin":"\\([[:space:]]*(js_of_ocaml)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(javascript_files|wasm_files|flags|build_runtime_flags|link_flags|enabled_if|compilation_mode|sourcemap)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},"library":{"patterns":[{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(name|public_name|package)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(synopsis)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(modules)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(libraries)\\b","end":"\\)","patterns":[{"include":"#library_dependencies"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(parameters)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(implements)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(default_implementation)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(virtual_modules)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(self_build_stubs_archive)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(library_flags)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(wrapped)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(transition)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(preprocess)\\b","end":"\\)","patterns":[{"include":"#preprocessing_specs"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(preprocessor_deps)\\b","end":"\\)","patterns":[{"include":"#dependencies"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(deps)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(melange)(\\.)((runtime_deps))\\b","end":"\\)","patterns":[{"include":"#dependencies"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"},"2":{"name":"keyword.operator.dune"},"3":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(melange)(\\.)((libraries))\\b","end":"\\)","patterns":[{"include":"#library_dependencies"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"},"2":{"name":"keyword.operator.dune"},"3":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(melange)(\\.)((modules))\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"},"2":{"name":"keyword.operator.dune"},"3":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(melange)(\\.)((ppx_runtime_libraries))\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"},"2":{"name":"keyword.operator.dune"},"3":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(melange)(\\.)((preprocessor_deps))\\b","end":"\\)","patterns":[{"include":"#dependencies"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"},"2":{"name":"keyword.operator.dune"},"3":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(melange)(\\.)((preprocess))\\b","end":"\\)","patterns":[{"include":"#preprocessing_specs"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"},"2":{"name":"keyword.operator.dune"},"3":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(optional)\\b","end":"\\)","beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(empty_module_interface_if_absent)\\b","end":"\\)","beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(public_headers)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(allow_unused_libraries)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(lint)\\b","end":"\\)","patterns":[{"include":"#preprocessing_specs"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(instrumentation)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(backend)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(flags|deps)\\b","end":"\\)","patterns":[{"include":"#dependencies"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(extra_objects)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(files|archives)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(stdlib)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(modules_before_stdlib|exit_module|internal_modules|experimental_building_ocaml_compiler_with_dune)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(special_builtin_support)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune","match":"\\b(findlib_dynload)\\b"},{"begin":"\\([[:space:]]*(build_info|configurator|dune_site)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(data_module|api_version|plugins)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(foreign_archives)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(foreign_stubs)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(names)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(language)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(c|cxx)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(flags)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(c_flags|cxx_flags)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(include_dirs)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(extra_deps)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(c_names|c_flags|cxx_names|cxx_flags|install_c_headers)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(modes)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune","match":"\\b(byte|native|best|melange)\\b"},{"begin":"\\([[:space:]]*(byte|native|best)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"variable.other.declaration.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(no_dynlink)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(kind)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune","match":"\\b(normal|parameter|virtual|ppx_rewriter|ppx_deriver)\\b"},{"begin":"\\([[:space:]]*(normal|ppx_rewriter|ppx_deriver|cookies)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"variable.other.declaration.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(ppx_runtime_libraries)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(virtual_deps)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(flags)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(private_modules)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(allow_overlapping_dependencies)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(enabled_if)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#js_of_ocaml"},{"include":"#wasm_of_ocaml"},{"begin":"\\([[:space:]]*(inline_tests)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(executable)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(flags)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(preprocess)\\b","end":"\\)","patterns":[{"include":"#preprocessing_specs"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(backend|flags|libraries)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(flags)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(root_module)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#ctypes"},{"begin":"\\([[:space:]]*(ocamlopt_flags)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(ocamlc_flags)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(c_library_flags|library_flags)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(modules_without_implementation|)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}]},"library_dependencies":{"patterns":[{"begin":"\\([[:space:]]*(instantiate)\\b","end":"\\)","patterns":[{"name":"keyword.language.dune","match":":as\\b"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"patterns":[{"name":"constant.language.dune","contentName":"variable.other.declaration.dune","match":"\\b(select|from)\\b","patterns":[{"include":"#general"}]},{"include":"#general"}]},{"patterns":[{"begin":"\\([[:space:]]*(re-export)\\b","end":"\\)","patterns":[{"include":"#library"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}]},{"include":"#general"}]},"menhir":{"patterns":[{"begin":"\\([[:space:]]*(menhir)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(modules|merge_into|flags|infer|explain)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}}]},"preprocessing_specs":{"patterns":[{"name":"constant.language.dune","match":"\\b(no_preprocessing)\\b","patterns":[{"include":"#general"}]},{"name":"constant.language.dune","match":"\\b(future_syntax)\\b","patterns":[{"include":"#general"}]},{"begin":"\\([[:space:]]*(pps)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(action)\\b","end":"\\)","patterns":[{"include":"#action"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(staged_pps)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}}]},"stanzas":{"patterns":[{"contentName":"constant.language.dune","begin":"\\([[:space:]]*(jbuild_version)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(library)\\b","end":"\\)","patterns":[{"include":"#library"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(library_parameter)\\b","end":"\\)","patterns":[{"include":"#library"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(foreign_library)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(names)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(archive_name|language|include_dir|enabled_if)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(deprecated_library_name)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(old_public_name|new_public_name)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(executable)\\b","end":"\\)","patterns":[{"include":"#library"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(executables)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(names|public_names)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#library"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(rule)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(target|targets)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(deps)\\b","end":"\\)","patterns":[{"include":"#dependencies"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(action)\\b","end":"\\)","patterns":[{"include":"#action"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(mode)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(standard|fallback)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(promote)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(until_clean|into|only)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(only)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(fallback)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(locks)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(alias|aliases)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(package)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(enabled_if)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#action"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(ocamllex)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(modules|mode)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(ocamlyacc)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(modules|mode)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#menhir"},{"begin":"\\([[:space:]]*(cinaps)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(files|libraries)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(documentation)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(package)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(mld_files)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(alias)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(name)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(action)\\b","end":"\\)","patterns":[{"include":"#action"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(package)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(enabled_if)\\b","end":"\\)","patterns":[{"include":"#action"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(deps)\\b","end":"\\)","patterns":[{"include":"#dependencies"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(locks)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(install)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(files)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(section)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune","match":"\\b(lib|lib_root|libexec|libexec_root|bin|sbin|toplevel|share|share_root|etc|stublibs|doc|man|misc)\\b"},{"begin":"\\([[:space:]]*(site)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(package)\\b","end":"\\)","beginCaptures":{"1":{"name":"keyword.language.dune"}}}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(copy_files|copy_files#)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(files|alias|mode|enabled_if|only_sources)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(env)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*([[:word:]]+)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(flags)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(ocamlc_flags|ocamlopt_flags|c_flags|cxx_flags|menhir_flags|link_flags)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(env-vars)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#menhir"},{"include":"#js_of_ocaml"},{"begin":"\\([[:space:]]*(binaries)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(inline_tests|odoc)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(coq|rocq)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(flags)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(formatting)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(enabled_for)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(bin_annot)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"variable.other.declaration.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(include)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(test)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(action)\\b","end":"\\)","patterns":[{"include":"#action"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#library"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(tests)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(names)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(action)\\b","end":"\\)","patterns":[{"include":"#action"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#library"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(cram)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(deps)\\b","end":"\\)","patterns":[{"include":"#dependencies"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(applies_to)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(enabled_if)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(alias)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(locks)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(package)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(runtest_alias)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(timeout)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(dirs)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(data_only_dirs)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(ignored_subdirs)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(vendored_dirs)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(include_subdirs)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune","match":"\\b(no|qualified|unqualified)\\b","patterns":[{"include":"#general"}]},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(toplevel)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(name)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(preprocess)\\b","end":"\\)","patterns":[{"include":"#preprocessing_specs"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(libraries)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(subdir)\\b","end":"\\)","patterns":[{"include":"$self"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(dynamic_include)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(using)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*((coq|rocq).theory)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(name|package)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(generate_project_file)\\b","end":"\\)","beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(synopsis|modules|libraries|flags|mode|theories|plugins|modules_flags|rocqdep_flags|rocqdoc_flags|rocqdoc_header|rocqdoc_footer)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(stdlib)\\b","end":"\\)","patterns":[{"name":"constant.language.dune","match":"\\b(yes|no)\\b"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*((coq|rocq).pp)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(modules)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*((coq|rocq).extraction)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(prelude|extracted_modules|libraries|flags|theories|mode|public_name)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(mdx)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(packages)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(files|preludes|deps|libraries|enabled_if|package|locks)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(plugin)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(name|package)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(libraries|optional)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(site)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(package)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(generate_sites_module)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(module)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(sourceroot)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(relocatable)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(sites)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(plugins)\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(package)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(melange)(\\.)((emit))\\b","end":"\\)","patterns":[{"contentName":"variable.other.declaration.dune","begin":"\\([[:space:]]*(target)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(alias)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(module_systems)\\b","end":"\\)","patterns":[{"name":"variable.other.declaration.dune","match":"\\b(es6|commonjs)\\b"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(runtime_deps)\\b","end":"\\)","patterns":[{"include":"#dependencies"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(emit_stdlib)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(promote)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(until-clean|into|only)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"begin":"\\([[:space:]]*(compile_flags)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#library"},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"},"2":{"name":"keyword.operator.dune"},"3":{"name":"keyword.language.dune"}}},{"include":"#general"}]},"wasm_of_ocaml":{"begin":"\\([[:space:]]*(wasm_of_ocaml)\\b","end":"\\)","patterns":[{"begin":"\\([[:space:]]*(javascript_files|wasm_files|flags|build_runtime_flags|link_flags|enabled_if|compilation_mode|sourcemap)\\b","end":"\\)","patterns":[{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}},{"include":"#general"}],"beginCaptures":{"1":{"name":"keyword.language.dune"}}}}}
@@ -0,0 +1 @@
1
+ {"name":"EasyCrypt","scopeName":"source.easycrypt","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#require"},{"include":"#declarations"},{"include":"#keywords"},{"include":"#builtins"},{"include":"#type-variables"},{"include":"#memories"},{"include":"#numbers"},{"include":"#module-names"},{"include":"#punctuation"},{"include":"#operators"}],"repository":{"builtins":{"patterns":[{"name":"constant.language.easycrypt","match":"(?\u003c![\\w'])(?:true|false|tt)(?![\\w'])"},{"name":"support.type.builtin.easycrypt","match":"(?\u003c![\\w'])(?:unit|bool|int|real|distr)(?![\\w'])"}]},"comment-nested":{"begin":"\\(\\*","end":"\\*\\)","patterns":[{"include":"#comment-nested"}]},"comments":{"patterns":[{"name":"keyword.operator.section.easycrypt","match":"\\(\\*(?:[=\u003c\u003e+\\-*/\\\\%\u0026^|:#$]*[ \\t]+|[=\u003c\u003e+\\-*/\\\\%\u0026^|:#$]*[=\u003c\u003e+\\-/\\\\%\u0026^|:#$])?\\)"},{"name":"comment.block.documentation.easycrypt","begin":"\\(\\*[\u0026^]","end":"[\u0026^]?\\*\\)","patterns":[{"include":"#comment-nested"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.easycrypt"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.easycrypt"}}},{"name":"comment.block.easycrypt","begin":"\\(\\*","end":"\\*\\)","patterns":[{"include":"#comment-nested"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.easycrypt"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.easycrypt"}}}]},"declarations":{"patterns":[{"match":"(?\u003c![\\w'])(lemma|axiom|op|const|pred|inductive|notation|abbrev|exception)[ \\t]+([A-Za-z_][\\w']*)(?![\\w'])","captures":{"1":{"name":"keyword.other.declaration.easycrypt"},"2":{"name":"entity.name.function.easycrypt"}}},{"match":"(?\u003c![\\w'])(equiv|hoare|ehoare|phoare)[ \\t]+([A-Za-z_][\\w']*)(?![\\w'])","captures":{"1":{"name":"keyword.other.judgement.easycrypt"},"2":{"name":"entity.name.function.easycrypt"}}},{"match":"(?\u003c![\\w'])(module)(?:[ \\t]+(type))?[ \\t]+([A-Z][\\w']*)(?![\\w'])","captures":{"1":{"name":"keyword.other.declaration.easycrypt"},"2":{"name":"keyword.other.declaration.easycrypt"},"3":{"name":"entity.name.type.module.easycrypt"}}},{"match":"(?\u003c![\\w'])(type|subtype)[ \\t]+([A-Za-z_][\\w']*)(?![\\w'])","captures":{"1":{"name":"keyword.other.declaration.easycrypt"},"2":{"name":"entity.name.type.easycrypt"}}},{"match":"(?\u003c![\\w'])(theory|section|end)[ \\t]+(?!section(?![\\w']))([A-Za-z_][\\w']*)(?![\\w'])","captures":{"1":{"name":"keyword.other.declaration.easycrypt"},"2":{"name":"entity.name.namespace.easycrypt"}}},{"match":"(?\u003c![\\w'])(proc)[ \\t]+([a-z_][\\w']*)(?![\\w'])","captures":{"1":{"name":"storage.type.program.easycrypt"},"2":{"name":"entity.name.function.procedure.easycrypt"}}}]},"keywords":{"patterns":[{"name":"keyword.other.admit.easycrypt","match":"(?\u003c![\\w'])(?:admit|admitted)(?![\\w'])"},{"name":"keyword.control.proof.easycrypt","match":"(?\u003c![\\w'])(?:proof|qed|realize|abort)(?![\\w'])"},{"name":"keyword.control.import.easycrypt","match":"(?\u003c![\\w'])(?:require|import|export|include|from)(?![\\w'])"},{"name":"storage.modifier.easycrypt","match":"(?\u003c![\\w'])(?:local|global|declare|abstract|axiomatized)(?![\\w'])"},{"name":"keyword.other.declaration.easycrypt","match":"(?\u003c![\\w'])(?:axiom|lemma|op|const|pred|inductive|notation|abbrev|type|subtype|module|theory|section|end|clone|exception|instance|hint|with|rename|remove|as|of|goal|array|bind|circuit|bitstring)(?![\\w'])"},{"name":"keyword.other.command.easycrypt","match":"(?\u003c![\\w'])(?:print|search|locate|prover|timeout|why3|dump|exit|debug|fail|pragma|time|undo)(?![\\w'])"},{"name":"keyword.control.easycrypt","match":"(?\u003c![\\w'])(?:if|then|else|elif|match|while|for|return|raise|async)(?![\\w'])"},{"name":"storage.type.program.easycrypt","match":"(?\u003c![\\w'])(?:proc|var|glob)(?![\\w'])"},{"name":"variable.language.easycrypt","match":"(?\u003c![\\w'])(?:res|Top|Self)(?![\\w'])"},{"name":"keyword.other.logic.easycrypt","match":"(?\u003c![\\w'])(?:forall|exists|fun|let|in|is)(?![\\w'])"},{"name":"keyword.other.judgement.easycrypt","match":"(?\u003c![\\w'])(?:equiv|hoare|ehoare|phoare|islossless|Pr)(?![\\w'])"},{"name":"keyword.control.tactical.easycrypt","match":"(?\u003c![\\w'])(?:try|first|last|do|expect|extens)(?![\\w'])"},{"name":"keyword.control.tactic.closing.easycrypt","match":"(?\u003c![\\w'])(?:by|done|exact|assumption|smt|coq|check|edit|fix|reflexivity|solve)(?![\\w'])"},{"name":"support.function.tactic.easycrypt","match":"(?\u003c![\\w'])(?:algebra|alias|apply|auto|beta|byehoare|byequiv|byphoare|bypr|byupto|call|case|cbv|cfold|change|clear|congr|conseq|delta|eager|ecall|elim|eta|exfalso|exlim|fel|field|fieldeq|fission|fusion|gen|have|idassign|idtac|inline|interleave|iota|kill|left|logic|modpath|move|outline|pose|pr_bounded|progress|rcondf|rcondt|replace|rewrite|right|ring|ringeq|rnd|rndsem|rwnormal|seq|sim|simplify|skip|sp|split|splitwhile|subst|suff|swap|symmetry|transitivity|trivial|unroll|weakmem|wlog|wp|zeta)(?![\\w'])"}]},"memories":{"name":"variable.other.memory.easycrypt","match":"\u0026(?:[a-z][\\w']*|_[\\w']+|[0-9]+)(?![\\w'])"},"module-names":{"name":"entity.name.type.module.easycrypt","match":"(?\u003c![\\w'])[A-Z][\\w']*"},"numbers":{"patterns":[{"name":"constant.numeric.hex.easycrypt","match":"(?\u003c![\\w'])0x[0-9A-Fa-f]+(?![\\w'])"},{"name":"constant.numeric.decimal.easycrypt","match":"(?\u003c![\\w'])[0-9]+\\.[0-9]+(?![\\w'])"},{"name":"constant.numeric.integer.easycrypt","match":"(?\u003c![\\w'])[0-9]+(?![\\w'])"}]},"operators":{"patterns":[{"name":"keyword.operator.easycrypt","match":"`[=\u003c\u003e+\\-*/\\\\%\u0026^|:#$]+`"},{"name":"keyword.operator.named.easycrypt","match":"\\\\[A-Za-z0-9_']+"},{"name":"keyword.operator.easycrypt","match":"[=\u003c\u003e+\\-*/\\\\%\u0026^|:#$~!@?]+"}]},"punctuation":{"patterns":[{"name":"constant.language.dbool.easycrypt","match":"\\{0,1\\}"},{"name":"punctuation.section.braces.begin.easycrypt","match":"\\{\\|?"},{"name":"punctuation.section.braces.end.easycrypt","match":"\\|?\\}"},{"name":"punctuation.section.brackets.begin.easycrypt","match":"\\.?\\["},{"name":"punctuation.section.brackets.end.easycrypt","match":"\\]"},{"name":"punctuation.section.parens.begin.easycrypt","match":"\\("},{"name":"punctuation.section.parens.end.easycrypt","match":"\\)"},{"name":"keyword.operator.range.easycrypt","match":"\\.\\."},{"name":"punctuation.terminator.easycrypt","match":"\\.(?=[ \\t\\r\\n]|$)"},{"name":"punctuation.separator.easycrypt","match":"[,;]"}]},"require":{"name":"meta.require.easycrypt","match":"(?\u003c![\\w'])(?:(from)[ \\t]+([A-Za-z_][\\w']*)[ \\t]+)?(require)(?:[ \\t]+(import|export))?(?![\\w'])","captures":{"1":{"name":"keyword.control.import.easycrypt"},"2":{"name":"entity.name.namespace.easycrypt"},"3":{"name":"keyword.control.import.easycrypt"},"4":{"name":"keyword.control.import.easycrypt"}}},"strings":{"name":"string.quoted.double.easycrypt","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.easycrypt","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.easycrypt"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.easycrypt"}}},"type-variables":{"name":"variable.parameter.type.easycrypt","match":"(?\u003c![\\w'])'(?:[a-z][\\w']*|_[\\w']+)"}}}