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":"Smithy","scopeName":"source.smithy","patterns":[{"include":"#comment"},{"name":"meta.keyword.statement.control.smithy","begin":"^(\\$)([A-Z-a-z_][A-Z-a-z0-9_]*)(:)\\s*","end":"\\n","patterns":[{"include":"#value"},{"name":"invalid.illegal.control.smithy","match":"[^\\n]"}],"beginCaptures":{"1":{"name":"keyword.statement.control.smithy"},"2":{"name":"support.type.property-name.smithy"},"3":{"name":"punctuation.separator.dictionary.pair.smithy"}}},{"name":"meta.keyword.statement.metadata.smithy","begin":"^(metadata)\\s+(.+)\\s*(=)\\s*","end":"\\n","patterns":[{"include":"#value"}],"beginCaptures":{"1":{"name":"keyword.statement.smithy"},"2":{"name":"variable.other.smithy"},"3":{"name":"keyword.operator.smithy"}}},{"name":"meta.keyword.statement.namespace.smithy","begin":"^(namespace)\\s+","end":"\\n","patterns":[{"name":"entity.name.type.smithy","match":"[A-Z-a-z_][A-Z-a-z0-9_]*(\\.[A-Z-a-z_][A-Z-a-z0-9_]*)*"},{"name":"invalid.illegal.namespace.smithy","match":"[^\\n]"}],"beginCaptures":{"1":{"name":"keyword.statement.smithy"}}},{"name":"meta.keyword.statement.use.smithy","begin":"^(use)\\s+","end":"\\n","patterns":[{"name":"entity.name.type.smithy","match":"[A-Z-a-z_][A-Z-a-z0-9_]*(\\.[A-Z-a-z_][A-Z-a-z0-9_]*)*#[A-Z-a-z_][A-Z-a-z0-9_]*(\\.[A-Z-a-z_][A-Z-a-z0-9_]*)*"},{"name":"invalid.illegal.use.smithy","match":"[^\\n]"}],"beginCaptures":{"1":{"name":"keyword.statement.smithy"}}},{"include":"#trait"},{"name":"meta.keyword.statement.shape.smithy","begin":"^(byte|short|integer|long|float|double|bigInteger|bigDecimal|boolean|blob|string|timestamp|document|list|set|map|union|service|operation|resource|enum|intEnum)\\s+([A-Z-a-z_][A-Z-a-z0-9_]*)\\s+(with)\\s+(\\[)","end":"\\]","patterns":[{"name":"entity.name.type.smithy","include":"#identifier"},{"include":"#comment"},{"name":"punctuation.separator.array.smithy","match":","}],"beginCaptures":{"1":{"name":"keyword.statement.smithy"},"2":{"name":"entity.name.type.smithy"},"3":{"name":"keyword.statement.with.smithy"},"4":{"name":"punctuation.definition.array.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.smithy"}}},{"name":"meta.keyword.statement.shape.smithy","match":"^(byte|short|integer|long|float|double|bigInteger|bigDecimal|boolean|blob|string|timestamp|document|list|set|map|union|service|operation|resource|enum|intEnum)\\s+([A-Z-a-z_][A-Z-a-z0-9_]*)","captures":{"1":{"name":"keyword.statement.smithy"},"2":{"name":"entity.name.type.smithy"}}},{"name":"meta.keyword.statement.shape.smithy","begin":"^(structure)\\s+([A-Z-a-z_][A-Z-a-z0-9_]*)(?:\\s+(for)\\s+([0-9a-zA-Z\\.#-]+))?\\s+(with)\\s+(\\[)","end":"\\]","patterns":[{"name":"entity.name.type.smithy","include":"#identifier"},{"include":"#comment"},{"name":"punctuation.separator.array.smithy","match":","}],"beginCaptures":{"1":{"name":"keyword.statement.smithy"},"2":{"name":"entity.name.type.smithy"},"3":{"name":"keyword.statement.for-resource.smithy"},"4":{"name":"entity.name.type.smithy"},"5":{"name":"keyword.statement.with.smithy"},"6":{"name":"punctuation.definition.array.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.smithy"}}},{"name":"meta.keyword.statement.shape.smithy","match":"^(structure)\\s+([A-Z-a-z_][A-Z-a-z0-9_]*)(?:\\s+(for)\\s+([0-9a-zA-Z\\.#-]+))?","captures":{"1":{"name":"keyword.statement.smithy"},"2":{"name":"entity.name.type.smithy"},"3":{"name":"keyword.statement.for-resource.smithy"},"4":{"name":"entity.name.type.smithy"}}},{"begin":"\\{","end":"\\}","patterns":[{"include":"#shape_inner"}],"beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.smithy"}}},{"name":"meta.keyword.statement.apply.smithy","begin":"^(apply)\\s+","end":"\\n","patterns":[{"include":"#trait"},{"include":"#shapeid"},{"name":"invalid.illegal.apply.smithy","match":"[^\\n]"}],"beginCaptures":{"1":{"name":"keyword.statement.smithy"}}},{"name":"meta.keyword.statement.member.smithy","begin":"^([A-Z-a-z_][A-Z-a-z0-9_]*)(:)\\s*","end":"\\n","patterns":[{"include":"#shapeid"}],"beginCaptures":{"1":{"name":"support.type.property-name.smithy"},"2":{"name":"punctuation.separator.dictionary.pair.smithy"}}}],"repository":{"array":{"name":"meta.structure.array.smithy","begin":"\\[","end":"\\]","patterns":[{"include":"#value"},{"name":"punctuation.separator.array.smithy","match":","},{"name":"invalid.illegal.array.smithy","match":"[^\\s\\]]"}],"beginCaptures":{"0":{"name":"punctuation.definition.array.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.smithy"}}},"comment":{"patterns":[{"include":"#doc_comment"},{"include":"#line_comment"}]},"doc_comment":{"name":"comment.block.documentation.smithy","match":"(///.*)"},"dquote":{"name":"string.quoted.double.smithy","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.smithy","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.smithy"}}},"dquote_key":{"name":"support.type.property-name.smithy","match":"\".*\"(?=\\s*:)"},"elided_target":{"match":"(\\$)([A-Z-a-z0-9_\\.#$]+)","captures":{"1":{"name":"keyword.statement.elision.smithy"},"2":{"name":"support.type.property-name.smithy"}}},"identifier":{"name":"entity.name.type.smithy","match":"[A-Z-a-z_][A-Z-a-z0-9_]*"},"identifier_key":{"name":"support.type.property-name.smithy","match":"[A-Z-a-z0-9_\\.#$]+(?=\\s*:)"},"keywords":{"name":"constant.language.smithy","match":"\\b(?:true|false|null)\\b"},"line_comment":{"name":"comment.line.double-slash.smithy","match":"(//.*)"},"number":{"name":"constant.numeric.smithy","match":"(?x: # turn on extended mode\n -? # an optional minus\n (?:\n 0 # a zero\n | # ...or...\n [1-9] # a 1-9 character\n \\d* # followed by zero or more digits\n )\n (?:\n (?:\n \\. # a period\n \\d+ # followed by one or more digits\n )?\n (?:\n [eE] # an e character\n [+-]? # followed by an option +/-\n \\d+ # followed by one or more digits\n )? # make exponent optional\n )? # make decimal portion optional\n )"},"object":{"name":"meta.structure.dictionary.smithy","begin":"\\{","end":"\\}","patterns":[{"include":"#object_inner"}],"beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.smithy"}}},"object_inner":{"patterns":[{"include":"#comment"},{"include":"#string_key"},{"name":"punctuation.separator.dictionary.key-value.smithy","match":":"},{"name":"keyword.operator.smithy","match":"="},{"name":"meta.structure.dictionary.value.smithy","include":"#value"},{"name":"punctuation.separator.dictionary.pair.smithy","match":","}]},"shape_inner":{"patterns":[{"include":"#trait"},{"name":"punctuation.separator.dictionary.inline-struct.smithy","match":":="},{"include":"#with_statement"},{"include":"#elided_target"},{"include":"#object_inner"}]},"shapeid":{"name":"entity.name.type.smithy","match":"[A-Z-a-z_][A-Z-a-z0-9_\\.#$]*"},"string":{"patterns":[{"include":"#textblock"},{"include":"#dquote"},{"include":"#shapeid"}]},"string_key":{"patterns":[{"include":"#identifier_key"},{"include":"#dquote_key"}]},"textblock":{"name":"string.quoted.double.smithy","begin":"\"\"\"","end":"\"\"\"","patterns":[{"name":"constant.character.escape.smithy","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.smithy"}}},"trait":{"patterns":[{"name":"meta.keyword.statement.trait.smithy","begin":"(@)([0-9a-zA-Z\\.#-]+)(\\()","end":"\\)","patterns":[{"include":"#object_inner"},{"include":"#value"}],"beginCaptures":{"1":{"name":"punctuation.definition.annotation.smithy"},"2":{"name":"storage.type.annotation.smithy"},"3":{"name":"punctuation.definition.dictionary.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.smithy"}}},{"name":"meta.keyword.statement.trait.smithy","match":"(@)([0-9a-zA-Z\\.#-]+)","captures":{"1":{"name":"punctuation.definition.annotation.smithy"},"2":{"name":"storage.type.annotation.smithy"}}}]},"value":{"patterns":[{"include":"#comment"},{"include":"#keywords"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"}]},"with_statement":{"begin":"(with)\\s+(\\[)","end":"\\]","patterns":[{"name":"punctuation.separator.array.smithy","match":","},{"include":"#identifier"},{"include":"#comment"}],"beginCaptures":{"1":{"name":"keyword.statement.with.smithy"},"2":{"name":"punctuation.definition.array.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.smithy"}}}}}
1
+ {"name":"Smithy","scopeName":"source.smithy","patterns":[{"include":"#comment"},{"name":"meta.keyword.statement.control.smithy","begin":"^(\\$)(\"(?:[^\"\\\\]|\\\\.)*\"|[A-Za-z_][A-Za-z0-9_]*)[ \\t]*(:)[ \\t]*","end":"\\n","patterns":[{"include":"#value"},{"name":"invalid.illegal.control.smithy","match":"[^\\s,]"}],"beginCaptures":{"1":{"name":"keyword.statement.control.smithy"},"2":{"name":"support.type.property-name.smithy"},"3":{"name":"punctuation.separator.dictionary.pair.smithy"}}},{"name":"meta.keyword.statement.metadata.smithy","begin":"^(metadata)\\s+(\"(?:[^\"\\\\]|\\\\.)*\"|[A-Za-z_][A-Za-z0-9_]*)\\s*(=)\\s*","end":"\\n","patterns":[{"include":"#value"}],"beginCaptures":{"1":{"name":"keyword.statement.smithy"},"2":{"name":"variable.other.smithy"},"3":{"name":"keyword.operator.smithy"}}},{"name":"meta.keyword.statement.namespace.smithy","begin":"^(namespace)\\s+","end":"\\n","patterns":[{"name":"entity.name.type.smithy","match":"[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*"},{"include":"#comment"},{"name":"invalid.illegal.namespace.smithy","match":"[^\\s,]"}],"beginCaptures":{"1":{"name":"keyword.statement.smithy"}}},{"name":"meta.keyword.statement.use.smithy","begin":"^(use)\\s+","end":"\\n","patterns":[{"name":"entity.name.type.smithy","match":"[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*#[A-Za-z_][A-Za-z0-9_]*(\\.[A-Za-z_][A-Za-z0-9_]*)*"},{"include":"#comment"},{"name":"invalid.illegal.use.smithy","match":"[^\\s,]"}],"beginCaptures":{"1":{"name":"keyword.statement.smithy"}}},{"include":"#trait"},{"name":"meta.keyword.statement.shape.smithy","begin":"(?:^|(?\u003c=[\\s)]))(byte|short|integer|long|float|double|bigInteger|bigDecimal|boolean|blob|string|timestamp|document)\\s+([A-Za-z_][A-Za-z0-9_]*)","end":"(?\u003c=\\])|(?=^[ \\t]*(?!with\\b|\\[|$)\\S)","patterns":[{"include":"#shape_header"}],"beginCaptures":{"1":{"name":"keyword.statement.smithy"},"2":{"name":"entity.name.type.smithy"}}},{"name":"meta.keyword.statement.shape.smithy","begin":"(?:^|(?\u003c=[\\s)]))(list|set|map|structure|union)\\s+([A-Za-z_][A-Za-z0-9_]*)","end":"(?\u003c=\\})|(?=^[ \\t]*(?!with\\b|//|\\{|$)\\S)","patterns":[{"include":"#shape_header"},{"begin":"\\{","end":"\\}|(?=^(?:apply|byte|short|integer|long|float|double|bigInteger|bigDecimal|boolean|blob|string|timestamp|document|list|set|map|structure|union|enum|intEnum|service|resource|operation)[ \\t]+[A-Za-z_])","patterns":[{"include":"#member_body"}],"beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.smithy"}}}],"beginCaptures":{"1":{"name":"keyword.statement.smithy"},"2":{"name":"entity.name.type.smithy"}}},{"name":"meta.keyword.statement.shape.smithy","begin":"(?:^|(?\u003c=[\\s)]))(enum|intEnum)\\s+([A-Za-z_][A-Za-z0-9_]*)","end":"(?\u003c=\\})|(?=^[ \\t]*(?!with\\b|//|\\{|$)\\S)","patterns":[{"include":"#shape_header"},{"begin":"\\{","end":"\\}|(?=^(?:apply|byte|short|integer|long|float|double|bigInteger|bigDecimal|boolean|blob|string|timestamp|document|list|set|map|structure|union|enum|intEnum|service|resource|operation)[ \\t]+[A-Za-z_])","patterns":[{"include":"#enum_body"}],"beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.smithy"}}}],"beginCaptures":{"1":{"name":"keyword.statement.smithy"},"2":{"name":"entity.name.type.smithy"}}},{"name":"meta.keyword.statement.shape.smithy","begin":"(?:^|(?\u003c=[\\s)]))(service|resource|operation)\\s+([A-Za-z_][A-Za-z0-9_]*)","end":"(?\u003c=\\})|(?=^[ \\t]*(?!with\\b|//|\\{|$)\\S)","patterns":[{"include":"#shape_header"},{"begin":"\\{","end":"\\}|(?=^(?:apply|byte|short|integer|long|float|double|bigInteger|bigDecimal|boolean|blob|string|timestamp|document|list|set|map|structure|union|enum|intEnum|service|resource|operation)[ \\t]+[A-Za-z_])","patterns":[{"include":"#node_body"}],"beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.smithy"}}}],"beginCaptures":{"1":{"name":"keyword.statement.smithy"},"2":{"name":"entity.name.type.smithy"}}},{"begin":"\\{","end":"\\}|(?=^(?:apply|byte|short|integer|long|float|double|bigInteger|bigDecimal|boolean|blob|string|timestamp|document|list|set|map|structure|union|enum|intEnum|service|resource|operation)[ \\t]+[A-Za-z_])","patterns":[{"include":"#member_body"}],"beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.smithy"}}},{"name":"meta.keyword.statement.apply.smithy","begin":"^(apply)\\s+([A-Za-z_][A-Za-z0-9_\\.#$]*)\\s*(\\{)","end":"\\}","patterns":[{"include":"#trait"},{"include":"#comment"}],"beginCaptures":{"1":{"name":"keyword.statement.smithy"},"2":{"name":"entity.name.type.smithy"},"3":{"name":"punctuation.definition.dictionary.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.smithy"}}},{"name":"meta.keyword.statement.apply.smithy","begin":"^(apply)\\s+","end":"\\n","patterns":[{"include":"#trait"},{"include":"#shapeid"},{"include":"#comment"},{"name":"invalid.illegal.apply.smithy","match":"[^\\s,]"}],"beginCaptures":{"1":{"name":"keyword.statement.smithy"}}},{"name":"meta.keyword.statement.member.smithy","begin":"^(?:([1-9][0-9]*)(\\.)[ \\t]+)?([A-Za-z_][A-Za-z0-9_]*)(:)\\s*","end":"\\n","patterns":[{"include":"#member_target"},{"include":"#comment"}],"beginCaptures":{"1":{"name":"constant.numeric.member-index.smithy"},"2":{"name":"punctuation.separator.member-index.smithy"},"3":{"name":"support.type.property-name.smithy"},"4":{"name":"punctuation.separator.dictionary.pair.smithy"}}}],"repository":{"array":{"name":"meta.structure.array.smithy","begin":"\\[","end":"\\]","patterns":[{"include":"#value"},{"name":"punctuation.separator.array.smithy","match":","},{"name":"invalid.illegal.array.smithy","match":"[^\\s\\]]"}],"beginCaptures":{"0":{"name":"punctuation.definition.array.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.smithy"}}},"comment":{"patterns":[{"include":"#doc_comment"},{"include":"#line_comment"}]},"doc_comment":{"name":"comment.block.documentation.smithy","match":"(///.*)"},"dquote":{"name":"string.quoted.double.smithy","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.smithy","match":"\\\\(?:[\"\\\\/bfnrt]|u[0-9A-Fa-f]{4})"},{"name":"constant.character.escape.smithy","match":"\\\\$"},{"name":"invalid.illegal.escape.smithy","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.smithy"}}},"dquote_key":{"name":"support.type.property-name.smithy","match":"\"(?:[^\"\\\\]|\\\\.)*\"(?=\\s*:)"},"elided_target":{"match":"(\\$)([A-Za-z0-9_\\.#$]+)","captures":{"1":{"name":"keyword.statement.elision.smithy"},"2":{"name":"support.type.property-name.smithy"}}},"enum_body":{"patterns":[{"include":"#trait"},{"include":"#object_inner"}]},"for_resource":{"match":"\\b(for)\\s+([A-Za-z_][A-Za-z0-9_]*(?:[.#][A-Za-z_][A-Za-z0-9_]*)*)","captures":{"1":{"name":"keyword.statement.for-resource.smithy"},"2":{"name":"entity.name.type.smithy"}}},"identifier_key":{"name":"support.type.property-name.smithy","match":"(?\u003c![A-Za-z0-9_.#$])[A-Za-z_][A-Za-z0-9_]*(?:[.#$][A-Za-z_][A-Za-z0-9_]*)*(?=\\s*:)"},"inline_list_inner":{"patterns":[{"include":"#member_target"},{"name":"punctuation.separator.array.smithy","match":","},{"name":"invalid.illegal.inline-list.smithy","match":"[^\\s\\]]"}]},"inline_list_member":{"name":"meta.structure.inline-list.smithy","begin":"([A-Za-z_][A-Za-z0-9_]*)[ \\t]*(:)[ \\t]*(\\[)","end":"\\]|(?=^[^\\s])","patterns":[{"include":"#inline_list_inner"}],"beginCaptures":{"1":{"name":"support.type.property-name.smithy"},"2":{"name":"punctuation.separator.dictionary.key-value.smithy"},"3":{"name":"punctuation.definition.array.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.smithy"}}},"inline_list_target":{"name":"meta.structure.inline-list.smithy","begin":"\\[","end":"\\]|(?=^[^\\s])","patterns":[{"include":"#inline_list_inner"}],"beginCaptures":{"0":{"name":"punctuation.definition.array.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.smithy"}}},"inline_map_inner":{"patterns":[{"name":"punctuation.separator.dictionary.key-value.smithy","match":":"},{"include":"#member_target"},{"name":"punctuation.separator.dictionary.pair.smithy","match":","},{"name":"invalid.illegal.inline-map.smithy","match":"[^\\s\\}]"}]},"inline_map_member":{"name":"meta.structure.inline-map.smithy","begin":"([A-Za-z_][A-Za-z0-9_]*)[ \\t]*(:)[ \\t]*(\\{)","end":"\\}|(?=^[^\\s])","patterns":[{"include":"#inline_map_inner"}],"beginCaptures":{"1":{"name":"support.type.property-name.smithy"},"2":{"name":"punctuation.separator.dictionary.key-value.smithy"},"3":{"name":"punctuation.definition.dictionary.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.smithy"}}},"inline_map_target":{"name":"meta.structure.inline-map.smithy","begin":"\\{","end":"\\}|(?=^[^\\s])","patterns":[{"include":"#inline_map_inner"}],"beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.smithy"}}},"inline_structure":{"begin":"(:=)","end":"(?\u003c=\\})|(?=^(?!\\s|\\{|//))","patterns":[{"include":"#trait"},{"include":"#for_resource"},{"include":"#with_statement"},{"include":"#comment"},{"begin":"\\{","end":"\\}|(?=^(?:apply|byte|short|integer|long|float|double|bigInteger|bigDecimal|boolean|blob|string|timestamp|document|list|set|map|structure|union|enum|intEnum|service|resource|operation)[ \\t]+[A-Za-z_])","patterns":[{"include":"#member_body"}],"beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.smithy"}}}],"beginCaptures":{"1":{"name":"punctuation.separator.dictionary.inline-struct.smithy"}}},"keywords":{"name":"constant.language.smithy","match":"\\b(?:true|false|null)\\b"},"line_comment":{"name":"comment.line.double-slash.smithy","match":"(//.*)"},"member_body":{"patterns":[{"include":"#trait"},{"include":"#member_index"},{"include":"#elided_target"},{"include":"#inline_list_member"},{"include":"#inline_map_member"},{"include":"#object_inner"}]},"member_index":{"match":"(?\u003c![-+0-9A-Za-z_.$#])([1-9][0-9]*)(\\.)(?=[ \\t])","captures":{"1":{"name":"constant.numeric.member-index.smithy"},"2":{"name":"punctuation.separator.member-index.smithy"}}},"member_target":{"patterns":[{"include":"#inline_list_target"},{"include":"#inline_map_target"},{"include":"#comment"},{"include":"#shapeid"}]},"node_body":{"patterns":[{"include":"#trait"},{"include":"#inline_structure"},{"include":"#object_inner"}]},"number":{"name":"constant.numeric.smithy","match":"(?x: # turn on extended mode\n -? # an optional minus\n (?:\n 0 # a zero\n | # ...or...\n [1-9] # a 1-9 character\n \\d* # followed by zero or more digits\n )\n (?:\n (?:\n \\. # a period\n \\d+ # followed by one or more digits\n )?\n (?:\n [eE] # an e character\n [+-]? # followed by an option +/-\n \\d+ # followed by one or more digits\n )? # make exponent optional\n )? # make decimal portion optional\n )"},"object":{"name":"meta.structure.dictionary.smithy","begin":"\\{","end":"\\}","patterns":[{"include":"#object_inner"}],"beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.smithy"}}},"object_inner":{"patterns":[{"include":"#comment"},{"include":"#string_key"},{"name":"punctuation.separator.dictionary.key-value.smithy","match":":"},{"name":"keyword.operator.smithy","match":"="},{"name":"meta.structure.dictionary.value.smithy","include":"#value"},{"name":"punctuation.separator.dictionary.pair.smithy","match":","}]},"shape_header":{"patterns":[{"include":"#for_resource"},{"include":"#with_statement"},{"include":"#comment"}]},"shapeid":{"name":"entity.name.type.smithy","match":"[A-Za-z_][A-Za-z0-9_\\.#$]*"},"string":{"patterns":[{"include":"#tagged_literal"},{"include":"#textblock"},{"include":"#dquote"},{"include":"#shapeid"}]},"string_key":{"patterns":[{"include":"#identifier_key"},{"include":"#dquote_key"}]},"tagged_literal":{"patterns":[{"name":"string.quoted.double.raw.smithy","begin":"(#)(timestamp|hex|re|b)(?![A-Za-z0-9_])[ \\t]*(\"\"\")","end":"\"\"\"","patterns":[{"name":"constant.character.escape.smithy","match":"\\\\\""},{"match":"\\\\."}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.smithy"},"2":{"name":"storage.type.tag.smithy"},"3":{"name":"punctuation.definition.string.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.smithy"}}},{"name":"string.quoted.double.raw.smithy","begin":"(#)(timestamp|hex|re|b)(?![A-Za-z0-9_])[ \\t]*(\")","end":"\"","patterns":[{"name":"constant.character.escape.smithy","match":"\\\\\""},{"match":"\\\\."}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.smithy"},"2":{"name":"storage.type.tag.smithy"},"3":{"name":"punctuation.definition.string.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.smithy"}}}]},"textblock":{"name":"string.quoted.double.smithy","begin":"\"\"\"","end":"\"\"\"","patterns":[{"name":"constant.character.escape.smithy","match":"\\\\(?:[\"\\\\/bfnrt]|u[0-9A-Fa-f]{4})"},{"name":"constant.character.escape.smithy","match":"\\\\$"},{"name":"invalid.illegal.escape.smithy","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.smithy"}}},"trait":{"patterns":[{"name":"meta.keyword.statement.trait.smithy","begin":"(@)([A-Za-z_][A-Za-z0-9_]*(?:[.#][A-Za-z_][A-Za-z0-9_]*)*)(\\()","end":"\\)","patterns":[{"include":"#object_inner"},{"include":"#value"}],"beginCaptures":{"1":{"name":"punctuation.definition.annotation.smithy"},"2":{"name":"storage.type.annotation.smithy"},"3":{"name":"punctuation.definition.dictionary.begin.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.smithy"}}},{"name":"meta.keyword.statement.trait.smithy","match":"(@)([A-Za-z_][A-Za-z0-9_]*(?:[.#][A-Za-z_][A-Za-z0-9_]*)*)","captures":{"1":{"name":"punctuation.definition.annotation.smithy"},"2":{"name":"storage.type.annotation.smithy"}}}]},"value":{"patterns":[{"include":"#comment"},{"include":"#keywords"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"}]},"with_statement":{"begin":"\\b(with)\\b","end":"\\]|(?=^[^\\s])","patterns":[{"name":"punctuation.definition.array.begin.smithy","match":"\\["},{"name":"punctuation.separator.array.smithy","match":","},{"include":"#shapeid"},{"include":"#comment"}],"beginCaptures":{"1":{"name":"keyword.statement.with.smithy"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.smithy"}}}}}
@@ -1 +1 @@
1
- {"name":"SpiceDB Schema","scopeName":"source.spicedb","patterns":[{"include":"#comment"},{"include":"#use"},{"include":"#import"},{"include":"#partial"},{"include":"#definition"},{"include":"#caveat"},{"include":"#relation"},{"include":"#permission"}],"repository":{"arrow":{"match":"\\s*([a-zA-Z_]\\w*)(-\u003e)([a-zA-Z_]\\w*)\\s*","captures":{"1":{"name":"entity.name.variable"},"2":{"name":"keyword.operator.arrow markup.bold.authzed"},"3":{"name":"entity.name.variable"}}},"arrow_alternative":{"match":"\\s*([a-zA-Z_]\\w*)(\\.any)\\(([a-zA-Z_]\\w*)\\)\\s*","captures":{"1":{"name":"entity.name.variable"},"2":{"name":"keyword.operator.arrow markup.bold.authzed"},"3":{"name":"entity.name.variable"}}},"arrow_intersection":{"match":"\\s*([a-zA-Z_]\\w*)(\\.all)\\(([a-zA-Z_]\\w*)\\)\\s*","captures":{"1":{"name":"entity.name.variable"},"2":{"name":"keyword.operator.arrow markup.bold.authzed"},"3":{"name":"entity.name.variable"}}},"caveat":{"name":"meta.embedded.block.cel","begin":"(\\bcaveat\\b)\\s+(([a-z][\\w]{1,62}[a-z0-9]\\/)*[a-z][\\w]{1,62}[a-z0-9])\\s*\\(([^\\)]*)\\)\\s*(\\{)","end":"(?\u003c=\\})$","patterns":[{"include":"source.cel"}],"beginCaptures":{"1":{"name":"keyword.function.definition"},"2":{"name":"entity.name.function"},"4":{"patterns":[{"include":"#caveatParameter"},{"include":"#caveatTypeName"},{"include":"#comma"}]},"5":{"name":"punctuation.definition.brace"}},"endCaptures":{"0":{"name":"punctuation.end.brace"}}},"caveatParameter":{"match":"([a-zA-Z_]\\w*)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"entity.name.variable"},"2":{"name":"entity.name.class"}}},"caveatTypeName":{"match":"\\s*([a-zA-Z_]\\w*)\\s*","captures":{"1":{"name":"entity.name.class"}}},"comma":{"name":"punctuation.definition.comma","match":"\\s*,\\s*"},"comment":{"patterns":[{"include":"#lineComment"},{"include":"#blockComment"}],"repository":{"blockComment":{"name":"comment.block.spicedb","begin":"\\/\\*","end":"\\*\\/"},"lineComment":{"patterns":[{"include":"#doubleSlashLineComment"}],"repository":{"doubleSlashLineComment":{"name":"comment.line.double-slash.spicedb","match":"\\/\\/.*"}}}}},"definition":{"begin":"(\\bdefinition\\b)\\s+(([a-z][\\w]{1,62}[a-z0-9]\\/)*[a-z][\\w]{1,62}[a-z0-9])\\s*(\\{)","end":"(?\u003c=\\})","patterns":[{"include":"#relation"},{"include":"#permission"},{"include":"#comment"}],"beginCaptures":{"1":{"name":"keyword.class.definition"},"2":{"name":"entity.name.class"},"4":{"name":"punctuation.definition.brace"}},"endCaptures":{"0":{"name":"punctuation.end.brace"}}},"directRelationType":{"match":"([a-zA-Z_]\\w*)","captures":{"1":{"name":"entity.name.class"}}},"import":{"match":"\\s*(import)\\s*([\"a-zA-Z_]\\w*)\\s*","captures":{"1":{"name":"keyword.class.definition"},"2":{"name":"entity.name.function"}}},"indirectRelationType":{"match":"([a-zA-Z_]\\w*)(#)([a-zA-Z_]\\w*)","captures":{"1":{"name":"entity.name.class"},"2":{"name":"punctuation.definition.hash"},"3":{"name":"entity.name.variable"}}},"nil":{"match":"nil","captures":{"1":{"name":"keyword.operator.nil"}}},"partial":{"match":"\\s*(partial)\\s*([\"a-zA-Z_]\\w*)\\s*","captures":{"1":{"name":"keyword.class.definition"},"2":{"name":"entity.name.function"}}},"permission":{"begin":"(\\bpermission\\b)\\s+([a-zA-Z_]\\w*)\\s*(=)\\s*","end":"(?\u003c=;|\\n)","patterns":[{"include":"#comment"},{"include":"#arrow_alternative"},{"include":"#arrow_intersection"},{"include":"#arrow"},{"include":"#nil"},{"include":"#relationRef"},{"include":"#permissionOperator"}],"beginCaptures":{"1":{"name":"keyword.function.relation"},"2":{"name":"entity.name.function"},"3":{"name":"punctuation.definition.equal"}}},"permissionOperator":{"match":"\\s*(\\+|-|\u0026)\\s*","captures":{"1":{"name":"keyword.operator.logical"}}},"pipe":{"name":"punctuation.definition.pipe","match":"\\|"},"relation":{"begin":"(\\brelation\\b)\\s+([a-zA-Z_]\\w*)\\s*(:)","end":"(?\u003c=;|\\n)","patterns":[{"include":"#wildcardRelationType"},{"include":"#indirectRelationType"},{"include":"#directRelationType"},{"include":"#pipe"},{"include":"#with_expiration"},{"include":"#with_caveat"},{"include":"#comment"}],"beginCaptures":{"1":{"name":"keyword.variable.relation"},"2":{"name":"entity.name.variable"},"3":{"name":"punctuation.definition.colon"}}},"relationRef":{"match":"([a-zA-Z_]\\w*)\\b(?!-\u003e|\\.(?:any|all)\\()","captures":{"1":{"name":"entity.name.variable"}}},"use":{"match":"\\s*(use)\\s*([a-zA-Z_]\\w*)\\s*","captures":{"1":{"name":"keyword.class.definition"},"2":{"name":"keyword.class.definition"}}},"wildcardRelationType":{"match":"([a-zA-Z_]\\w*)(:)(\\*)","captures":{"1":{"name":"entity.name.class"},"2":{"name":"punctuation.definition.colon"},"3":{"name":"keyword.operator.wildcard markup.bold.authzed"}}},"with_caveat":{"match":"\\s*(with)\\s*(([a-z][\\w]{1,62}[a-z0-9]\\/)*[a-z][\\w]{1,62}[a-z0-9])\\s*","captures":{"1":{"name":"keyword.class.definition"},"2":{"name":"entity.name.function"}}},"with_expiration":{"match":"\\s*(with)\\s*(expiration)\\s*","captures":{"1":{"name":"keyword.class.definition"},"2":{"name":"keyword.class.definition"}}}}}
1
+ {"name":"SpiceDB Schema","scopeName":"source.spicedb","patterns":[{"include":"#comment"},{"include":"#use"},{"include":"#import"},{"include":"#partial"},{"include":"#definition"},{"include":"#caveat"},{"include":"#relation"},{"include":"#permission"}],"repository":{"arrow":{"match":"\\s*([a-zA-Z_]\\w*)(-\u003e)([a-zA-Z_]\\w*)\\s*","captures":{"1":{"name":"variable.other.member.spicedb"},"2":{"name":"keyword.operator.arrow.spicedb"},"3":{"name":"variable.other.member.spicedb"}}},"arrow_alternative":{"match":"\\s*([a-zA-Z_]\\w*)(\\.any)\\(([a-zA-Z_]\\w*)\\)\\s*","captures":{"1":{"name":"variable.other.member.spicedb"},"2":{"name":"keyword.operator.arrow.spicedb"},"3":{"name":"variable.other.member.spicedb"}}},"arrow_intersection":{"match":"\\s*([a-zA-Z_]\\w*)(\\.all)\\(([a-zA-Z_]\\w*)\\)\\s*","captures":{"1":{"name":"variable.other.member.spicedb"},"2":{"name":"keyword.operator.arrow.spicedb"},"3":{"name":"variable.other.member.spicedb"}}},"caveat":{"name":"meta.embedded.block.cel","begin":"(\\bcaveat\\b)\\s+(([a-z][\\w]{1,62}[a-z0-9]\\/)*[a-z][\\w]{1,62}[a-z0-9])\\s*\\(([^\\)]*)\\)\\s*(\\{)","end":"(?\u003c=\\})$","patterns":[{"include":"source.cel"}],"beginCaptures":{"1":{"name":"keyword.function.definition"},"2":{"name":"entity.name.function"},"4":{"patterns":[{"include":"#caveatParameter"},{"include":"#caveatTypeName"},{"include":"#comma"}]},"5":{"name":"punctuation.definition.brace"}},"endCaptures":{"0":{"name":"punctuation.end.brace"}}},"caveatParameter":{"match":"([a-zA-Z_]\\w*)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"entity.name.variable"},"2":{"name":"entity.name.class"}}},"caveatTypeName":{"match":"\\s*([a-zA-Z_]\\w*)\\s*","captures":{"1":{"name":"entity.name.class"}}},"comma":{"name":"punctuation.definition.comma","match":"\\s*,\\s*"},"comment":{"patterns":[{"include":"#lineComment"},{"include":"#blockComment"}],"repository":{"blockComment":{"name":"comment.block.spicedb","begin":"\\/\\*","end":"\\*\\/"},"lineComment":{"patterns":[{"include":"#doubleSlashLineComment"}],"repository":{"doubleSlashLineComment":{"name":"comment.line.double-slash.spicedb","match":"\\/\\/.*"}}}}},"definition":{"begin":"(\\bdefinition\\b)\\s+(([a-z][\\w]{1,62}[a-z0-9]\\/)*[a-z][\\w]{1,62}[a-z0-9])\\s*(\\{)","end":"(?\u003c=\\})","patterns":[{"include":"#relation"},{"include":"#permission"},{"include":"#comment"}],"beginCaptures":{"1":{"name":"keyword.class.definition"},"2":{"name":"entity.name.class"},"4":{"name":"punctuation.definition.brace"}},"endCaptures":{"0":{"name":"punctuation.end.brace"}}},"directRelationType":{"match":"([a-zA-Z_]\\w*)","captures":{"1":{"name":"entity.name.class"}}},"import":{"match":"\\s*(import)\\s*([\"a-zA-Z_]\\w*)\\s*","captures":{"1":{"name":"keyword.class.definition"},"2":{"name":"entity.name.function"}}},"indirectRelationType":{"match":"([a-zA-Z_]\\w*)(#)([a-zA-Z_]\\w*)","captures":{"1":{"name":"entity.name.class"},"2":{"name":"punctuation.definition.hash"},"3":{"name":"variable.other.member.spicedb"}}},"nil":{"match":"\\b(nil)\\b","captures":{"1":{"name":"constant.language.nil.spicedb"}}},"partial":{"match":"\\s*(partial)\\s*([\"a-zA-Z_]\\w*)\\s*","captures":{"1":{"name":"keyword.class.definition"},"2":{"name":"entity.name.function"}}},"permission":{"begin":"(\\bpermission\\b)\\s+([a-zA-Z_]\\w*)\\s*(=)\\s*","end":"(?\u003c=;|\\n)","patterns":[{"include":"#comment"},{"include":"#arrow_alternative"},{"include":"#arrow_intersection"},{"include":"#arrow"},{"include":"#nil"},{"include":"#relationRef"},{"include":"#permissionOperator"}],"beginCaptures":{"1":{"name":"keyword.function.relation"},"2":{"name":"entity.name.function"},"3":{"name":"punctuation.definition.equal"}}},"permissionOperator":{"match":"\\s*(\\+|-|\u0026)\\s*","captures":{"1":{"name":"keyword.operator.logical"}}},"pipe":{"name":"punctuation.definition.pipe","match":"\\|"},"relation":{"begin":"(\\brelation\\b)\\s+([a-zA-Z_]\\w*)\\s*(:)","end":"(?\u003c=;|\\n)","patterns":[{"include":"#wildcardRelationType"},{"include":"#indirectRelationType"},{"include":"#directRelationType"},{"include":"#pipe"},{"include":"#with_expiration"},{"include":"#with_caveat"},{"include":"#comment"}],"beginCaptures":{"1":{"name":"keyword.variable.relation"},"2":{"name":"entity.name.variable"},"3":{"name":"punctuation.definition.colon"}}},"relationRef":{"match":"([a-zA-Z_]\\w*)\\b(?!-\u003e|\\.(?:any|all)\\()","captures":{"1":{"name":"variable.other.member.spicedb"}}},"use":{"match":"\\s*(use)\\s*([a-zA-Z_]\\w*)\\s*","captures":{"1":{"name":"keyword.class.definition"},"2":{"name":"keyword.class.definition"}}},"wildcardRelationType":{"match":"([a-zA-Z_]\\w*)(:)(\\*)","captures":{"1":{"name":"entity.name.class"},"2":{"name":"punctuation.definition.colon"},"3":{"name":"constant.language.wildcard.spicedb"}}},"with_caveat":{"match":"\\s*(with)\\s*(([a-z][\\w]{1,62}[a-z0-9]\\/)*[a-z][\\w]{1,62}[a-z0-9])\\s*","captures":{"1":{"name":"keyword.class.definition"},"2":{"name":"entity.name.function"}}},"with_expiration":{"match":"\\s*(with)\\s*(expiration)\\s*","captures":{"1":{"name":"keyword.class.definition"},"2":{"name":"support.type.expiration.spicedb"}}}}}
@@ -0,0 +1 @@
1
+ {"name":"Stim","scopeName":"source.stim","patterns":[{"include":"#comment"},{"include":"#control-flow"},{"include":"#annotation"},{"include":"#noise-channel"},{"include":"#measurement"},{"include":"#gate"},{"include":"#tag"},{"include":"#measurement-record"},{"include":"#sweep-bit"},{"include":"#negation"},{"include":"#pauli-target"},{"include":"#combiner"},{"include":"#number"},{"include":"#bracket"}],"repository":{"annotation":{"name":"keyword.other.annotation.stim","match":"\\b(DETECTOR|MPAD|OBSERVABLE_INCLUDE|QUBIT_COORDS|SHIFT_COORDS|TICK)\\b"},"bracket":{"name":"punctuation.section.brackets.stim","match":"[(){}]"},"combiner":{"name":"keyword.operator.combiner.stim","match":"\\*"},"comment":{"name":"comment.line.number-sign.stim","match":"#.*$"},"control-flow":{"name":"keyword.control.stim","match":"\\b(REPEAT|SELECT|REQUIRE|NOTLEAKED)\\b"},"gate":{"name":"keyword.other.gate.stim","match":"\\b(C_NXYZ|C_NZYX|C_XNYZ|C_XYNZ|C_XYZ|C_ZNYX|C_ZYNX|C_ZYX|CXSWAP|CX|CNOT|ZCX|CY|ZCY|CZSWAP|CZ|ZCZ|SWAPCZ|SWAPCX|SWAP|H_XZ|H_NXY|H_NXZ|H_NYZ|H_XY|H_YZ|H|SQRT_X_DAG|SQRT_X|SQRT_Y_DAG|SQRT_Y|SQRT_Z_DAG|SQRT_Z|SQRT_XX_DAG|SQRT_XX|SQRT_YY_DAG|SQRT_YY|SQRT_ZZ_DAG|SQRT_ZZ|S_DAG|S|ISWAP_DAG|ISWAP|II|XCX|XCY|XCZ|YCX|YCY|YCZ|MPP|SPP_DAG|SPP|T_DAG|T|TPP_DAG|TPP|CH|CCX|CCZ|R_X|R_Y|R_Z|U3|U|R_XX|R_YY|R_ZZ|R_PAULI|I|X|Y|Z)\\b"},"measurement":{"name":"keyword.other.measurement.stim","match":"\\b(MRX|MRY|MRZ|MR|MXX|MYY|MZZ|MX|MY|MZ|M|RX|RY|RZ|R)\\b"},"measurement-record":{"match":"\\b(rec)(\\[)(-?\\d+)(\\])","captures":{"1":{"name":"support.function.record.stim"},"2":{"name":"punctuation.section.brackets.stim"},"3":{"name":"constant.numeric.stim"},"4":{"name":"punctuation.section.brackets.stim"}}},"negation":{"name":"keyword.operator.negation.stim","match":"!"},"noise-channel":{"name":"keyword.other.noise.stim","match":"\\b(CORRELATED_ERROR|ELSE_CORRELATED_ERROR|DEPOLARIZE1|DEPOLARIZE2|HERALDED_ERASE|HERALDED_PAULI_CHANNEL_1|II_ERROR|I_ERROR|PAULI_CHANNEL_1|PAULI_CHANNEL_2|X_ERROR|Y_ERROR|Z_ERROR|LOSS_ERROR|E)\\b"},"number":{"name":"constant.numeric.stim","match":"[+-]?\\b\\d+(\\.\\d+)?([eE][+-]?\\d+)?(rad)?\\b"},"pauli-target":{"match":"([XYZL])(\\d+)","captures":{"1":{"name":"support.class.pauli.stim"},"2":{"name":"constant.numeric.stim"}}},"sweep-bit":{"match":"\\b(sweep)(\\[)(\\d+)(\\])","captures":{"1":{"name":"support.function.sweep.stim"},"2":{"name":"punctuation.section.brackets.stim"},"3":{"name":"constant.numeric.stim"},"4":{"name":"punctuation.section.brackets.stim"}}},"tag":{"name":"string.other.tag.stim","match":"\\[[^\\]]*\\]"}}}
@@ -1 +1 @@
1
- {"name":"SurrealQL","scopeName":"source.surrealql","patterns":[{"include":"#comment"},{"include":"#keywords"},{"include":"#operators"},{"include":"#js-function"},{"include":"#function"},{"include":"#value"}],"repository":{"analyzer-tokenizer":{"name":"support.constant.analyzer-tokenizer.surrealql","match":"(?i)\\b(blank|camel|class|punct)\\b"},"array":{"begin":"\\[","end":"\\]","patterns":[{"include":"#array-content"}]},"array-content":{"patterns":[{"include":"$self"},{"name":"punctuation.separator.array","match":","}]},"block":{"name":"surrealql.block","begin":"\\{","end":"\\}","patterns":[{"include":"#block-content"}]},"block-content":{"patterns":[{"include":"#string"},{"include":"#object-key"},{"include":"$self"}]},"boolean":{"name":"constant.language.bool","match":"\\b(true|TRUE|false|FALSE|True|False)\\b"},"comment":{"patterns":[{"include":"#comment.line.dash"},{"include":"#comment.line.slash"},{"include":"#comment.line.hash"},{"include":"#comment.block"}]},"comment.block":{"name":"comment.block.surrealql","begin":"/\\*","end":"\\*/"},"comment.line.dash":{"name":"comment.line.double-dash","begin":"--","end":"\\n"},"comment.line.hash":{"name":"comment.line.number-sign","begin":"#","end":"\\n"},"comment.line.slash":{"name":"comment.line.double-slash","begin":"//","end":"\\n"},"distance-name":{"name":"support.constant.distance.surrealql","match":"(?i)\\b(chebyshev|euclidean|manhattan|minkowski|hamming|jaccard|pearson|cosine)\\b"},"duration":{"name":"constant.other","match":"(\\d+(ns|µs|ms|s|m|h|d|w|y))+"},"filter-name":{"name":"support.constant.filter.surrealql","match":"(?i)\\b(edgengram|uppercase|snowball|ascii|ngram)\\b"},"function":{"begin":"(?=((?:\\b\\w+(?:::\\b\\w+)+)|count|rand)\\s*\\()","end":"(?\u003c=\\))","patterns":[{"include":"#comment"},{"name":"meta.function.arguments","begin":"\\(","end":"\\)","patterns":[{"include":"#value"}]}],"beginCaptures":{"1":{"name":"support.function"}}},"ident":{"patterns":[{"name":"support.type.property-name","begin":"`","end":"(?\u003c!\\\\)`"},{"name":"support.type.property-name","begin":"⟨","end":"(?\u003c!\\\\)⟩"}]},"identifier":{"name":"variable.other.surrealql","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"},"index-type":{"name":"constant.language.index-type.surrealql","match":"(?i)\\b(f32|f64|i16|i32|i64)\\b"},"js-function":{"begin":"(?=(\\bfunction\\b))","end":"(?\u003c=})","patterns":[{"include":"#comment"},{"name":"meta.function.arguments","begin":"\\(","end":"\\)","patterns":[{"include":"#value"}]},{"name":"meta.embedded.block.javascript","begin":"{","end":"}","patterns":[{"include":"source.js"}]}],"beginCaptures":{"1":{"name":"support.function.js"}}},"keywords":{"patterns":[{"name":"keyword.control keyword.control.surrealql","match":"(?i)\\b(keep_pruned_connections|doc_lengths_cache|doc_lengths_order|extend_candidates|postings_cache|postings_order|doc_ids_cache|doc_ids_order|authenticate|concurrently|mtree_cache|permissions|terms_cache|terms_order|transaction|changefeed|highlights|middleware|schemafull|schemaless|tokenizers|algorithm|dimension|duplicate|functions|namespace|overwrite|reference|structure|tempfiles|analyzer|capacity|computed|continue|database)\\b"},{"name":"keyword.control keyword.control.surrealql","match":"(?i)\\b(duration|enforced|flexible|function|parallel|passhash|password|readonly|relation|backend|cascade|changes|collate|columns|comment|content|default|exclude|explain|expunge|filters|graphql|include|noindex|numeric|rebuild|replace|session|timeout|version|access|always|assert|bucket|cancel)\\b"},{"name":"keyword.control keyword.control.surrealql","match":"(?i)\\b(commit|config|create|define|delete|exists|fields|ignore|insert|issuer|normal|option|record|reject|relate|remove|return|search|select|signin|signup|tables|unique|update|upsert|values|alter|async|begin|break|defer|event|fetch|field|group)\\b"},{"name":"keyword.control keyword.control.surrealql","match":"(?i)\\b(index|limit|merge|mtree|order|param|patch|roles|scope|since|sleep|split|start|table|throw|token|trace|unset|value|where|auto|bm25|desc|dist|drop|else|from|hnsw|info|into|kill|live|omit|only|root)\\b"},{"name":"keyword.control keyword.control.surrealql","match":"(?i)\\b(show|then|type|user|when|with|all|any|api|asc|efc|end|for|get|jwt|key|let|not|out|put|set|url|use|as|at|by|db|if|in|lm|m0|ns|on|sc|tb)\\b"},{"name":"keyword.control keyword.control.surrealql","match":"(?i)\\b(to|m)\\b"}]},"literal-keyword":{"name":"constant.language.literal.surrealql","match":"(?i)\\b(diff|full)\\b"},"number":{"patterns":[{"name":"constant.numeric.decimal","match":"\\b\\d+\\.\\d+(?:f|dec)?\\b"},{"name":"constant.numeric.int","match":"\\b\\d+(?:f|dec)?\\b"}]},"object-key":{"patterns":[{"match":"(?:^|{|,)[ \t]*(\"[^(?:\\\")]+\")(?=:(?!:))","captures":{"1":{"name":"string.quoted.double"}}},{"match":"(?:^|{|,)[ \t]*('[^(?:\\')]+')(?=:(?!:))","captures":{"1":{"name":"string.quoted.single"}}},{"match":"(^|\\{|\\,)[ \t]*([a-zA-Z_0-9]+)(?=:(?!:))","captures":{"2":{"name":"meta.object-literal.key"}}}]},"operators":{"patterns":[{"name":"keyword.operator.arrow.surrealql","match":"\u003c-\u003e|-\u003e|\u003c-|\u003c~"},{"include":"#regex-literal"},{"name":"keyword.operator.range.surrealql","match":"\\.\\.(?=\\=)"},{"name":"keyword.operator.range.surrealql","match":"\\.\\.(?!\\.)"},{"name":"keyword.operator.word.surrealql","match":"(?i)\\b(containsnone|containsnot|containsall|containsany|noneinside|intersects|notinside|allinside|anyinside|contains|outside|inside|and|or)\\b"},{"name":"keyword.operator.logical-and.surrealql","match":"\u0026\u0026"},{"name":"keyword.operator.logical-or.surrealql","match":"\\|\\|"},{"name":"keyword.operator.is-not.surrealql","match":"\\b(IS NOT|is not)\\b|!="},{"name":"keyword.operator.is.surrealql","match":"\\b(IS|is)\\b|="},{"name":"keyword.operator.containssome.surrealql","match":"\\b(CONTAINSSOME|containssome)\\b"},{"name":"keyword.operator.contains.surrealql","match":"∋"},{"name":"keyword.operator.containsall.surrealql","match":"⊇"},{"name":"keyword.operator.containsany.surrealql","match":"⊃"},{"name":"keyword.operator.containsnone.surrealql","match":"⊅"},{"name":"keyword.operator.containsnot.surrealql","match":"∌"},{"name":"keyword.operator.allinside.surrealql","match":"⊆"},{"name":"keyword.operator.anyinside.surrealql","match":"⊂"},{"name":"keyword.operator.noneinside.surrealql","match":"⊄"},{"name":"keyword.operator.notinside.surrealql","match":"∉"},{"name":"keyword.operator.inside.surrealql","match":"∈"},{"name":"keyword.operator.equal.surrealql","match":"=="},{"name":"keyword.operator.all-equal.surrealql","match":"\\*="},{"name":"keyword.operator.any-equal.surrealql","match":"\\?="},{"name":"keyword.operator.fuzzy-inequal.surrealql","match":"!~"},{"name":"keyword.operator.fuzzy-all-equal.surrealql","match":"\\*~"},{"name":"keyword.operator.fuzzy-any-equal.surrealql","match":"\\?~"},{"name":"keyword.operator.fuzzy-equal.surrealql","match":"~"},{"name":"keyword.operator.less-or-equal.surrealql","match":"\u003c="},{"name":"keyword.operator.less.surrealql","match":"\u003c(?!-|[a-z]+[^:])"},{"name":"keyword.operator.more-or-equal.surrealql","match":"\u003e="},{"name":"keyword.operator.more.surrealql","match":"(?\u003c!-)\u003e"},{"name":"keyword.operator.add.surrealql","match":"\\+"},{"name":"keyword.operator.subtract.surrealql","match":"-"},{"name":"keyword.operator.multiply.surrealql","match":"\\*|×|∙"},{"name":"keyword.operator.devide.surrealql","match":"\\/|÷"},{"name":"keyword.operator.matches.surrealql","match":"@([0-9]+)?@","captures":{"1":{"name":"constant.numeric.int"}}},{"name":"keyword.operator.either.surrealql","match":"\\?:"},{"name":"keyword.operator.truthy.surrealql","match":"\\?\\?"},{"name":"keyword.operator.knn.surrealql","match":"\\\u003c\\|([a-zA-Z|\\d|,])+\\|\\\u003e"}]},"positional":{"name":"constant.language.positional","match":"\\b(AFTER|after|BEFORE|before)\\b"},"query":{"patterns":[{"include":"$self"}]},"record":{"patterns":[{"match":"(\\b\\w+\\b):⟨([^⟩]+)⟩","captures":{"1":{"name":"entity.name.class"},"2":{"name":"entity.name.class"}}},{"match":"(\\b\\w+\\b):`([^`]+)`","captures":{"1":{"name":"entity.name.class"},"2":{"name":"entity.name.class"}}},{"begin":"(\\b\\w+\\b):(?=(\\b[\\w:]+\\b)\\s*\\()","end":"(?\u003c=\\))","patterns":[{"include":"#comment"},{"name":"meta.function.arguments","begin":"\\(","end":"\\)","patterns":[{"include":"#value"}]}],"beginCaptures":{"1":{"name":"entity.name.class"},"2":{"name":"support.function"}}},{"match":"(\\b\\w+\\b):(\\b\\w+\\b)","captures":{"1":{"name":"entity.name.class"},"2":{"name":"entity.name.class"}}},{"begin":"(\\b\\w+\\b):\\[","end":"\\]","patterns":[{"include":"#array-content"}],"captures":{"1":{"name":"entity.name.class"}}},{"begin":"(\\b\\w+\\b):(?=\\{)","end":"\\}","patterns":[{"include":"#block-content"}],"captures":{"1":{"name":"entity.name.class"}}}]},"regex-literal":{"name":"string.regexp.surrealql","match":"(?\u003c![A-Za-z0-9])(\\/)(?:[^\\\\/]|\\\\.|\\[(?:[^\\]\\\\]|\\\\.)*\\])*(\\/)([a-z]*)"},"string":{"patterns":[{"name":"string.quoted.double","begin":"[a-z]?\"","end":"(?\u003c!\\\\)\""},{"name":"string.quoted.single","begin":"[a-z]?'","end":"(?\u003c!\\\\)'"}]},"subquery":{"begin":"\\(","end":"\\)","patterns":[{"include":"#query"},{"include":"#value"}]},"token-type":{"name":"support.constant.token-type.surrealql","match":"(?i)\\b(eddsa|es256|es384|es512|ps256|ps384|ps512|rs256|rs384|rs512|jwks)\\b"},"type":{"name":"meta.type.annotation.surrealql","match":"[a-z]*\u003c[a-zA-Z][a-zA-Z0-9\u003c\u003e|, _]+[a-zA-Z0-9\u003e]+\u003e","captures":{"0":{"patterns":[{"name":"entity.name.type.surrealql","match":"\u003c|\u003e"},{"include":"#number"},{"include":"#void-type"}]}}},"value":{"patterns":[{"include":"#comment"},{"include":"#js-function"},{"include":"#function"},{"include":"#block"},{"include":"#array"},{"include":"#var-name"},{"include":"#boolean"},{"include":"#string"},{"include":"#ident"},{"include":"#void-type"},{"include":"#positional"},{"include":"#number"},{"include":"#duration"},{"include":"#record"},{"include":"#subquery"},{"include":"#type"},{"include":"#index-type"},{"include":"#token-type"},{"include":"#distance-name"},{"include":"#filter-name"},{"include":"#analyzer-tokenizer"},{"include":"#literal-keyword"},{"include":"#regex-literal"},{"include":"#identifier"}]},"var-name":{"patterns":[{"name":"variable.name","match":"\\$\\w+"},{"name":"variable.name","match":"\\$`\\w+`"},{"name":"variable.name","match":"\\$⟨\\w+⟩"}]},"void-type":{"name":"constant.language.void","match":"\\b(null|NULL|none|NONE)\\b"}}}
1
+ {"name":"SurrealQL","scopeName":"source.surrealql","patterns":[{"include":"#comment"},{"include":"#property"},{"include":"#define-type"},{"include":"#type-clause"},{"include":"#keywords"},{"include":"#version"},{"include":"#return-type"},{"include":"#operators"},{"include":"#js-function"},{"include":"#function"},{"include":"#value"}],"repository":{"analyzer-tokenizer":{"name":"support.constant.analyzer-tokenizer.surrealql","match":"(?i)\\b(segment|blank|camel|class|punct)\\b"},"array":{"begin":"\\[","end":"\\]","patterns":[{"include":"#array-content"}]},"array-content":{"patterns":[{"include":"$self"},{"name":"punctuation.separator.array","match":","}]},"block":{"name":"surrealql.block","begin":"\\{","end":"\\}","patterns":[{"include":"#block-content"}]},"block-content":{"patterns":[{"include":"#string"},{"include":"#object-key"},{"include":"$self"}]},"boolean":{"name":"constant.language.bool","match":"\\b(true|TRUE|false|FALSE|True|False)\\b"},"comment":{"patterns":[{"include":"#comment.line.dash"},{"include":"#comment.line.slash"},{"include":"#comment.line.hash"},{"include":"#comment.block"}]},"comment.block":{"name":"comment.block.surrealql","begin":"/\\*","end":"\\*/"},"comment.line.dash":{"name":"comment.line.double-dash","begin":"--","end":"\\n"},"comment.line.hash":{"name":"comment.line.number-sign","begin":"#","end":"\\n"},"comment.line.slash":{"name":"comment.line.double-slash","begin":"//","end":"\\n"},"define-type":{"name":"meta.type.annotation.surrealql","begin":"(?i)\\b(DEFINE|ALTER)\\s+(TYPE)\\s+(?:(IF\\s+NOT\\s+EXISTS|IF\\s+EXISTS|OVERWRITE)\\s+)?(\\w+)\\s+(AS)\\b","end":"(?=(?i)\\b(DEFAULT|ASSERT|VALUE|COMMENT|PERMISSIONS|REFERENCE|READONLY|FLEXIBLE|COMPUTED|INLINE|MATERIALIZE|MIGRATE|SQL|GRAPHQL_ALIAS|GRAPHQL_DEPRECATED|CONSTRAINT|IN|OUT|FROM|TO|ENFORCED|LIGHTWEIGHT|SCHEMAFULL|SCHEMAFUL|SCHEMALESS|CHANGEFEED|DROP|AS|DIST|DISTANCE|DIMENSION|EFC|M|LM|M0|CAPACITY|EXTEND_CANDIDATES|KEEP_PRUNED_CONNECTIONS|HASHED_VECTOR|DEGREE|L_BUILD|ALPHA|SIGNUP|SIGNIN|WITH|ALGORITHM|URL|KEY|FOR|AUTHENTICATE|DURATION|IF|ADD|RENAME|PREPARE)\\b|;|$)","patterns":[{"include":"#type-content"}],"beginCaptures":{"1":{"name":"keyword.control.surrealql"},"2":{"name":"keyword.control.surrealql"},"3":{"name":"keyword.control.surrealql"},"4":{"name":"entity.name.type.surrealql"},"5":{"name":"keyword.control.surrealql"}}},"distance-name":{"name":"support.constant.distance.surrealql","match":"(?i)\\b(cosine_normalized|inner_product|chebyshev|euclidean|manhattan|minkowski|hamming|jaccard|pearson|cosine)\\b"},"duration":{"name":"constant.other","match":"(\\d+(?:_\\d+)* *(?:ns|µs|ms|s|m|h|d|w|y)(?![A-Za-z_]))+"},"filter-name":{"name":"support.constant.filter.surrealql","match":"(?i)\\b(edgengram|lowercase|uppercase|snowball|mapper|ascii|ngram)\\b"},"function":{"begin":"\\b(\\w+(?:::\\w+)+|count|rand|\\w+(?=\u003c\\d+(?:_\\d+)*(?:\\.\\d+(?:_\\d+)*){0,2}\u003e::))(\u003c\\d+(?:_\\d+)*(?:\\.\\d+(?:_\\d+)*){0,2}\u003e)?(?:(::)(\\w+))?(?=\\s*\\()","end":"(?\u003c=\\))","patterns":[{"include":"#comment"},{"name":"meta.function.arguments","begin":"\\(","end":"\\)","patterns":[{"include":"#value"}]}],"beginCaptures":{"1":{"name":"support.function"},"2":{"name":"constant.numeric.version.surrealql"},"3":{"name":"support.function"},"4":{"name":"support.function"}}},"function-name":{"name":"support.function","match":"\\b[a-zA-Z_]\\w*(?:::\\w+)+\\b(?!\\s*\\()"},"ident":{"patterns":[{"name":"support.type.property-name","begin":"`","end":"`","patterns":[{"name":"constant.character.escape.surrealql","match":"\\\\."}]},{"name":"support.type.property-name","begin":"⟨","end":"⟩","patterns":[{"name":"constant.character.escape.surrealql","match":"\\\\."}]}]},"identifier":{"name":"variable.other.surrealql","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"},"index-type":{"name":"constant.language.index-type.surrealql","match":"(?i)\\b(f16|f32|f64|i8|i16|i32|i64|u8)\\b"},"js-function":{"begin":"(?=(\\bfunction\\b))","end":"(?\u003c=})","patterns":[{"include":"#comment"},{"name":"meta.function.arguments","begin":"\\(","end":"\\)","patterns":[{"include":"#value"}]},{"name":"meta.embedded.block.javascript","begin":"{","end":"}","patterns":[{"include":"source.js"}]}],"beginCaptures":{"1":{"name":"support.function.js"}}},"keywords":{"patterns":[{"name":"keyword.control keyword.control.surrealql","match":"(?i)\\b(keep_pruned_connections|graphql_deprecated|doc_lengths_cache|doc_lengths_order|extend_candidates|postings_cache|postings_order|compatibility|doc_ids_cache|doc_ids_order|graphql_alias|hashed_vector|introspection|query_timeout|authenticate|capabilities|concurrently|lightweight|materialize|mtree_cache|permissions|terms_cache|terms_order|transaction|changefeed|complexity|constraint|descending|highlights|middleware|references|schemafull|schemaless|signatures|tokenizers)\\b"},{"name":"keyword.control keyword.control.surrealql","match":"(?i)\\b(undeclared|withaccess|algorithm|ascending|dimension|duplicate|extension|functions|isolation|namespace|overwrite|passscram|reference|schemaful|staleness|structure|tempfiles|analyzer|audience|bindings|capacity|computed|continue|database|distance|distinct|duration|enforced|existing|fallback|flexible|fulltext|function|maxdepth|original)\\b"},{"name":"keyword.control keyword.control.surrealql","match":"(?i)\\b(parallel|passhash|password|readonly|relation|security|sequence|unsigned|analyze|backend|cascade|changes|collate|columns|comment|compact|content|context|default|definer|diskann|exclude|expired|explain|expunge|filters|graphql|include|invoker|l_build|migrate|noindex|numeric|prepare|rebuild)\\b"},{"name":"keyword.control keyword.control.surrealql","match":"(?i)\\b(refresh|replace|revoked|session|spatial|timeout|version|access|always|assert|bearer|bucket|cancel|commit|config|create|define|degree|delete|digest|exists|fields|format|ignore|inline|insert|issuer|module|normal|option|record|reject|relate|remove|rename)\\b"},{"name":"keyword.control keyword.control.surrealql","match":"(?i)\\b(return|revoke|search|select|signer|signin|signup|strict|system|tables|unique|update|upsert|values|alpha|alter|async|batch|begin|break|defer|depth|edges|event|fetch|field|grant|group|index|level|limit|merge|mtree|nulls|order)\\b"},{"name":"keyword.control keyword.control.surrealql","match":"(?i)\\b(param|patch|purge|retry|roles|scope|since|sleep|split|start|table|throw|token|trace|unset|using|value|where|auto|bm25|desc|dist|drop|else|from|hnsw|info|into|kill|live|omit|only|read|root|rows)\\b"},{"name":"keyword.control keyword.control.surrealql","match":"(?i)\\b(show|then|type|user|when|with|add|all|any|api|asc|efc|end|for|get|jwt|key|let|max|not|out|put|set|sql|url|use|as|at|by|db|if|in|kv|lm|m0)\\b"},{"name":"keyword.control keyword.control.surrealql","match":"(?i)\\b(no|ns|on|sc|tb|to|m)\\b"}]},"literal-keyword":{"name":"constant.language.literal.surrealql","match":"(?i)\\b(diff|full)\\b"},"number":{"patterns":[{"name":"constant.numeric.decimal","match":"\\b\\d+(?:_\\d+)*(?:\\.\\d+(?:_\\d+)*)?(?:[eE][+-]?\\d+(?:_\\d+)*)?(?:bigdec|dec)\\b"},{"name":"constant.numeric.decimal","match":"\\b(?:\\d+(?:_\\d+)*f(?:16|32|64)?|\\d+(?:_\\d+)*(?:\\.\\d+(?:_\\d+)*(?:[eE][+-]?\\d+(?:_\\d+)*)?|[eE][+-]?\\d+(?:_\\d+)*)(?:f(?:16|32|64)?)?)\\b"},{"name":"constant.numeric.int","match":"\\b\\d+(?:_\\d+)*(?:[iu](?:8|16|32|64))?\\b"}]},"object-key":{"patterns":[{"match":"(?:(?\u003c=[{,])|^)[ \\t]*(\"(?:[^\"\\\\]|\\\\.)*\")(?=\\s*:(?!:))","captures":{"1":{"name":"string.quoted.double"}}},{"match":"(?:(?\u003c=[{,])|^)[ \\t]*('(?:[^'\\\\]|\\\\.)*')(?=\\s*:(?!:))","captures":{"1":{"name":"string.quoted.single"}}},{"match":"(?:(?\u003c=[{,])|^)[ \\t]*([a-zA-Z_][a-zA-Z0-9_]*)(?=\\s*:(?!:))","captures":{"1":{"name":"meta.object-literal.key"}}}]},"operators":{"patterns":[{"name":"keyword.operator.arrow.surrealql","match":"\u003c-\u003e|-\u003e|\u003c-|\u003c~"},{"include":"#regex-literal"},{"name":"keyword.operator.flatten.surrealql","match":"\\.\\.\\.|…"},{"name":"keyword.operator.range.surrealql","match":"\\.\\.(?=\\=)"},{"name":"keyword.operator.range.surrealql","match":"\\.\\.(?!\\.)"},{"name":"keyword.operator.word.surrealql","match":"(?i)\\b(containsnone|containsnot|containsall|containsany|noneinside|intersects|notinside|allinside|anyinside|contains|outside|inside|and|or)\\b"},{"name":"keyword.operator.logical-and.surrealql","match":"\u0026\u0026"},{"name":"keyword.operator.logical-or.surrealql","match":"\\|\\|"},{"name":"keyword.operator.assignment.surrealql","match":"\\+\\?=|\\+=|-="},{"name":"keyword.operator.is-not.surrealql","match":"\\b(IS NOT|is not)\\b|!="},{"name":"keyword.operator.is.surrealql","match":"\\b(IS|is)\\b|="},{"name":"keyword.operator.containssome.surrealql","match":"\\b(CONTAINSSOME|containssome)\\b"},{"name":"keyword.operator.contains.surrealql","match":"∋"},{"name":"keyword.operator.containsall.surrealql","match":"⊇"},{"name":"keyword.operator.containsany.surrealql","match":"⊃"},{"name":"keyword.operator.containsnone.surrealql","match":"⊅"},{"name":"keyword.operator.containsnot.surrealql","match":"∌"},{"name":"keyword.operator.allinside.surrealql","match":"⊆"},{"name":"keyword.operator.anyinside.surrealql","match":"⊂"},{"name":"keyword.operator.noneinside.surrealql","match":"⊄"},{"name":"keyword.operator.notinside.surrealql","match":"∉"},{"name":"keyword.operator.inside.surrealql","match":"∈"},{"name":"keyword.operator.equal.surrealql","match":"=="},{"name":"keyword.operator.all-equal.surrealql","match":"\\*="},{"name":"keyword.operator.any-equal.surrealql","match":"\\?="},{"name":"keyword.operator.logical-not.surrealql","match":"!(?![=~])"},{"name":"keyword.operator.fuzzy-inequal.surrealql","match":"!~"},{"name":"keyword.operator.fuzzy-all-equal.surrealql","match":"\\*~"},{"name":"keyword.operator.fuzzy-any-equal.surrealql","match":"\\?~"},{"name":"keyword.operator.fuzzy-equal.surrealql","match":"~"},{"name":"keyword.operator.less-or-equal.surrealql","match":"\u003c="},{"name":"keyword.operator.less.surrealql","match":"\u003c(?!-|[a-z]+[^:])"},{"name":"keyword.operator.more-or-equal.surrealql","match":"\u003e="},{"name":"keyword.operator.more.surrealql","match":"(?\u003c!-)\u003e"},{"name":"keyword.operator.add.surrealql","match":"\\+"},{"name":"keyword.operator.subtract.surrealql","match":"-"},{"name":"keyword.operator.multiply.surrealql","match":"\\*|×|∙"},{"name":"keyword.operator.devide.surrealql","match":"\\/|÷"},{"name":"keyword.operator.modulo.surrealql","match":"%"},{"name":"keyword.operator.matches.surrealql","match":"@(?:([0-9]+)(?:,((?i:and|or)))?|((?i:and|or)))?@","captures":{"1":{"name":"constant.numeric.int"},"2":{"name":"keyword.operator.word.surrealql"},"3":{"name":"keyword.operator.word.surrealql"}}},{"name":"keyword.operator.optional.surrealql","match":"\\.\\?"},{"name":"keyword.operator.either.surrealql","match":"\\?:"},{"name":"keyword.operator.truthy.surrealql","match":"\\?\\?"},{"name":"keyword.operator.knn.surrealql","match":"\\\u003c\\|([a-zA-Z|\\d|,])+\\|\\\u003e"}]},"param-type":{"name":"meta.type.annotation.surrealql","begin":"(\\$\\w+)\\s*(:)(?!:)","end":"(?=[)|]|,(?![^\u003c(]*\u003e))","patterns":[{"include":"#type-content"}],"beginCaptures":{"1":{"name":"variable.name"},"2":{"name":"punctuation.separator.type.surrealql"}}},"positional":{"name":"constant.language.positional","match":"\\b(AFTER|after|BEFORE|before)\\b"},"property":{"patterns":[{"match":"(?\u003c=[^.]\\.|\\.\\.\\.|…)([a-zA-Z_][a-zA-Z0-9_]*)(?=\\s*\\()","captures":{"1":{"name":"support.function"}}},{"name":"variable.other.property.surrealql","match":"(?\u003c=[^.]\\.|\\.\\.\\.|…)[a-zA-Z_][a-zA-Z0-9_]*\\b"},{"name":"variable.other.surrealql","match":"(?\u003c=-\u003e|\u003c-|\u003c~)[a-zA-Z_][a-zA-Z0-9_]*\\b(?!:)"}]},"query":{"patterns":[{"include":"$self"}]},"record":{"patterns":[{"match":"(\\b\\w+\\b):⟨([^⟩]+)⟩","captures":{"1":{"name":"entity.name.class"},"2":{"name":"entity.name.class"}}},{"match":"(\\b\\w+\\b):`([^`]+)`","captures":{"1":{"name":"entity.name.class"},"2":{"name":"entity.name.class"}}},{"begin":"(\\b\\w+\\b):(?=(\\b[\\w:]+\\b)\\s*\\()","end":"(?\u003c=\\))","patterns":[{"include":"#comment"},{"name":"meta.function.arguments","begin":"\\(","end":"\\)","patterns":[{"include":"#value"}]}],"beginCaptures":{"1":{"name":"entity.name.class"},"2":{"name":"support.function"}}},{"match":"(\\b\\w+\\b):(\\b\\w+\\b)","captures":{"1":{"name":"entity.name.class"},"2":{"name":"entity.name.class"}}},{"begin":"(\\b\\w+\\b):\\[","end":"\\]","patterns":[{"include":"#array-content"}],"captures":{"1":{"name":"entity.name.class"}}},{"begin":"(\\b\\w+\\b):(\\{)","end":"\\}","patterns":[{"include":"#block-content"}],"captures":{"1":{"name":"entity.name.class"}}}]},"regex-literal":{"name":"string.regexp.surrealql","match":"(?\u003c![A-Za-z0-9])(\\/)(?:[^\\\\/]|\\\\.|\\[(?:[^\\]\\\\]|\\\\.)*\\])*(\\/)([a-z]*)"},"return-type":{"name":"meta.type.annotation.surrealql","begin":"(?\u003c=[)|])\\s*(-\u003e)(?=[\\w\u003c\u003e|,\\s]+\\{)","end":"(?=\\{)","patterns":[{"include":"#type-content"}],"beginCaptures":{"1":{"name":"keyword.operator.arrow.surrealql"}}},"string":{"patterns":[{"name":"string.quoted.double","begin":"(?:\\b(?:ivl|pd|pt|ts)|[a-z])?\"","end":"\"","patterns":[{"name":"constant.character.escape.surrealql","match":"\\\\."}]},{"name":"string.quoted.single","begin":"(?:\\b(?:ivl|pd|pt|ts)|[a-z])?'","end":"'","patterns":[{"name":"constant.character.escape.surrealql","match":"\\\\."}]}]},"subquery":{"begin":"\\(","end":"\\)","patterns":[{"include":"#query"},{"include":"#value"}]},"token-type":{"name":"support.constant.token-type.surrealql","match":"(?i)\\b(eddsa|es256|es384|es512|hs256|hs384|hs512|ps256|ps384|ps512|rs256|rs384|rs512|jwks)\\b"},"type":{"name":"meta.type.annotation.surrealql","match":"[a-z]*\u003c[a-zA-Z][a-zA-Z0-9\u003c\u003e|, _]+[a-zA-Z0-9\u003e]+\u003e","captures":{"0":{"patterns":[{"include":"#type-content"}]}}},"type-clause":{"name":"meta.type.annotation.surrealql","begin":"(?i)\\b(TYPE)\\b(?!\\s*:(?!:))","end":"(?=(?i)\\b(DEFAULT|ASSERT|VALUE|COMMENT|PERMISSIONS|REFERENCE|READONLY|FLEXIBLE|COMPUTED|INLINE|MATERIALIZE|MIGRATE|SQL|GRAPHQL_ALIAS|GRAPHQL_DEPRECATED|CONSTRAINT|IN|OUT|FROM|TO|ENFORCED|LIGHTWEIGHT|SCHEMAFULL|SCHEMAFUL|SCHEMALESS|CHANGEFEED|DROP|AS|DIST|DISTANCE|DIMENSION|EFC|M|LM|M0|CAPACITY|EXTEND_CANDIDATES|KEEP_PRUNED_CONNECTIONS|HASHED_VECTOR|DEGREE|L_BUILD|ALPHA|SIGNUP|SIGNIN|WITH|ALGORITHM|URL|KEY|FOR|AUTHENTICATE|DURATION|IF|ADD|RENAME|PREPARE)\\b|;|$)","patterns":[{"include":"#type-content"}],"beginCaptures":{"1":{"name":"keyword.control.surrealql"}}},"type-content":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#number"},{"include":"#void-type"},{"name":"keyword.operator.union.surrealql","match":"\\|"},{"name":"punctuation.definition.type.surrealql","match":"[\\[\\]\u003c\u003e]"},{"name":"punctuation.separator.type.surrealql","match":","},{"include":"#index-type"},{"name":"entity.name.type.surrealql","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"}]},"value":{"patterns":[{"include":"#comment"},{"include":"#property"},{"include":"#js-function"},{"include":"#function"},{"include":"#function-name"},{"include":"#block"},{"include":"#array"},{"include":"#param-type"},{"include":"#return-type"},{"include":"#var-name"},{"include":"#boolean"},{"include":"#string"},{"include":"#ident"},{"include":"#void-type"},{"include":"#positional"},{"include":"#duration"},{"include":"#number"},{"include":"#record"},{"include":"#subquery"},{"include":"#version"},{"include":"#type"},{"include":"#index-type"},{"include":"#token-type"},{"include":"#distance-name"},{"include":"#filter-name"},{"include":"#analyzer-tokenizer"},{"include":"#literal-keyword"},{"include":"#regex-literal"},{"include":"#identifier"}]},"var-name":{"patterns":[{"name":"variable.name","match":"\\$\\w+"},{"name":"variable.name","match":"\\$`\\w+`"},{"name":"variable.name","match":"\\$⟨\\w+⟩"}]},"version":{"name":"constant.numeric.version.surrealql","match":"(?\u003c=\\w)\u003c\\d+(?:_\\d+)*(?:\\.\\d+(?:_\\d+)*){0,2}\u003e"},"void-type":{"name":"constant.language.void","match":"\\b(null|NULL|none|NONE)\\b"}}}