github-linguist 9.7.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 (152) hide show
  1. checksums.yaml +4 -4
  2. data/grammars/documentation.markdown.injection.haxe.json +1 -1
  3. data/grammars/inline.hbs.json +1 -1
  4. data/grammars/inline.template.json +1 -1
  5. data/grammars/markdown.glimmer.codeblock.json +1 -1
  6. data/grammars/markdown.goose.codeblock.json +1 -0
  7. data/grammars/markdown.nextflow.codeblock.json +1 -0
  8. data/grammars/markdown.ocaml.codeblock.json +1 -0
  9. data/grammars/markdown.reason.codeblock.json +1 -0
  10. data/grammars/markdown.roc.codeblock.json +1 -0
  11. data/grammars/nextflow.interpolation.injection.json +1 -0
  12. data/grammars/nextflow.script.injection.json +1 -0
  13. data/grammars/source.abl.json +1 -1
  14. data/grammars/source.abnf.json +1 -1
  15. data/grammars/source.action.menhir.json +1 -0
  16. data/grammars/source.ampl.dat.json +1 -0
  17. data/grammars/source.ampl.json +1 -1
  18. data/grammars/source.apl.json +1 -1
  19. data/grammars/source.armasm.json +1 -0
  20. data/grammars/source.astylerc.json +1 -0
  21. data/grammars/source.atd.json +1 -0
  22. data/grammars/source.avisynth.json +1 -0
  23. data/grammars/source.baml.json +1 -1
  24. data/grammars/source.bbcbasic.json +1 -0
  25. data/grammars/source.bend.json +1 -0
  26. data/grammars/source.c++.json +1 -1
  27. data/grammars/source.c.json +1 -1
  28. data/grammars/source.c3.json +1 -1
  29. data/grammars/source.carbon.json +1 -1
  30. data/grammars/source.cedar.json +1 -0
  31. data/grammars/source.cj.json +1 -1
  32. data/grammars/source.clarion.json +1 -1
  33. data/grammars/source.cmake.json +1 -1
  34. data/grammars/source.cmhg.json +1 -0
  35. data/grammars/source.compact.json +1 -0
  36. data/grammars/source.cram.json +1 -0
  37. data/grammars/source.cs.json +1 -1
  38. data/grammars/source.cue.json +1 -1
  39. data/grammars/source.dart.json +1 -1
  40. data/grammars/source.dataflex.json +1 -0
  41. data/grammars/source.dax.json +1 -0
  42. data/grammars/source.ditroff.desc.json +1 -1
  43. data/grammars/source.dm.json +1 -1
  44. data/grammars/source.dml.json +1 -0
  45. data/grammars/source.dune-project.json +1 -0
  46. data/grammars/source.dune-workspace.json +1 -0
  47. data/grammars/source.dune.json +1 -1
  48. data/grammars/source.easycrypt.json +1 -0
  49. data/grammars/source.emacs.lisp.json +1 -1
  50. data/grammars/source.env-spec.json +1 -0
  51. data/grammars/source.erlang.json +1 -1
  52. data/grammars/source.ets.json +1 -0
  53. data/grammars/source.fpp.json +1 -1
  54. data/grammars/source.gjs.json +1 -1
  55. data/grammars/source.goose.json +1 -0
  56. data/grammars/source.graphql.json +1 -1
  57. data/grammars/source.gts.json +1 -1
  58. data/grammars/source.ice.json +1 -1
  59. data/grammars/source.ifc.json +1 -0
  60. data/grammars/source.indent-profile.json +1 -0
  61. data/grammars/source.jac.json +1 -1
  62. data/grammars/source.julia.console.json +1 -1
  63. data/grammars/source.kerml.json +1 -0
  64. data/grammars/source.liquidsoap.json +1 -1
  65. data/grammars/source.lsf.json +1 -0
  66. data/grammars/source.luau.json +1 -1
  67. data/grammars/source.lumscript.json +1 -0
  68. data/grammars/source.m2.json +1 -1
  69. data/grammars/source.maple.json +1 -0
  70. data/grammars/source.metafont.json +1 -0
  71. data/grammars/source.metapost.json +1 -0
  72. data/grammars/source.mo.json +1 -1
  73. data/grammars/source.moonbit.config.json +1 -1
  74. data/grammars/source.moonbit.json +1 -1
  75. data/grammars/source.nextflow-config.json +1 -0
  76. data/grammars/source.nextflow-groovy.json +1 -1
  77. data/grammars/source.nextflow-log.json +1 -0
  78. data/grammars/source.nextflow.json +1 -1
  79. data/grammars/source.nim.json +1 -1
  80. data/grammars/source.nushell.json +1 -1
  81. data/grammars/source.ocaml.META.json +1 -0
  82. data/grammars/source.ocaml.interface.json +1 -0
  83. data/grammars/source.ocaml.json +1 -1
  84. data/grammars/source.ocaml.menhir.json +1 -0
  85. data/grammars/source.ocaml.merlin.json +1 -0
  86. data/grammars/source.ocaml.mlx.json +1 -0
  87. data/grammars/source.ocaml.oasis.json +1 -0
  88. data/grammars/source.ocaml.ocamlbuild.json +1 -0
  89. data/grammars/source.ocaml.ocamldoc.json +1 -0
  90. data/grammars/source.ocaml.ocamlformat.json +1 -0
  91. data/grammars/source.ocaml.ocamllex.json +1 -0
  92. data/grammars/source.ocaml.opam-install.json +1 -0
  93. data/grammars/source.ocaml.opam.json +1 -0
  94. data/grammars/source.pkl.json +1 -1
  95. data/grammars/source.pl.json +1 -1
  96. data/grammars/source.prisma.json +1 -1
  97. data/grammars/source.quint.json +1 -1
  98. data/grammars/source.rascript.json +1 -1
  99. data/grammars/source.reason.json +1 -1
  100. data/grammars/source.roc.json +1 -1
  101. data/grammars/source.ron.json +1 -1
  102. data/grammars/source.rpgle.json +1 -1
  103. data/grammars/source.rpm-spec.json +1 -1
  104. data/grammars/source.skip.json +1 -0
  105. data/grammars/source.skript.json +1 -0
  106. data/grammars/source.slice.json +1 -1
  107. data/grammars/source.smithy.json +1 -1
  108. data/grammars/source.stim.json +1 -1
  109. data/grammars/source.surrealql.json +1 -1
  110. data/grammars/source.sysml.json +1 -0
  111. data/grammars/source.tablegen.json +1 -0
  112. data/grammars/source.tsp.json +1 -1
  113. data/grammars/source.tsq.json +1 -0
  114. data/grammars/source.tsrx.json +1 -0
  115. data/grammars/source.uiua.json +1 -0
  116. data/grammars/source.veryl.json +1 -0
  117. data/grammars/source.vespaSchema.json +1 -1
  118. data/grammars/source.vespaYQL.json +1 -0
  119. data/grammars/source.vim9.json +1 -0
  120. data/grammars/source.wdl.json +1 -1
  121. data/grammars/source.webassembly.json +1 -1
  122. data/grammars/source.wesl.json +1 -1
  123. data/grammars/text.html.cobmd.json +1 -0
  124. data/grammars/text.html.ember-handlebars.json +1 -1
  125. data/grammars/text.html.jte.json +1 -1
  126. data/grammars/text.html.markdown.json +1 -0
  127. data/grammars/text.html.pfm.json +1 -0
  128. data/grammars/text.html.ss.json +1 -0
  129. data/grammars/text.html.statamic.json +1 -1
  130. data/grammars/text.marko.json +1 -1
  131. data/grammars/text.roff.json +1 -1
  132. data/grammars/text.valve-cfg.json +1 -1
  133. data/grammars/text.vtt.json +1 -1
  134. data/grammars/version +1 -1
  135. data/lib/linguist/VERSION +1 -1
  136. data/lib/linguist/blob_helper.rb +2 -2
  137. data/lib/linguist/documentation.yml +3 -0
  138. data/lib/linguist/generated.rb +75 -8
  139. data/lib/linguist/generic.yml +2 -0
  140. data/lib/linguist/heuristics.yml +159 -57
  141. data/lib/linguist/languages.yml +382 -6
  142. data/lib/linguist/languages_data.rb +318 -16
  143. data/lib/linguist/samples_data.rb +201875 -193977
  144. data/lib/linguist/strategy/modeline.rb +0 -1
  145. data/lib/linguist/vendor.yml +3 -0
  146. metadata +65 -7
  147. data/grammars/source.camlp4.ocaml.json +0 -1
  148. data/grammars/source.ocamllex.json +0 -1
  149. data/grammars/source.ocamlyacc.json +0 -1
  150. data/grammars/source.reason.hover.type.json +0 -1
  151. data/grammars/source.scm.json +0 -1
  152. data/grammars/text.plain.json +0 -1
@@ -1 +1 @@
1
- {"name":"C++","scopeName":"source.c++","patterns":[{"include":"#special_block"},{"include":"#strings"},{"match":"\\b(if)\\s+(constexpr)\\b","captures":{"1":{"name":"keyword.control.c++"},"2":{"name":"keyword.control.c++"}}},{"match":"(::)\\s*(template)\\b","captures":{"1":{"name":"punctuation.separator.scope.c++"},"2":{"name":"storage.modifier.template.c++"}}},{"name":"storage.modifier.annotation.c++","match":"\\[\\[=[A-Za-z_]\\w*\\]\\]"},{"include":"source.c"},{"name":"storage.modifier.$1.c++","match":"\\b(friend|explicit|virtual)\\b"},{"name":"storage.modifier.$1.c++","match":"\\b(private|protected|public):"},{"name":"keyword.control.c++","match":"\\b(atomic_cancel|atomic_commit|atomic_noexcept|catch|contract_assert|operator|pre|post|synchronized|transaction_safe|transaction_safe_dynamic|try|throw|using)\\b"},{"name":"keyword.control.c++","match":"\\bdelete\\b(\\s*\\[\\])?|\\bnew\\b(?!])"},{"name":"variable.other.readwrite.member.c++","match":"\\b(f|m)[A-Z]\\w*\\b"},{"name":"constant.language.c++","match":"\\b(nullopt)\\b"},{"name":"variable.language.c++","match":"\\b(this)\\b"},{"name":"storage.type.template.c++","match":"\\b(template|concept)\\b\\s*"},{"name":"keyword.operator.cast.c++","match":"\\b(const_cast|dynamic_cast|reinterpret_cast|static_cast)\\b\\s*"},{"name":"keyword.operator.c++","match":"\\b(and|and_eq|bitand|bitor|co_await|co_return|co_yield|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq)\\b"},{"name":"storage.type.c++","match":"\\b(class)\\b"},{"name":"storage.modifier.c++","match":"\\b(alignas|alignof|consteval|constinit|decltype|final|mutable|noexcept|override|reflexpr|requires|typename)\\b"},{"name":"keyword.module.c++","match":"\\b(import|export|module)\\b"},{"name":"meta.function.destructor.c++","begin":"(?x)\n \t\t\t\t(?: ^ # begin-of-line\n \t\t\t\t | (?: (?\u003c!else|new|=) ) # or word + space before name\n \t\t\t\t)\n \t\t\t\t((?:[A-Za-z_][A-Za-z0-9_]*::)*+~[A-Za-z_][A-Za-z0-9_]*) # actual name\n \t\t\t\t \\s*(\\() # start bracket or end-of-line\n \t\t\t","end":"\\)","patterns":[{"include":"$base"}],"beginCaptures":{"1":{"name":"entity.name.function.c++"},"2":{"name":"punctuation.definition.parameters.begin.c"}},"endCaptures":{"0":{"name":"punctuation.definition.parameters.end.c"}}},{"name":"meta.function.destructor.prototype.c++","begin":"(?x)\n \t\t\t\t(?: ^ # begin-of-line\n \t\t\t\t | (?: (?\u003c!else|new|=) ) # or word + space before name\n \t\t\t\t)\n \t\t\t\t((?:[A-Za-z_][A-Za-z0-9_]*::)*+~[A-Za-z_][A-Za-z0-9_]*) # actual name\n \t\t\t\t \\s*(\\() # terminating semi-colon\n \t\t\t","end":"\\)","patterns":[{"include":"$base"}],"beginCaptures":{"1":{"name":"entity.name.function.c++"},"2":{"name":"punctuation.definition.parameters.begin.c"}},"endCaptures":{"0":{"name":"punctuation.definition.parameters.end.c"}}}],"repository":{"angle_brackets":{"name":"meta.angle-brackets.c++","begin":"\u003c","end":"\u003e","patterns":[{"include":"#angle_brackets"},{"include":"$base"}]},"block":{"name":"meta.block.c++","begin":"\\{","end":"\\}","patterns":[{"name":"meta.function-call.c","match":"(?x)\n \t\t\t\t(\n \t\t\t\t\t(?!while|for|do|if|else|switch|catch|return)(?: \\b[A-Za-z_][A-Za-z0-9_]*+\\b | :: )*+ # actual name\n \t\t\t\t)\n \t\t\t\t \\s*(\\()","captures":{"1":{"name":"support.function.any-method.c"},"2":{"name":"punctuation.definition.parameters.c"}}},{"include":"$base"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.c"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.c"}}},"constructor":{"patterns":[{"name":"meta.function.constructor.c++","begin":"(?x)\n \t\t\t\t(?: ^\\s*) # begin-of-line\n \t\t\t\t((?!while|for|do|if|else|switch|catch)[A-Za-z_][A-Za-z0-9_:]*) # actual name\n \t\t\t\t \\s*(\\() # start bracket or end-of-line\n \t\t\t","end":"\\)","patterns":[{"include":"$base"}],"beginCaptures":{"1":{"name":"entity.name.function.c++"},"2":{"name":"punctuation.definition.parameters.begin.c"}},"endCaptures":{"0":{"name":"punctuation.definition.parameters.end.c"}}},{"name":"meta.function.constructor.initializer-list.c++","begin":"(?x)\n \t\t\t\t(:) # begin-of-line\n \t\t\t\t((?=\\s*[A-Za-z_][A-Za-z0-9_:]* # actual name\n \t\t\t\t \\s*(\\())) # start bracket or end-of-line\n \t\t\t","end":"(?=\\{)","patterns":[{"include":"$base"}],"beginCaptures":{"1":{"name":"punctuation.definition.parameters.c"}}}]},"special_block":{"patterns":[{"name":"meta.namespace-block${2:+.$2}.c++","begin":"\\b(namespace)\\b\\s*([_A-Za-z][_A-Za-z0-9]*\\b)?+","end":"(?\u003c=\\})|(?=(;|,|\\(|\\)|\u003e|\\[|\\]|=))","patterns":[{"begin":"\\{","end":"\\}","patterns":[{"include":"#special_block"},{"include":"#constructor"},{"include":"$base"}],"beginCaptures":{"0":{"name":"punctuation.definition.scope.c++"}},"endCaptures":{"0":{"name":"punctuation.definition.scope.c++"}}},{"include":"$base"}],"captures":{"1":{"name":"keyword.control.namespace.$2"}},"beginCaptures":{"1":{"name":"storage.type.c++"},"2":{"name":"entity.name.type.c++"}}},{"name":"meta.class-struct-block.c++","begin":"\\b(class|struct)\\b\\s*([_A-Za-z][_A-Za-z0-9]*\\b)?+(\\s*:\\s*(public|protected|private)\\b\\s*([_A-Za-z][_A-Za-z0-9]*\\b)((\\s*,\\s*(public|protected|private)\\b\\s*[_A-Za-z][_A-Za-z0-9]*\\b)*))?","end":"(?\u003c=\\})|(?=(;|\\(|\\)|\u003e|\\[|\\]|=))","patterns":[{"include":"#angle_brackets"},{"begin":"\\{","end":"(\\})(\\s*\\n)?","patterns":[{"include":"#special_block"},{"include":"#constructor"},{"include":"$base"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.c++"}},"endCaptures":{"1":{"name":"punctuation.definition.invalid.c++"},"2":{"name":"invalid.illegal.you-forgot-semicolon.c++"}}},{"include":"$base"}],"beginCaptures":{"1":{"name":"storage.type.c++"},"2":{"name":"entity.name.type.c++"},"4":{"name":"storage.type.modifier.c++"},"5":{"name":"entity.name.type.inherited.c++"},"6":{"patterns":[{"name":"storage.type.modifier.c++","match":"\\b(public|protected|private)\\b"},{"name":"entity.name.type.inherited.c++","match":"[_A-Za-z][_A-Za-z0-9]*"}]}}},{"name":"meta.extern-block.c++","begin":"\\b(extern)(?=\\s*\")","end":"(?\u003c=\\})|(?=\\w)","patterns":[{"begin":"\\{","end":"\\}","patterns":[{"include":"#special_block"},{"include":"$base"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.c"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.c"}}},{"include":"$base"}],"beginCaptures":{"1":{"name":"storage.modifier.c++"}}}]},"strings":{"patterns":[{"name":"string.quoted.double.c++","begin":"(u|u8|U|L)?\"","end":"\"","patterns":[{"name":"constant.character.escape.c++","match":"\\\\u[0-9A-Fa-f]{4}|\\\\U[0-9A-Fa-f]{8}"},{"name":"constant.character.escape.c++","match":"\\\\['\"?\\\\abfnrtv]"},{"name":"constant.character.escape.c++","match":"\\\\[0-7]{1,3}"},{"name":"constant.character.escape.c++","match":"\\\\x[0-9A-Fa-f]+"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c++"},"1":{"name":"meta.encoding.c++"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c++"}}},{"name":"string.quoted.double.raw.c++","begin":"(u|u8|U|L)?R\"(?:([^ ()\\\\\\t]{0,16})|([^ ()\\\\\\t]*))\\(","end":"\\)\\2(\\3)\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c++"},"1":{"name":"meta.encoding.c++"},"3":{"name":"invalid.illegal.delimiter-too-long.c++"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c++"},"1":{"name":"invalid.illegal.delimiter-too-long.c++"}}}]}}}
1
+ {"name":"C++","scopeName":"source.c++","patterns":[{"include":"#special_block"},{"include":"#strings"},{"match":"\\b(if)\\s+(constexpr)\\b","captures":{"1":{"name":"keyword.control.c++"},"2":{"name":"keyword.control.c++"}}},{"match":"(::)\\s*(template)\\b","captures":{"1":{"name":"punctuation.separator.scope.c++"},"2":{"name":"storage.modifier.template.c++"}}},{"name":"constant.other.annotation.c++","begin":"(\\[\\[=)(?!\\])\\s*((?:[A-Za-z_]\\w*\\s*::\\s*)*+[A-Za-z_]\\w*)?","end":"\\]\\]","patterns":[{"include":"$base"}],"beginCaptures":{"1":{"name":"punctuation.definition.annotation.begin.c++"}},"endCaptures":{"0":{"name":"punctuation.definition.annotation.end.c++"}}},{"include":"source.c"},{"name":"storage.modifier.$1.c++","match":"\\b(friend|explicit|virtual)\\b"},{"name":"storage.modifier.$1.c++","match":"\\b(private|protected|public):"},{"name":"keyword.control.c++","match":"\\b(catch|contract_assert|operator|pre|post|try|throw|using)\\b"},{"name":"keyword.control.c++","match":"\\bdelete\\b(\\s*\\[\\])?|\\bnew\\b(?!])"},{"name":"variable.other.readwrite.member.c++","match":"\\b(f|m)[A-Z]\\w*\\b"},{"name":"constant.language.c++","match":"\\b(nullopt)\\b"},{"name":"variable.language.c++","match":"\\b(this)\\b"},{"name":"storage.type.template.c++","match":"\\b(template|concept)\\b\\s*"},{"name":"keyword.operator.cast.c++","match":"\\b(const_cast|dynamic_cast|reinterpret_cast|static_cast)\\b\\s*"},{"name":"keyword.operator.c++","match":"\\b(and|and_eq|bitand|bitor|co_await|co_return|co_yield|compl|not|not_eq|or|or_eq|typeid|xor|xor_eq)\\b"},{"name":"storage.type.c++","match":"\\b(class)\\b"},{"name":"storage.modifier.c++","match":"\\b(alignas|alignof|consteval|constinit|decltype|final|mutable|noexcept|override|requires|typename)\\b"},{"name":"keyword.module.c++","match":"\\b(import|export|module)\\b"},{"name":"meta.function.destructor.c++","begin":"(?x)\n \t\t\t\t(?: ^ # begin-of-line\n \t\t\t\t | (?: (?\u003c!else|new|=) ) # or word + space before name\n \t\t\t\t)\n \t\t\t\t((?:[A-Za-z_][A-Za-z0-9_]*::)*+~[A-Za-z_][A-Za-z0-9_]*) # actual name\n \t\t\t\t \\s*(\\() # start bracket or end-of-line\n \t\t\t","end":"\\)","patterns":[{"include":"$base"}],"beginCaptures":{"1":{"name":"entity.name.function.c++"},"2":{"name":"punctuation.definition.parameters.begin.c"}},"endCaptures":{"0":{"name":"punctuation.definition.parameters.end.c"}}},{"name":"meta.function.destructor.prototype.c++","begin":"(?x)\n \t\t\t\t(?: ^ # begin-of-line\n \t\t\t\t | (?: (?\u003c!else|new|=) ) # or word + space before name\n \t\t\t\t)\n \t\t\t\t((?:[A-Za-z_][A-Za-z0-9_]*::)*+~[A-Za-z_][A-Za-z0-9_]*) # actual name\n \t\t\t\t \\s*(\\() # terminating semi-colon\n \t\t\t","end":"\\)","patterns":[{"include":"$base"}],"beginCaptures":{"1":{"name":"entity.name.function.c++"},"2":{"name":"punctuation.definition.parameters.begin.c"}},"endCaptures":{"0":{"name":"punctuation.definition.parameters.end.c"}}}],"repository":{"angle_brackets":{"name":"meta.angle-brackets.c++","begin":"\u003c","end":"\u003e","patterns":[{"include":"#angle_brackets"},{"include":"$base"}]},"block":{"name":"meta.block.c++","begin":"\\{","end":"\\}","patterns":[{"name":"meta.function-call.c","match":"(?x)\n \t\t\t\t(\n \t\t\t\t\t(?!while|for|do|if|else|switch|catch|return)(?: \\b[A-Za-z_][A-Za-z0-9_]*+\\b | :: )*+ # actual name\n \t\t\t\t)\n \t\t\t\t \\s*(\\()","captures":{"1":{"name":"support.function.any-method.c"},"2":{"name":"punctuation.definition.parameters.c"}}},{"include":"$base"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.c"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.c"}}},"constructor":{"patterns":[{"name":"meta.function.constructor.c++","begin":"(?x)\n \t\t\t\t(?: ^\\s*) # begin-of-line\n \t\t\t\t((?!while|for|do|if|else|switch|catch)[A-Za-z_][A-Za-z0-9_:]*) # actual name\n \t\t\t\t \\s*(\\() # start bracket or end-of-line\n \t\t\t","end":"\\)","patterns":[{"include":"$base"}],"beginCaptures":{"1":{"name":"entity.name.function.c++"},"2":{"name":"punctuation.definition.parameters.begin.c"}},"endCaptures":{"0":{"name":"punctuation.definition.parameters.end.c"}}},{"name":"meta.function.constructor.initializer-list.c++","begin":"(?x)\n \t\t\t\t(:) # begin-of-line\n \t\t\t\t((?=\\s*[A-Za-z_][A-Za-z0-9_:]* # actual name\n \t\t\t\t \\s*(\\())) # start bracket or end-of-line\n \t\t\t","end":"(?=\\{)","patterns":[{"include":"$base"}],"beginCaptures":{"1":{"name":"punctuation.definition.parameters.c"}}}]},"special_block":{"patterns":[{"name":"meta.namespace-block${2:+.$2}.c++","begin":"\\b(namespace)\\b\\s*([_A-Za-z][_A-Za-z0-9]*\\b)?+","end":"(?\u003c=\\})|(?=(;|,|\\(|\\)|\u003e|\\[|\\]|=))","patterns":[{"begin":"\\{","end":"\\}","patterns":[{"include":"#special_block"},{"include":"#constructor"},{"include":"$base"}],"beginCaptures":{"0":{"name":"punctuation.definition.scope.c++"}},"endCaptures":{"0":{"name":"punctuation.definition.scope.c++"}}},{"include":"$base"}],"captures":{"1":{"name":"keyword.control.namespace.$2"}},"beginCaptures":{"1":{"name":"storage.type.c++"},"2":{"name":"entity.name.type.c++"}}},{"name":"meta.class-struct-block.c++","begin":"\\b(class|struct)\\b\\s*([_A-Za-z][_A-Za-z0-9]*\\b)?+(\\s*:\\s*(public|protected|private)\\b\\s*([_A-Za-z][_A-Za-z0-9]*\\b)((\\s*,\\s*(public|protected|private)\\b\\s*[_A-Za-z][_A-Za-z0-9]*\\b)*))?","end":"(?\u003c=\\})|(?=(;|\\(|\\)|\u003e|\\[|\\]|=))","patterns":[{"include":"#angle_brackets"},{"begin":"\\{","end":"(\\})(\\s*\\n)?","patterns":[{"include":"#special_block"},{"include":"#constructor"},{"include":"$base"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.c++"}},"endCaptures":{"1":{"name":"punctuation.definition.invalid.c++"},"2":{"name":"invalid.illegal.you-forgot-semicolon.c++"}}},{"include":"$base"}],"beginCaptures":{"1":{"name":"storage.type.c++"},"2":{"name":"entity.name.type.c++"},"4":{"name":"storage.type.modifier.c++"},"5":{"name":"entity.name.type.inherited.c++"},"6":{"patterns":[{"name":"storage.type.modifier.c++","match":"\\b(public|protected|private)\\b"},{"name":"entity.name.type.inherited.c++","match":"[_A-Za-z][_A-Za-z0-9]*"}]}}},{"name":"meta.extern-block.c++","begin":"\\b(extern)(?=\\s*\")","end":"(?\u003c=\\})|(?=\\w)","patterns":[{"begin":"\\{","end":"\\}","patterns":[{"include":"#special_block"},{"include":"$base"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.c"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.c"}}},{"include":"$base"}],"beginCaptures":{"1":{"name":"storage.modifier.c++"}}}]},"strings":{"patterns":[{"name":"string.quoted.double.c++","begin":"(u|u8|U|L)?\"","end":"\"","patterns":[{"name":"constant.character.escape.c++","match":"\\\\u[0-9A-Fa-f]{4}|\\\\U[0-9A-Fa-f]{8}"},{"name":"constant.character.escape.c++","match":"\\\\['\"?\\\\abfnrtv]"},{"name":"constant.character.escape.c++","match":"\\\\[0-7]{1,3}"},{"name":"constant.character.escape.c++","match":"\\\\x[0-9A-Fa-f]+"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c++"},"1":{"name":"meta.encoding.c++"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c++"}}},{"name":"string.quoted.double.raw.c++","begin":"(u|u8|U|L)?R\"(?:([^ ()\\\\\\t]{0,16})|([^ ()\\\\\\t]*))\\(","end":"\\)\\2(\\3)\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c++"},"1":{"name":"meta.encoding.c++"},"3":{"name":"invalid.illegal.delimiter-too-long.c++"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c++"},"1":{"name":"invalid.illegal.delimiter-too-long.c++"}}}]}}}
@@ -1 +1 @@
1
- {"name":"C","scopeName":"source.c","patterns":[{"include":"#preprocessor-rule-enabled"},{"include":"#preprocessor-rule-disabled"},{"include":"#preprocessor-rule-other"},{"include":"#comments"},{"name":"keyword.control.c","match":"\\b(assert|break|case|continue|countof|_Countof|default|defined|do|else|for|goto|if|_Pragma|return|sizeof|static_assert|_Static_assert|switch|typeof|typeof_unqual|while)\\b"},{"name":"storage.type.c","match":"\\b(_Atomic|asm|__asm__|auto|_BitInt|bool|_Bool|char|complex|_Complex|_Decimal32|_Decimal64|_Decimal128|double|enum|float|fortran|__fortran__|_Generic|imaginary|_Imaginary|int|long|_Noreturn|short|signed|struct|typedef|union|unsigned|void)\\b"},{"name":"storage.typealias.c","match":"\\b(?:(?:u?int|char(?:8|16|32)|wchar|float(?:16|32|64|128)|bfloat16)_t|[uif](?:8|16|32|64|128)|bf16)\\b"},{"name":"storage.modifier.c","match":"\\b(alignas|_Alignas|alignof|_Alignof|const|constexpr|extern|register|restrict|static|thread_local|_Thread_local|volatile|inline)\\b"},{"name":"storage.modifier.attribute.c","match":"\\[\\[(?!=)[^\\]]*\\]\\]"},{"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|nullptr|true|false|TRUE|FALSE)\\b"},{"name":"constant.other.variable.all-caps.c","match":"\\b[A-Z][A-Z0-9_]+\\b"},{"include":"#sizeof"},{"name":"constant.numeric.c","match":"(?x)\\b\n\t\t\t( (?i:\n\t\t\t 0x ( [0-9A-Fa-f]+ ( ' [0-9A-Fa-f]+ )* )? # Hexadecimal\n\t\t\t | 0b ( [0-1]+ ( ' [0-1]+ )* )? # Binary\n\t\t\t | 0 ( [0-7]+ ( ' [0-7]+ )* ) # Octal\n\t\t\t | ( [0-9]+ ( ' [0-9]+ )* ) # Decimal\n\t\t\t )\n\t\t\t ( ([uUfF] | u?ll? | U?LL?)\\b | (?\u003cinc\u003e') | \\b )\n\t\t\t| ( [0-9]+ ( ' [0-9]+ )* )?\n\t\t\t (?i:\n\t\t\t \\. ( [0-9]+ ( ' [0-9]+ )* ) E(\\+|-)? ( [0-9]+ ( ' [0-9]+ )* )\n\t\t\t | \\. ( [0-9]+ ( ' [0-9]+ )* )\n\t\t\t | E(\\+|-)? ( [0-9]+ ( ' [0-9]+ )* )\n\t\t\t )\n\t\t\t ( (?\u003cinc\u003e') | \\b )\n\t\t\t)","captures":{"inc":{"name":"invalid.illegal.digit-separator-should-not-be-last.c++"}}},{"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.begin.c"},"5":{"name":"variable.parameter.preprocessor.c"},"7":{"name":"punctuation.separator.parameters.c"},"8":{"name":"punctuation.definition.parameters.end.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*(embed|include|import)\\b","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|elifdef|elifndef|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.posix-reserved.c","match":"\\b([a-z0-9_]+_t)\\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|sizeof|assert|[cr]?iterate|(?:::)?new|(?:::)?delete)\\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.$1.c++","match":"\\b(const|constexpr|final|override|noexcept)\\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":{"match":"(\\.|\\-\u003e)(?:\\s*(template)\\s+)?([a-zA-Z_][a-zA-Z_0-9]*)\\b(?!\\s*\\()","captures":{"1":{"name":"punctuation.separator.variable-access.c"},"2":{"name":"storage.modifier.template.c++"},"3":{"name":"variable.other.dot-access.c"}}},"block":{"patterns":[{"name":"meta.block.c","begin":"\\{","end":"\\}","patterns":[{"include":"#block_innards"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.c"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.c"}}}]},"block_innards":{"patterns":[{"include":"#preprocessor-rule-enabled-block"},{"include":"#preprocessor-rule-disabled-block"},{"include":"#preprocessor-rule-other-block"},{"include":"#sizeof"},{"include":"#access"},{"include":"#c_function_call"},{"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"}]},"c_function_call":{"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|sizeof|assert|[cr]?iterate|(?:::)?new|(?:::)?delete)\\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"}}},"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":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.c"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.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"}}},{"begin":"(^[ \\t]+)?(?=//)","end":"(?!\\G)","patterns":[{"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++"}}}],"beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.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"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.c"}},"endCaptures":{"0":{"name":"punctuation.section.parens.end.c"}}},"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{0,2}|[4-7]\\d?|x[a-fA-F0-9]{0,2}|u[a-fA-F0-9]{0,4}|U[a-fA-F0-9]{0,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"}]}}}
1
+ {"name":"C","scopeName":"source.c","patterns":[{"include":"#preprocessor-rule-enabled"},{"include":"#preprocessor-rule-disabled"},{"include":"#preprocessor-rule-other"},{"include":"#comments"},{"name":"keyword.control.c","match":"\\b(assert|break|case|continue|countof|_Countof|default|defined|do|else|for|goto|if|_Pragma|return|sizeof|static_assert|_Static_assert|switch|typeof|typeof_unqual|while)\\b"},{"name":"storage.type.c","match":"\\b(_Atomic|asm|__asm__|auto|_BitInt|bool|_Bool|char|complex|_Complex|_Decimal32|_Decimal64|_Decimal128|double|enum|float|fortran|__fortran__|_Generic|imaginary|_Imaginary|int|long|_Noreturn|short|signed|struct|typedef|union|unsigned|void)\\b"},{"name":"storage.typealias.c","match":"\\b(?:(?:u?int|char(?:8|16|32)|wchar|float(?:16|32|64|128)|bfloat16)_t|[uif](?:8|16|32|64|128)|bf16)\\b"},{"name":"storage.modifier.c","match":"\\b(alignas|_Alignas|alignof|_Alignof|const|constexpr|extern|register|restrict|static|thread_local|_Thread_local|volatile|inline)\\b"},{"name":"constant.other.attribute.c","begin":"\\[\\[(?!=)\\s*(?=[A-Za-z_])","end":"\\]\\]","patterns":[{"include":"$base"}]},{"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|nullptr|true|false|TRUE|FALSE)\\b"},{"name":"constant.other.variable.all-caps.c","match":"\\b[A-Z][A-Z0-9_]+\\b"},{"include":"#sizeof"},{"name":"constant.numeric.c","match":"(?x)\\b\n\t\t\t( (?i:\n\t\t\t 0x ( [0-9A-Fa-f]+ ( ' [0-9A-Fa-f]+ )* )? # Hexadecimal\n\t\t\t | 0b ( [0-1]+ ( ' [0-1]+ )* )? # Binary\n\t\t\t | 0 ( [0-7]+ ( ' [0-7]+ )* ) # Octal\n\t\t\t | ( [0-9]+ ( ' [0-9]+ )* ) # Decimal\n\t\t\t )\n\t\t\t ( ([uUfF] | u?ll? | U?LL?)\\b | (?\u003cinc\u003e') | \\b )\n\t\t\t| ( [0-9]+ ( ' [0-9]+ )* )?\n\t\t\t (?i:\n\t\t\t \\. ( [0-9]+ ( ' [0-9]+ )* ) E(\\+|-)? ( [0-9]+ ( ' [0-9]+ )* )\n\t\t\t | \\. ( [0-9]+ ( ' [0-9]+ )* )\n\t\t\t | E(\\+|-)? ( [0-9]+ ( ' [0-9]+ )* )\n\t\t\t )\n\t\t\t ( (?\u003cinc\u003e') | \\b )\n\t\t\t)","captures":{"inc":{"name":"invalid.illegal.digit-separator-should-not-be-last.c++"}}},{"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.begin.c"},"5":{"name":"variable.parameter.preprocessor.c"},"7":{"name":"punctuation.separator.parameters.c"},"8":{"name":"punctuation.definition.parameters.end.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*(embed|include|import)\\b","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|elifdef|elifndef|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.posix-reserved.c","match":"\\b([a-z0-9_]+_t)\\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|sizeof|assert|pre|post|contract_assert|[cr]?iterate|(?:::)?new|(?:::)?delete)\\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.$1.c++","match":"\\b(const|constexpr|final|override|noexcept)\\b"},{"name":"keyword.control.c++","match":"\\b(pre|post)(?=\\s*\\()"},{"include":"#block"}],"beginCaptures":{"1":{"name":"punctuation.whitespace.function.leading.c"},"3":{"name":"entity.name.function.c"},"4":{"name":"punctuation.definition.parameters.c"}}}],"repository":{"access":{"match":"(\\.|\\-\u003e)(?:\\s*(template)\\s+)?([a-zA-Z_][a-zA-Z_0-9]*)\\b(?!\\s*\\()","captures":{"1":{"name":"punctuation.separator.variable-access.c"},"2":{"name":"storage.modifier.template.c++"},"3":{"name":"variable.other.dot-access.c"}}},"block":{"patterns":[{"name":"meta.block.c","begin":"\\{","end":"\\}","patterns":[{"include":"#block_innards"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.c"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.c"}}}]},"block_innards":{"patterns":[{"include":"#preprocessor-rule-enabled-block"},{"include":"#preprocessor-rule-disabled-block"},{"include":"#preprocessor-rule-other-block"},{"include":"#sizeof"},{"include":"#access"},{"include":"#c_function_call"},{"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"}]},"c_function_call":{"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|sizeof|assert|pre|post|contract_assert|[cr]?iterate|(?:::)?new|(?:::)?delete)\\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"}}},"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":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.c"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.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"}}},{"begin":"(^[ \\t]+)?(?=//)","end":"(?!\\G)","patterns":[{"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++"}}}],"beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.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"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.c"}},"endCaptures":{"0":{"name":"punctuation.section.parens.end.c"}}},"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{0,2}|[4-7]\\d?|x[a-fA-F0-9]{0,2}|u[a-fA-F0-9]{0,4}|U[a-fA-F0-9]{0,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"}]}}}
@@ -1 +1 @@
1
- {"name":"C3","scopeName":"source.c3","patterns":[{"include":"#top_level"},{"include":"#statements"}],"repository":{"assign_right_expression":{"begin":"=","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.c3"}}},"attribute":{"patterns":[{"name":"meta.annotation.c3","begin":"@(?:(?:align|allow_deprecated|benchmark|bigendian|builtin|callconv|cname|compact|const|constinit|deprecated|dynamic|export|finalizer|format|if|inline|init|jump|link|littleendian|local|maydiscard|mustinit|naked|noalias|nodiscard|noinit|noinline|nopadding|norecurse|noreturn|nosanitize|nostrip|obfuscate|operator|operator_r|operator_s|optional|overlap|packed|private|public|pure|reflect|safeinfer|safemacro|simd|section|tag|test|unused|used|wasm|weak|weaklink|winmain)\\b|(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b))","end":"(?=[^ \\t(])|(?\u003c=\\))","patterns":[{"include":"#parens"}],"beginCaptures":{"0":{"name":"keyword.annotation.c3"}}}]},"block":{"patterns":[{"name":"meta.block.c3","begin":"\\{","end":"\\}","patterns":[{"include":"#statements"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.c3"}}}]},"block_comment":{"name":"comment.block.c3","begin":"/\\*","end":"\\*/","patterns":[{"include":"#block_comment_body"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.c3"}}},"block_comment_body":{"patterns":[{"begin":"/\\*","end":"\\*/","patterns":[{"include":"#block_comment_body"}]}]},"brackets":{"patterns":[{"name":"meta.brackets.c3","begin":"\\[\u003c?","end":"\u003e?\\]","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.section.brackets.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.brackets.end.c3"}}}]},"builtin":{"patterns":[{"match":"(\\$\\$(?:\\b_*[A-Z][_A-Z0-9]*\\b))|(\\$\\$(?:\\b_*[a-z][_a-zA-Z0-9]*\\b))","captures":{"1":{"name":"constant.language.c3"},"2":{"name":"entity.name.function.builtin.c3"}}}]},"bytes_literal":{"patterns":[{"name":"string.quoted.other.c3","begin":"(x)([\"'`])","end":"\\2","patterns":[{"name":"constant.numeric.integer.c3","match":"[\\sfA-Fa-f0-9]+"}],"beginCaptures":{"1":{"name":"keyword.other.c3"},"2":{"name":"punctuation.definition.string.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c3"}}},{"name":"string.quoted.other.c3","begin":"(b64)([\"'`])","end":"\\2","patterns":[{"name":"constant.numeric.integer.c3","match":"[\\sA-Za-z0-9+/=]+"}],"beginCaptures":{"1":{"name":"keyword.other.c3"},"2":{"name":"punctuation.definition.string.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c3"}}}]},"char_literal":{"name":"string.quoted.single.c3","begin":"'","end":"'","patterns":[{"include":"#escape_sequence"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c3"}}},"comments":{"patterns":[{"include":"#line_comment"},{"include":"#block_comment"},{"include":"#doc_comment"}]},"constants":{"patterns":[{"name":"constant.language.c3","match":"\\b(true|false|null)\\b"},{"begin":"(?:\\b_*[A-Z][_A-Z0-9]*\\b)","end":"(?=[^{ \\t])|(?\u003c=\\})","patterns":[{"include":"#generic_args"}],"beginCaptures":{"0":{"name":"variable.other.constant.c3"}}}]},"contract_expression":{"patterns":[{"include":"#comments"},{"include":"#function"},{"include":"#constants"},{"include":"#builtin"},{"include":"#real_literal"},{"include":"#integer_literal"},{"include":"#operators"},{"include":"#keywords"},{"include":"#type"},{"include":"#path"},{"include":"#function_call"},{"include":"#variable"},{"include":"#parens"},{"include":"#brackets"},{"include":"#block"},{"include":"#punctuation"},{"include":"#leftover_at_ident"}]},"control_statements":{"patterns":[{"begin":"\\$for\\b","end":":","patterns":[{"include":"#statements"}],"beginCaptures":{"0":{"name":"keyword.control.ct.c3"}},"endCaptures":{"0":{"name":"punctuation.separator.c3"}}},{"begin":"\\$foreach\\b","end":"(?\u003c=:)","patterns":[{"include":"#comments"},{"name":"variable.other.c3","match":"\\$(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)"},{"name":"punctuation.separator.c3","match":","},{"begin":":","end":":","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.operator.c3"}},"endCaptures":{"0":{"name":"punctuation.separator.c3"}}}],"beginCaptures":{"0":{"name":"keyword.control.ct.c3"}}},{"begin":"\\bfor\\b","end":"(?\u003c=\\))","patterns":[{"include":"#comments"},{"begin":"\\(","end":"\\)","patterns":[{"include":"#statements"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.c3"}}}],"beginCaptures":{"0":{"name":"keyword.control.c3"}}},{"begin":"\\$(?:switch|case|default|if)\\b","end":":","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.control.ct.c3"}},"endCaptures":{"0":{"name":"punctuation.separator.c3"}}},{"begin":"\\b(?:case|default)\\b","end":":","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.control.c3"}},"endCaptures":{"0":{"name":"punctuation.separator.c3"}}}]},"doc_comment":{"begin":"(?=\u003c\\*)","end":"(\\*\u003e)","patterns":[{"include":"#doc_comment_body"}],"endCaptures":{"0":{"name":"comment.block.documentation.c3"},"1":{"name":"punctuation.definition.comment.end.c3"}}},"doc_comment_body":{"patterns":[{"begin":"(\u003c\\*)\\s*(?=@)","end":"(?=\\*\u003e)","patterns":[{"match":"@param(?:\\s*\\[\u0026?(?:in|out|inout)\\])?\\s*(?:([$#]?(?:\\b_*[a-z][_a-zA-Z0-9]*\\b))|(\\$(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b))|(\\.\\.\\.))","captures":{"0":{"name":"comment.block.documentation.c3"},"1":{"name":"variable.parameter.c3"},"2":{"name":"support.type.c3"},"3":{"name":"keyword.operator.variadic.c3"}}},{"begin":"@(?:require\\b|ensure\\b|return\\?)","end":"(?=:|\\*\u003e|$)","patterns":[{"include":"#contract_expression"}],"beginCaptures":{"0":{"name":"comment.block.documentation.c3"}}},{"name":"comment.block.documentation.c3","match":"@(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)"},{"name":"comment.block.documentation.c3","match":":"},{"name":"comment.block.documentation.c3","match":"`[^`]*`|\"[^\"]*\""}],"beginCaptures":{"0":{"name":"comment.block.documentation.c3"},"1":{"name":"punctuation.definition.comment.begin.c3"}}},{"name":"comment.block.documentation.c3","begin":"(\u003c\\*)","end":"(?=^\\s*@|\\*\u003e)","beginCaptures":{"0":{"name":"comment.block.documentation.c3"},"1":{"name":"punctuation.definition.comment.begin.c3"}}},{"end":"(?=\\*\u003e)","patterns":[{"match":"^\\s*@param(?:\\s*\\[\u0026?(?:in|out|inout)\\])?\\s*(?:([$#]?(?:\\b_*[a-z][_a-zA-Z0-9]*\\b))|(\\$(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b))|(\\.\\.\\.))","captures":{"0":{"name":"comment.block.documentation.c3"},"1":{"name":"variable.parameter.c3"},"2":{"name":"support.type.c3"},"3":{"name":"keyword.operator.variadic.c3"}}},{"begin":"^\\s*@(?:require\\b|ensure\\b|return\\?)","end":"(?=:|\\*\u003e|$)","patterns":[{"include":"#contract_expression"}],"beginCaptures":{"0":{"name":"comment.block.documentation.c3"}}},{"name":"comment.block.documentation.c3","match":"^\\s*@(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)"},{"name":"comment.block.documentation.c3","match":":"},{"name":"comment.block.documentation.c3","match":"`[^`]*`|\"[^\"]*\""}]}]},"escape_sequence":{"name":"constant.character.escape.c3","match":"\\\\([0abefnrtv'\"\\\\]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})"},"expression":{"patterns":[{"include":"#comments"},{"include":"#function"},{"include":"#constants"},{"include":"#builtin"},{"include":"#literals"},{"include":"#operators"},{"include":"#keywords"},{"include":"#type"},{"include":"#path"},{"include":"#function_call"},{"include":"#variable"},{"include":"#parens"},{"include":"#brackets"},{"include":"#block"},{"include":"#punctuation"},{"include":"#leftover_at_ident"}]},"function":{"begin":"(?=\\b(fn|macro)\\b)","end":"(?=[={;])","patterns":[{"name":"meta.function.c3","begin":"\\b(fn|macro)\\b","end":"(?=\\()","patterns":[{"include":"#comments"},{"include":"#function_header"}],"beginCaptures":{"1":{"name":"keyword.declaration.function.c3"}}},{"name":"meta.function.parameters.c3","begin":"\\(","end":"\\)","patterns":[{"include":"#parameters"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.c3"}}},{"contentName":"meta.function.c3","begin":"(?\u003c=\\))","end":"(?=[{=;])","patterns":[{"include":"#comments"},{"include":"#generic_params"},{"include":"#attribute"}]}]},"function_call":{"name":"meta.function_call.c3","begin":"([@#]?(?:\\b_*[a-z][_a-zA-Z0-9]*\\b))(?=\\s*(\\{.*\\})?\\s*\\()","end":"(?\u003c=\\))","patterns":[{"include":"#generic_args"},{"name":"meta.group.c3","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"begin":"([$#]?(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)|\\$(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b))\\s*(:)(?!:)","end":"(?=\\))|([;,])","patterns":[{"include":"#expression"}],"beginCaptures":{"1":{"name":"variable.parameter.c3"},"2":{"name":"punctuation.separator.c3"}},"endCaptures":{"1":{"name":"punctuation.separator.c3"}}},{"begin":"(?=\\S)","end":"(?=\\))|([;,])","patterns":[{"include":"#expression"}],"endCaptures":{"1":{"name":"punctuation.separator.c3"}}},{"name":"punctuation.separator.c3","match":";"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.c3"}}}],"beginCaptures":{"1":{"name":"entity.name.function.c3"}}},"function_header":{"patterns":[{"include":"#type"},{"name":"punctuation.accessor.c3","match":"\\."},{"name":"entity.name.function.c3","match":"@?(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)"}]},"generic_args":{"patterns":[{"name":"meta.generic.c3","begin":"\\{","end":"\\}","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.generic.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.definition.generic.end.c3"}}}]},"generic_params":{"patterns":[{"name":"meta.generic.c3","begin":"\u003c","end":"\u003e","patterns":[{"include":"#comments"},{"name":"support.type.c3","match":"(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)"},{"name":"variable.other.constant.c3","match":"(?:\\b_*[A-Z][_A-Z0-9]*\\b)"},{"name":"punctuation.separator.c3","match":","}],"beginCaptures":{"0":{"name":"punctuation.definition.generic.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.definition.generic.end.c3"}}}]},"integer_literal":{"name":"constant.numeric.integer.c3","match":"\\b(?:0[xX][a-fA-F0-9](?:_?[a-fA-F0-9])*|0[oO][0-7](_?[0-7])*|0[bB][0-1](_?[0-1])*|[0-9](?:_?[0-9])*)(?:[UuIi](?:8|16|32|64|128)|[Uu][Ll]{0,2}|[Ll]{1,2})?"},"keywords":{"patterns":[{"name":"keyword.other.ct.c3","match":"\\$(?:alignof|assert|assignable|default|defined|echo|embed|eval|error|exec|expand|extnameof|feature|include|reflect|is_const|kindof|nameof|offsetof|qnameof|sizeof|stringify|vacount|vaconst|vaarg|vaexpr|vasplat)\\b"},{"name":"keyword.control.ct.c3","match":"\\$(?:case|else|endfor|endforeach|endif|endswitch|for|foreach|if|switch)\\b"},{"name":"keyword.other.c3","match":"\\b(?:assert|asm|catch|inline|import|module|interface|try|var)\\b"},{"name":"keyword.control.c3","match":"\\b(?:break|case|continue|default|defer|do|else|for|foreach|foreach_r|if|nextcase|return|switch|while)\\b"}]},"leftover_at_ident":{"patterns":[{"name":"meta.annotation.c3","match":"@(?:pure|inline|noinline)","captures":{"0":{"name":"keyword.annotation.c3"}}},{"begin":"@(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)","end":"(?=[^{ \\t])|(?\u003c=\\})","patterns":[{"include":"#generic_args"}],"beginCaptures":{"0":{"name":"entity.name.function.c3"}}}]},"line_comment":{"name":"comment.line.double-slash.c3","match":"//.*$"},"literals":{"patterns":[{"include":"#string_literal"},{"include":"#char_literal"},{"include":"#raw_string_literal"},{"include":"#real_literal"},{"include":"#integer_literal"},{"include":"#bytes_literal"}]},"modifier_keywords":{"patterns":[{"name":"storage.modifier.c3","match":"\\b(?:const|extern|static|tlocal|inline)\\b"}]},"module_path":{"patterns":[{"include":"#path"},{"name":"meta.path.c3","match":"((?:\\b_*[a-z][_a-zA-Z0-9]*\\b))","captures":{"1":{"name":"entity.name.scope-resolution.c3"}}}]},"operators":{"patterns":[{"name":"keyword.declaration.function.arrow.c3","match":"=\u003e"},{"name":"keyword.operator.assignment.augmented.c3","match":"(?:[-%\u0026*+/^|]|\u003e\u003e|\u003c\u003c|\\+\\+\\+)="},{"name":"keyword.operator.comparison.c3","match":"\u003c=|\u003e=|==|\u003c|\u003e|!="},{"name":"keyword.operator.variadic.c3","match":"\\.\\.\\."},{"name":"keyword.operator.range.c3","match":"\\.\\."},{"name":"keyword.operator.arithmetic.c3","match":"\\+\\+\\+?|--"},{"name":"keyword.operator.arithmetic.c3","match":"\u003c\u003c|\u003e\u003e|\u0026\u0026\u0026?|\\|\\|\\|?"},{"name":"keyword.operator.arithmetic.c3","match":"[-%+/^|~]"},{"name":"keyword.operator.assignment.c3","match":"="},{"name":"keyword.operator.c3","match":"\\?\\?\\??|\\?:|[!?]|[\u0026*:]"}]},"parameters":{"patterns":[{"include":"#comments"},{"begin":"\\$(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)","end":"(?=[;,)])","patterns":[{"include":"#comments"},{"include":"#attribute"},{"begin":"=","end":"(?=[;,)])","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.c3"}}}],"beginCaptures":{"0":{"name":"support.type.c3"}}},{"include":"#type"},{"include":"#punctuation"},{"name":"keyword.operator.variadic.c3","match":"\\.\\.\\."},{"name":"keyword.operator.address.c3","match":"\u0026"},{"begin":";","end":"(?=\\))","patterns":[{"include":"#comments"},{"name":"entity.name.function.c3","match":"@(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)"},{"include":"#parameters"}],"beginCaptures":{"0":{"name":"punctuation.separator.c3"}}},{"begin":"[$#]?(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)","end":"(?=[;,)])","patterns":[{"include":"#comments"},{"include":"#attribute"},{"name":"keyword.operator.variadic.c3","match":"\\.\\.\\."},{"begin":"=","end":"(?=[;,)])","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.c3"}}}],"beginCaptures":{"0":{"name":"variable.parameter.c3"}}}]},"parens":{"patterns":[{"name":"meta.group.c3","begin":"\\(","end":"\\)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.c3"}}}]},"path":{"name":"meta.path.c3","match":"((?:\\b_*[a-z][_a-zA-Z0-9]*\\b))\\s*(::)","captures":{"1":{"name":"entity.name.scope-resolution.c3"},"2":{"name":"punctuation.separator.scope-resolution.c3"}}},"punctuation":{"patterns":[{"name":"punctuation.separator.c3","match":","},{"name":"punctuation.separator.c3","match":":"},{"name":"punctuation.accessor.c3","match":"\\.(?!\\.\\.)"}]},"raw_string_literal":{"name":"string.quoted.other.c3","begin":"`","end":"`(?!`)","patterns":[{"name":"constant.character.escape.c3","match":"``"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c3"}}},"real_literal":{"patterns":[{"name":"constant.numeric.float.c3","match":"\\b[0-9](?:_?[0-9])*(?:[Ff](?:16|32|64|128)?|[Dd])"},{"name":"constant.numeric.float.c3","match":"\\b(?:[0-9](?:_?[0-9])*[Ee][+-]?[0-9]+|[0-9](?:_?[0-9])*\\.(?!\\.)(?:[0-9](?:_?[0-9])*)?(?:[Ee][+-]?[0-9]+)?)(?:[Ff](?:16|32|64|128)?|[Dd])?"},{"name":"constant.numeric.float.c3","match":"\\b0[xX][a-fA-F0-9](?:_?[a-fA-F0-9])*(?:\\.(?:[a-fA-F0-9](?:_?[a-fA-F0-9])*)?)?[Pp][+-]?[0-9]+(?:[Ff](?:16|32|64|128)?|[Dd])?"}]},"statements":{"patterns":[{"include":"#comments"},{"include":"#modifier_keywords"},{"name":"punctuation.terminator.c3","match":";"},{"include":"#control_statements"},{"include":"#attribute"},{"include":"#block"},{"include":"#expression"}]},"string_literal":{"name":"string.quoted.double.c3","begin":"\"","end":"\"","patterns":[{"include":"#escape_sequence"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c3"}}},"structlike":{"begin":"(?=\\b(?:(struct|bitstruct)|(union))\\b)","end":"(?\u003c=\\})","patterns":[{"name":"meta.struct.c3","begin":"\\b(?:(struct|bitstruct)|(union))\\b","end":"(?=\\{)","patterns":[{"include":"#comments"},{"name":"entity.name.type.struct.c3","match":"(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)"},{"name":"variable.other.member.c3","match":"(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)"},{"include":"#generic_params"},{"include":"#attribute"},{"begin":":","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#type_no_generics"},{"include":"#generic_params"},{"include":"#attribute"}],"beginCaptures":{"0":{"name":"punctuation.separator.c3"}}},{"name":"meta.group.c3","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#path"},{"include":"#type"},{"include":"#punctuation"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.c3"}}}],"beginCaptures":{"1":{"name":"keyword.declaration.struct.c3"},"2":{"name":"keyword.declaration.union.c3"}}},{"name":"meta.struct.body.c3","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#structlike"},{"include":"#modifier_keywords"},{"include":"#type"},{"name":"variable.other.member.c3","match":"(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)"},{"include":"#attribute"},{"name":"punctuation.terminator.c3","match":";"},{"begin":":","end":"(?=;)","patterns":[{"include":"#attribute"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.separator.c3"}}}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.c3"}}}]},"top_level":{"patterns":[{"include":"#comments"},{"include":"#modifier_keywords"},{"begin":"\\$(?:assert|include|echo|exec)\\b","end":";","patterns":[{"include":"#comments"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.other.c3"}},"endCaptures":{"0":{"name":"punctuation.terminator.c3"}}},{"name":"meta.module.c3","begin":"\\bmodule\\b","end":";","patterns":[{"include":"#comments"},{"include":"#attribute"},{"include":"#module_path"},{"include":"#generic_args"},{"include":"#generic_params"}],"beginCaptures":{"0":{"name":"keyword.declaration.module.c3"}},"endCaptures":{"0":{"name":"punctuation.terminator.c3"}}},{"name":"meta.import.c3","begin":"\\bimport\\b","end":";","patterns":[{"include":"#comments"},{"include":"#attribute"},{"include":"#module_path"},{"name":"punctuation.separator.c3","match":","}],"beginCaptures":{"0":{"name":"keyword.declaration.import.c3"}},"endCaptures":{"0":{"name":"punctuation.terminator.c3"}}},{"include":"#function"},{"name":"meta.alias.c3","begin":"\\balias\\b","end":";","patterns":[{"include":"#comments"},{"begin":"(?=((?:\\b_*[a-z][_a-zA-Z0-9]*\\b))\\s*=\\s*module)","end":"(?=;)","patterns":[{"begin":"((?:\\b_*[a-z][_a-zA-Z0-9]*\\b))","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#attribute"},{"begin":"=","end":"(?=;)","patterns":[{"include":"#comments"},{"begin":"module","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#module_path"}],"beginCaptures":{"0":{"name":"keyword.declaration.module.c3"}}}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.c3"}}}]}]},{"begin":"(@(?:\\b_*[a-z][_a-zA-Z0-9]*\\b))|((?:\\b_*[a-z][_a-zA-Z0-9]*\\b))|((?:\\b_*[A-Z][_A-Z0-9]*\\b))","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#generic_params"},{"include":"#attribute"},{"include":"#assign_right_expression"}],"beginCaptures":{"1":{"name":"entity.name.function.c3"},"2":{"name":"variable.global.c3"},"3":{"name":"variable.other.constant.c3"}}},{"begin":"(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#generic_params"},{"include":"#attribute"},{"include":"#assign_right_expression"}],"beginCaptures":{"0":{"name":"entity.name.type.c3"}}}],"beginCaptures":{"0":{"name":"keyword.declaration.alias.c3"}},"endCaptures":{"0":{"name":"punctuation.terminator.c3"}}},{"name":"meta.typedef.c3","begin":"\\btypedef\\b","end":";","patterns":[{"include":"#comments"},{"begin":"(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#parens"},{"include":"#generic_params"},{"include":"#attribute"},{"include":"#assign_right_expression"}],"beginCaptures":{"0":{"name":"entity.name.type.c3"}}}],"beginCaptures":{"0":{"name":"keyword.declaration.typedef.c3"}},"endCaptures":{"0":{"name":"punctuation.terminator.c3"}}},{"name":"meta.faultdef.c3","begin":"\\bfaultdef\\b","end":";","patterns":[{"include":"#comments"},{"include":"#attribute"},{"name":"variable.other.constant.c3","match":"(?:\\b_*[A-Z][_A-Z0-9]*\\b)"},{"name":"punctuation.separator.c3","match":","}],"beginCaptures":{"0":{"name":"keyword.declaration.faultdef.c3"}},"endCaptures":{"0":{"name":"punctuation.terminator.c3"}}},{"name":"meta.attrdef.c3","begin":"\\battrdef\\b","end":";","patterns":[{"include":"#comments"},{"begin":"@(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#attribute"},{"name":"meta.group.c3","begin":"\\(","end":"\\)","patterns":[{"include":"#parameters"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.c3"}}},{"begin":"=","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#attribute"},{"name":"punctuation.separator.c3","match":","}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.c3"}}}],"beginCaptures":{"0":{"name":"keyword.annotation.c3"}}}],"beginCaptures":{"0":{"name":"keyword.declaration.attrdef.c3"}},"endCaptures":{"0":{"name":"punctuation.terminator.c3"}}},{"include":"#structlike"},{"begin":"(?=\\b(?:enum|constdef)\\b)","end":"(?\u003c=\\})","patterns":[{"name":"meta.enum.c3","begin":"\\b(enum)|(constdef)\\b","end":"(?=\\{)","patterns":[{"include":"#comments"},{"name":"entity.name.type.enum.c3","match":"(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)"},{"include":"#generic_params"},{"include":"#attribute"},{"begin":":","end":"(?=\\{)","patterns":[{"include":"#comments"},{"name":"storage.modifier.c3","match":"\\b(?:inline|const)\\b"},{"include":"#type_no_generics"},{"contentName":"meta.group.c3","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"name":"storage.modifier.c3","match":"\\binline\\b"},{"include":"#parameters"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.c3"}}},{"include":"#generic_params"},{"include":"#attribute"}],"beginCaptures":{"0":{"name":"punctuation.separator.c3"}}}],"beginCaptures":{"1":{"name":"keyword.declaration.enum.c3"},"2":{"name":"keyword.declaration.constdef.c3"}}},{"name":"meta.enum.body.c3","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"begin":"=","end":"(?=[,}])","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.c3"}}},{"include":"#block"},{"include":"#attribute"},{"name":"variable.other.constant.c3","match":"(?:\\b_*[A-Z][_A-Z0-9]*\\b)"},{"name":"punctuation.separator.c3","match":","}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.c3"}}}]},{"begin":"(?=\\binterface\\b)","end":"(?\u003c=\\})","patterns":[{"name":"meta.interface.c3","begin":"\\binterface\\b","end":"(?=\\{)","patterns":[{"include":"#comments"},{"name":"entity.name.type.interface.c3","match":"(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)"},{"include":"#generic_params"},{"include":"#attribute"},{"begin":":","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#punctuation"},{"include":"#type_no_generics"}],"beginCaptures":{"0":{"name":"punctuation.separator.c3"}}}],"beginCaptures":{"0":{"name":"keyword.declaration.interface.c3"}}},{"name":"meta.interface.body.c3","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"name":"punctuation.terminator.c3","match":";"},{"include":"#function"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.c3"}}}]}]},"type":{"patterns":[{"begin":"\\b(void|bool|char|double|float|float16|bfloat|int128|ichar|int|iptr|isz|sz|long|short|uint128|uint|ulong|uptr|ushort|usz|float128|any|fault|typeid|untypedlist)\\b|(\\$?\\b(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)\\b)","end":"(?=\\*\u003e|[^ \\t*\\[?{:]|:(?!:))","patterns":[{"include":"#comments"},{"include":"#generic_args"},{"include":"#type_suffix"},{"include":"#type_access"}],"beginCaptures":{"1":{"name":"storage.type.built-in.primitive.c3"},"2":{"name":"support.type.c3"}}},{"include":"#type_expr"},{"include":"#path"}]},"type_access":{"match":"(::)\\s*((?:\\b_*[a-z][_a-zA-Z0-9]*\\b))","captures":{"1":{"name":"punctuation.accessor.c3"},"2":{"name":"variable.other.constant.c3"}}},"type_expr":{"patterns":[{"begin":"\\$(?:Typeof|Typefrom|typeof|typefrom|evaltype|vatype)\\b","end":"(?=[^ \\t*\\[?(:]|:(?!:))","patterns":[{"include":"#parens"},{"include":"#type_suffix"},{"include":"#type_access"}],"beginCaptures":{"0":{"name":"support.type.c3"}}}]},"type_no_generics":{"patterns":[{"include":"#path"},{"begin":"\\b(void|bool|char|double|float|float16|bfloat|int128|ichar|int|iptr|isz|sz|long|short|uint128|uint|ulong|uptr|ushort|usz|float128|any|fault|typeid|untypedlist)\\b|(\\$?\\b(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)\\b)","end":"(?=[^ \\t*\\[?])","patterns":[{"include":"#comments"},{"include":"#type_suffix"}],"beginCaptures":{"1":{"name":"storage.type.built-in.primitive.c3"},"2":{"name":"support.type.c3"}}},{"include":"#type_expr"}]},"type_suffix":{"patterns":[{"include":"#brackets"},{"name":"keyword.operator.address.c3","match":"\\*"},{"name":"keyword.operator.c3","match":"\\?"}]},"variable":{"begin":"(?\u003c!#)\\$?(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)","end":"(?=[^{ \\t])|(?\u003c=\\})","patterns":[{"include":"#generic_args"}],"beginCaptures":{"0":{"name":"variable.other.c3"}}}}}
1
+ {"name":"C3","scopeName":"source.c3","patterns":[{"name":"comment.line.shebang.c3","match":"\\A(#!).*$","captures":{"1":{"name":"punctuation.definition.comment.c3"}}},{"include":"#top_level"},{"include":"#statements"}],"repository":{"assign_right_expression":{"begin":"=","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#attribute"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.c3"}}},"attribute":{"patterns":[{"name":"meta.annotation.c3","begin":"@(?:(?:align|allow_deprecated|asmname|benchmark|bigendian|builtin|callconv|cname|compact|const|constinit|deprecated|dynamic|export|feat|finalizer|format|if|init|inline|jump|link|littleendian|local|maydiscard|mustinit|naked|noalias|nodiscard|noinit|noinline|nopadding|norecurse|noredzone|noreturn|nosanitize|nostrip|obfuscate|operator|operator_r|operator_s|optional|overlap|packed|private|public|pure|reflect|safeinfer|safemacro|section|simd|tag|test|unused|used|wasm|weak|weaklink|winmain|stackprobe|nostackprobe|stackprotector|nostackprotector)\\b|(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b))","end":"(?=[^ \\t(])|(?\u003c=\\))","patterns":[{"include":"#parens"}],"beginCaptures":{"0":{"name":"keyword.annotation.c3"}}}]},"block":{"patterns":[{"name":"meta.block.c3","begin":"\\{","end":"\\}","patterns":[{"include":"#statements"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.c3"}}}]},"block_comment":{"name":"comment.block.c3","begin":"/\\*","end":"\\*/","patterns":[{"include":"#block_comment_body"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.c3"}}},"block_comment_body":{"patterns":[{"begin":"/\\*","end":"\\*/","patterns":[{"include":"#block_comment_body"}]}]},"brackets":{"patterns":[{"name":"meta.brackets.c3","begin":"\\[\u003c?","end":"\u003e?\\]","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.section.brackets.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.brackets.end.c3"}}}]},"builtin":{"patterns":[{"match":"(\\$\\$(?:\\b_*[A-Z][_A-Z0-9]*\\b))|(\\$\\$(?:\\b_*[a-z][_a-zA-Z0-9]*\\b))","captures":{"1":{"name":"constant.language.c3"},"2":{"name":"entity.name.function.builtin.c3"}}}]},"bytes_literal":{"patterns":[{"name":"string.quoted.other.c3","begin":"(x)([\"'`])","end":"\\2","patterns":[{"name":"constant.numeric.integer.c3","match":"[\\sA-Fa-f0-9]+"}],"beginCaptures":{"1":{"name":"keyword.other.c3"},"2":{"name":"punctuation.definition.string.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c3"}}},{"name":"string.quoted.other.c3","begin":"(b64)([\"'`])","end":"\\2","patterns":[{"name":"constant.numeric.integer.c3","match":"[\\sA-Za-z0-9+/=]+"}],"beginCaptures":{"1":{"name":"keyword.other.c3"},"2":{"name":"punctuation.definition.string.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c3"}}}]},"char_literal":{"name":"string.quoted.single.c3","begin":"'","end":"'","patterns":[{"include":"#escape_sequence"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c3"}}},"comments":{"patterns":[{"include":"#line_comment"},{"include":"#block_comment"}]},"constants":{"patterns":[{"name":"constant.language.c3","match":"\\b(true|false|null)\\b"},{"begin":"(?:\\b_*[A-Z][_A-Z0-9]*\\b)","end":"(?=[^{ \\t])|(?\u003c=\\})","patterns":[{"include":"#generic_args"}],"beginCaptures":{"0":{"name":"variable.other.constant.c3"}}}]},"contract_expression":{"patterns":[{"name":"variable.language.c3","match":"\\breturn\\b"},{"include":"#function"},{"include":"#constants"},{"include":"#builtin"},{"include":"#real_literal"},{"include":"#integer_literal"},{"include":"#operators"},{"include":"#keywords"},{"include":"#type"},{"include":"#path"},{"include":"#function_call"},{"include":"#variable"},{"include":"#parens"},{"include":"#brackets"},{"include":"#block"},{"include":"#punctuation"},{"include":"#leftover_at_ident"}]},"control_statements":{"patterns":[{"begin":"\\$for\\b","end":":","patterns":[{"include":"#statements"}],"beginCaptures":{"0":{"name":"keyword.control.ct.c3"}},"endCaptures":{"0":{"name":"punctuation.separator.c3"}}},{"begin":"\\$foreach\\b","end":"(?\u003c=:)","patterns":[{"include":"#comments"},{"name":"variable.other.c3","match":"\\$(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)"},{"name":"punctuation.separator.c3","match":","},{"begin":":","end":":","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.operator.c3"}},"endCaptures":{"0":{"name":"punctuation.separator.c3"}}}],"beginCaptures":{"0":{"name":"keyword.control.ct.c3"}}},{"begin":"\\bfor\\b","end":"(?\u003c=\\))","patterns":[{"include":"#comments"},{"begin":"\\(","end":"\\)","patterns":[{"include":"#statements"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.c3"}}}],"beginCaptures":{"0":{"name":"keyword.control.c3"}}},{"begin":"\\$(?:switch|case|default|if)\\b","end":":","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.control.ct.c3"}},"endCaptures":{"0":{"name":"punctuation.separator.c3"}}},{"begin":"\\b(?:case|default)\\b","end":"(:)|(?=;)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.control.c3"}},"endCaptures":{"1":{"name":"punctuation.separator.c3"}}}]},"doc_comment":{"begin":"(?=\u003c\\*)","end":"(\\*\u003e)","patterns":[{"include":"#doc_comment_body"}],"endCaptures":{"0":{"name":"comment.block.documentation.c3"},"1":{"name":"punctuation.definition.comment.end.c3"}}},"doc_comment_body":{"patterns":[{"begin":"(\u003c\\*)\\s*(?=@[a-z])","end":"(?=\\*\u003e)","patterns":[{"match":"@param(?:\\s*\\[\u0026?(?:in|out|inout|own|init|drop)\\])?\\s*(?:([$#]?(?:\\b_*[a-z][_a-zA-Z0-9]*\\b))|(\\$(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b))|(\\.\\.\\.))","captures":{"0":{"name":"comment.block.documentation.c3"},"1":{"name":"variable.parameter.c3"},"2":{"name":"support.type.c3"},"3":{"name":"keyword.operator.variadic.c3"}}},{"begin":"@(?:require\\b|ensure\\b|return\\?)(?:\\s*\\[(?:([$#]?(?:\\b_*[a-z][_a-zA-Z0-9]*\\b))|(\\$(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b))|(\\.\\.\\.))\\])?","end":"(?=:\\s*(?:[\"`]|$)|\\*\u003e|$)","patterns":[{"include":"#contract_expression"}],"beginCaptures":{"0":{"name":"comment.block.documentation.c3"},"1":{"name":"variable.parameter.c3"},"2":{"name":"support.type.c3"},"3":{"name":"keyword.operator.variadic.c3"}}},{"name":"comment.block.documentation.c3","match":"@(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)"},{"name":"comment.block.documentation.c3","match":":"},{"name":"comment.block.documentation.c3","match":"`[^`]*`|\"[^\"]*\""}],"beginCaptures":{"0":{"name":"comment.block.documentation.c3"},"1":{"name":"punctuation.definition.comment.begin.c3"}}},{"name":"comment.block.documentation.c3","begin":"(\u003c\\*)","end":"(?=^\\s*@[a-z]|\\*\u003e)","beginCaptures":{"0":{"name":"comment.block.documentation.c3"},"1":{"name":"punctuation.definition.comment.begin.c3"}}},{"end":"(?=\\*\u003e)","patterns":[{"match":"^\\s*@param(?:\\s*\\[\u0026?(?:in|out|inout|own|init|drop)\\])?\\s*(?:([$#]?(?:\\b_*[a-z][_a-zA-Z0-9]*\\b))|(\\$(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b))|(\\.\\.\\.))","captures":{"0":{"name":"comment.block.documentation.c3"},"1":{"name":"variable.parameter.c3"},"2":{"name":"support.type.c3"},"3":{"name":"keyword.operator.variadic.c3"}}},{"begin":"^\\s*@(?:require\\b|ensure\\b|return\\?)(?:\\s*\\[(?:([$#]?(?:\\b_*[a-z][_a-zA-Z0-9]*\\b))|(\\$(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b))|(\\.\\.\\.))\\])?","end":"(?=:\\s*(?:[\"`]|$)|\\*\u003e|$)","patterns":[{"include":"#contract_expression"}],"beginCaptures":{"0":{"name":"comment.block.documentation.c3"},"1":{"name":"variable.parameter.c3"},"2":{"name":"support.type.c3"},"3":{"name":"keyword.operator.variadic.c3"}}},{"name":"comment.block.documentation.c3","match":"^\\s*@(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)"},{"name":"comment.block.documentation.c3","match":":"},{"name":"comment.block.documentation.c3","match":"`[^`]*`|\"[^\"]*\""}]}]},"enumlike":{"begin":"(?=\\b(?:enum|constdef|constset)\\b)","end":"(?\u003c=\\})","patterns":[{"name":"meta.enum.c3","begin":"\\b(enum)|(constdef)|(constset)\\b","end":"(?=\\{)","patterns":[{"include":"#comments"},{"name":"entity.name.type.enum.c3","match":"(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)"},{"include":"#generic_params"},{"include":"#attribute"},{"include":"#interface_impl"},{"begin":":","end":"(?=\\{)","patterns":[{"include":"#comments"},{"name":"storage.modifier.c3","match":"\\b(?:inline|const)\\b"},{"include":"#type_no_generics"},{"contentName":"meta.group.c3","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"name":"storage.modifier.c3","match":"\\binline\\b"},{"include":"#parameters"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.c3"}}},{"include":"#generic_params"},{"include":"#attribute"}],"beginCaptures":{"0":{"name":"punctuation.separator.c3"}}}],"beginCaptures":{"1":{"name":"keyword.declaration.enum.c3"},"2":{"name":"keyword.declaration.constdef.c3"},"3":{"name":"keyword.declaration.constset.c3"}}},{"name":"meta.enum.body.c3","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#doc_comment"},{"begin":"=","end":"(?=[,}])","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.c3"}}},{"include":"#block"},{"include":"#attribute"},{"name":"variable.other.constant.c3","match":"(?:\\b_*[A-Z][_A-Z0-9]*\\b)"},{"name":"punctuation.separator.c3","match":","}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.c3"}}}]},"escape_sequence":{"name":"constant.character.escape.c3","match":"\\\\([0abefnrtv'\"\\\\]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})"},"expression":{"patterns":[{"include":"#comments"},{"include":"#function"},{"include":"#constants"},{"include":"#builtin"},{"include":"#literals"},{"include":"#operators"},{"include":"#keywords"},{"include":"#type"},{"include":"#path"},{"include":"#function_call"},{"include":"#variable"},{"include":"#parens"},{"include":"#brackets"},{"include":"#block"},{"include":"#punctuation"},{"include":"#leftover_at_ident"}]},"function":{"begin":"(?=\\b(fn|macro)\\b)","end":"(?=[={;])","patterns":[{"name":"meta.function.c3","begin":"\\b(fn|macro)\\b","end":"(?=\\()","patterns":[{"include":"#comments"},{"include":"#function_header"}],"beginCaptures":{"1":{"name":"keyword.declaration.function.c3"}}},{"name":"meta.function.parameters.c3","begin":"\\(","end":"\\)","patterns":[{"include":"#parameters"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.c3"}}},{"contentName":"meta.function.c3","begin":"(?\u003c=\\))","end":"(?=[{=;])","patterns":[{"include":"#comments"},{"include":"#generic_params"},{"include":"#attribute"}]}]},"function_call":{"name":"meta.function_call.c3","begin":"([@#]?(?:\\b_*[a-z][_a-zA-Z0-9]*\\b))(?=\\s*(?:\\{(?:[^{}]|\\{(?:[^{}]|\\{[^{}]*\\})*\\})*\\})?\\s*\\()","end":"(?\u003c=\\))","patterns":[{"include":"#generic_args"},{"name":"meta.group.c3","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"begin":"([$#]?(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)|\\$(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b))\\s*(:)(?!:)","end":"(?=\\))|([;,])","patterns":[{"include":"#expression"}],"beginCaptures":{"1":{"name":"variable.parameter.c3"},"2":{"name":"punctuation.separator.c3"}},"endCaptures":{"1":{"name":"punctuation.separator.c3"}}},{"begin":"(?=\\S)","end":"(?=\\))|([;,])","patterns":[{"include":"#expression"}],"endCaptures":{"1":{"name":"punctuation.separator.c3"}}},{"name":"punctuation.separator.c3","match":";"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.c3"}}}],"beginCaptures":{"1":{"name":"entity.name.function.c3"}}},"function_header":{"patterns":[{"include":"#type"},{"name":"punctuation.accessor.c3","match":"\\."},{"name":"entity.name.function.c3","match":"@?(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)"}]},"generic_args":{"patterns":[{"name":"meta.generic.c3","begin":"\\{","end":"\\}","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.generic.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.definition.generic.end.c3"}}}]},"generic_params":{"patterns":[{"name":"meta.generic.c3","begin":"\u003c","end":"(\u003e)|(?=[{;=(@])","patterns":[{"include":"#comments"},{"name":"support.type.c3","match":"(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)"},{"name":"variable.other.constant.c3","match":"(?:\\b_*[A-Z][_A-Z0-9]*\\b)"},{"name":"punctuation.separator.c3","match":","}],"beginCaptures":{"0":{"name":"punctuation.definition.generic.begin.c3"}},"endCaptures":{"1":{"name":"punctuation.definition.generic.end.c3"}}}]},"integer_literal":{"name":"constant.numeric.integer.c3","match":"\\b(?:0[xX][a-fA-F0-9](?:_?[a-fA-F0-9])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*|[0-9](?:_?[0-9])*)(?:[UuIi](?:8|16|32|64|128)|[Uu][Ll]{0,2}|[Ll]{1,2})?"},"interface_impl":{"name":"meta.group.c3","begin":"\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#path"},{"include":"#type"},{"include":"#punctuation"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.c3"}}},"keywords":{"patterns":[{"name":"keyword.other.ct.c3","match":"\\$(?:alignof|assert|assignable|defined|echo|embed|eval|error|exec|expand|extnameof|feat|feature|include|reflect|is_const|kindof|nameof|offsetof|qnameof|sizeof|stringify|vacount|vaconst|vaarg|vaexpr|vasplat)\\b"},{"name":"keyword.control.ct.c3","match":"\\$(?:case|else|endfor|endforeach|endif|endswitch|for|foreach|if|switch)\\b"},{"name":"storage.modifier.c3","match":"\\binline\\b"},{"name":"keyword.other.c3","match":"\\b(?:assert|asm|catch|import|lengthof|module|interface|try|var)\\b"},{"name":"keyword.control.c3","match":"\\b(?:break|case|continue|default|defer|do|else|for|foreach|foreach_r|if|nextcase|return|switch|while)\\b"}]},"leftover_at_ident":{"patterns":[{"name":"meta.annotation.c3","match":"@(?:pure|inline|noinline)","captures":{"0":{"name":"keyword.annotation.c3"}}},{"begin":"@(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)","end":"(?=[^{ \\t])|(?\u003c=\\})","patterns":[{"include":"#generic_args"}],"beginCaptures":{"0":{"name":"entity.name.function.c3"}}}]},"line_comment":{"name":"comment.line.double-slash.c3","match":"//.*$"},"literals":{"patterns":[{"include":"#string_literal"},{"include":"#char_literal"},{"include":"#raw_string_literal"},{"include":"#real_literal"},{"include":"#integer_literal"},{"include":"#bytes_literal"}]},"modifier_keywords":{"patterns":[{"name":"storage.modifier.c3","match":"\\b(?:const|extern|static|tlocal|inline)\\b"}]},"module_path":{"patterns":[{"include":"#path"},{"name":"meta.path.c3","match":"((?:\\b_*[a-z][_a-zA-Z0-9]*\\b))","captures":{"1":{"name":"entity.name.scope-resolution.c3"}}}]},"operators":{"patterns":[{"name":"keyword.declaration.function.arrow.c3","match":"=\u003e"},{"name":"keyword.operator.assignment.augmented.c3","match":"(?:[-%\u0026*+/^|]|\u003e\u003e|\u003c\u003c|\\+\\+\\+)="},{"name":"keyword.operator.comparison.c3","match":"\u003c=|\u003e=|==|\u003c|\u003e|!="},{"name":"keyword.operator.variadic.c3","match":"\\.\\.\\."},{"name":"keyword.operator.range.c3","match":"\\.\\."},{"name":"keyword.operator.arithmetic.c3","match":"\\+\\+\\+?|--"},{"name":"keyword.operator.arithmetic.c3","match":"\u003c\u003c|\u003e\u003e|\u0026\u0026\u0026?|\\|\\|\\|?"},{"name":"keyword.operator.arithmetic.c3","match":"[-%+/^|~]"},{"name":"keyword.operator.assignment.c3","match":"="},{"name":"keyword.operator.c3","match":"\\?\\?\\??|\\?:|[!?]|[\u0026*:]"}]},"parameters":{"patterns":[{"include":"#comments"},{"include":"#type_expr"},{"begin":"\\$(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)","end":"(?=[;,)])","patterns":[{"include":"#comments"},{"include":"#attribute"},{"begin":"=","end":"(?=[;,)])","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.c3"}}}],"beginCaptures":{"0":{"name":"support.type.c3"}}},{"include":"#type"},{"include":"#punctuation"},{"name":"keyword.operator.variadic.c3","match":"\\.\\.\\."},{"name":"keyword.operator.address.c3","match":"\u0026"},{"begin":";","end":"(?=\\))","patterns":[{"include":"#comments"},{"begin":"(@(?:\\b_*[a-z][_a-zA-Z0-9]*\\b))\\s*(\\()","end":"\\)","patterns":[{"include":"#parameters"}],"beginCaptures":{"1":{"name":"entity.name.function.c3"},"2":{"name":"punctuation.section.group.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.c3"}}},{"name":"entity.name.function.c3","match":"@(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)"},{"include":"#parameters"}],"beginCaptures":{"0":{"name":"punctuation.separator.c3"}}},{"begin":"[$#]?(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)","end":"(?=[;,)])","patterns":[{"include":"#comments"},{"include":"#attribute"},{"name":"keyword.operator.variadic.c3","match":"\\.\\.\\."},{"begin":"=","end":"(?=[;,)])","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.c3"}}}],"beginCaptures":{"0":{"name":"variable.parameter.c3"}}}]},"parens":{"patterns":[{"name":"meta.group.c3","begin":"\\(","end":"\\)","patterns":[{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.c3"}}}]},"path":{"name":"meta.path.c3","match":"((?:\\b_*[a-z][_a-zA-Z0-9]*\\b))\\s*(::)","captures":{"1":{"name":"entity.name.scope-resolution.c3"},"2":{"name":"punctuation.separator.scope-resolution.c3"}}},"punctuation":{"patterns":[{"name":"punctuation.separator.c3","match":","},{"name":"punctuation.separator.c3","match":":"},{"name":"punctuation.accessor.c3","match":"\\.(?!\\.\\.)"}]},"raw_string_literal":{"name":"string.quoted.other.c3","begin":"`","end":"`(?!`)","patterns":[{"name":"constant.character.escape.c3","match":"``"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c3"}}},"real_literal":{"patterns":[{"name":"constant.numeric.float.c3","match":"\\b[0-9](?:_?[0-9])*(?:[Ff](?:16|32|64|128)?|[Dd])"},{"name":"constant.numeric.float.c3","match":"\\b(?:[0-9](?:_?[0-9])*[Ee][+-]?[0-9]+|[0-9](?:_?[0-9])*\\.(?!\\.)(?:[0-9](?:_?[0-9])*)?(?:[Ee][+-]?[0-9]+)?)(?:[Ff](?:16|32|64|128)?|[Dd])?"},{"name":"constant.numeric.float.c3","match":"\\b0[xX][a-fA-F0-9](?:_?[a-fA-F0-9])*(?:\\.(?:[a-fA-F0-9](?:_?[a-fA-F0-9])*)?)?[Pp][+-]?[0-9]+(?:[Ff](?:16|32|64|128)?|[Dd])?"}]},"statements":{"patterns":[{"include":"#comments"},{"include":"#modifier_keywords"},{"name":"punctuation.terminator.c3","match":";"},{"include":"#control_statements"},{"include":"#attribute"},{"include":"#block"},{"include":"#expression"}]},"string_literal":{"name":"string.quoted.double.c3","begin":"\"","end":"\"","patterns":[{"include":"#escape_sequence"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.c3"}}},"structlike":{"begin":"(?=\\b(?:(struct|bitstruct)|(union))\\b)","end":"(?\u003c=\\})","patterns":[{"name":"meta.struct.c3","begin":"\\b(?:(struct|bitstruct)|(union))\\b","end":"(?=\\{)","patterns":[{"include":"#comments"},{"name":"entity.name.type.struct.c3","match":"(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)"},{"name":"variable.other.member.c3","match":"(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)"},{"include":"#generic_params"},{"include":"#attribute"},{"begin":":","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#type_no_generics"},{"include":"#generic_params"},{"include":"#attribute"}],"beginCaptures":{"0":{"name":"punctuation.separator.c3"}}},{"include":"#interface_impl"}],"beginCaptures":{"1":{"name":"keyword.declaration.struct.c3"},"2":{"name":"keyword.declaration.union.c3"}}},{"name":"meta.struct.body.c3","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#doc_comment"},{"include":"#structlike"},{"include":"#modifier_keywords"},{"include":"#type"},{"name":"variable.other.member.c3","match":"(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)"},{"include":"#attribute"},{"name":"punctuation.terminator.c3","match":";"},{"begin":":","end":"(?=;)","patterns":[{"include":"#attribute"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"punctuation.separator.c3"}}}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.c3"}}}]},"top_level":{"patterns":[{"include":"#comments"},{"include":"#doc_comment"},{"include":"#modifier_keywords"},{"begin":"\\$(?:assert|echo|error|exec|expand|include)\\b","end":";","patterns":[{"include":"#comments"},{"include":"#attribute"},{"include":"#expression"}],"beginCaptures":{"0":{"name":"keyword.other.ct.c3"}},"endCaptures":{"0":{"name":"punctuation.terminator.c3"}}},{"name":"meta.module.c3","begin":"\\bmodule\\b","end":";","patterns":[{"include":"#comments"},{"include":"#attribute"},{"include":"#module_path"},{"include":"#generic_args"},{"include":"#generic_params"}],"beginCaptures":{"0":{"name":"keyword.declaration.module.c3"}},"endCaptures":{"0":{"name":"punctuation.terminator.c3"}}},{"name":"meta.import.c3","begin":"\\bimport\\b","end":";","patterns":[{"include":"#comments"},{"include":"#attribute"},{"include":"#module_path"},{"name":"punctuation.separator.c3","match":","}],"beginCaptures":{"0":{"name":"keyword.declaration.import.c3"}},"endCaptures":{"0":{"name":"punctuation.terminator.c3"}}},{"include":"#function"},{"name":"meta.alias.c3","begin":"\\balias\\b","end":";","patterns":[{"include":"#comments"},{"begin":"(?=((?:\\b_*[a-z][_a-zA-Z0-9]*\\b))\\s*=\\s*module)","end":"(?=;)","patterns":[{"begin":"((?:\\b_*[a-z][_a-zA-Z0-9]*\\b))","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#attribute"},{"begin":"=","end":"(?=;)","patterns":[{"include":"#comments"},{"begin":"module","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#module_path"}],"beginCaptures":{"0":{"name":"keyword.declaration.module.c3"}}}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.c3"}}}]}]},{"begin":"(@(?:\\b_*[a-z][_a-zA-Z0-9]*\\b))|((?:\\b_*[a-z][_a-zA-Z0-9]*\\b))|((?:\\b_*[A-Z][_A-Z0-9]*\\b))","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#generic_params"},{"include":"#attribute"},{"include":"#assign_right_expression"}],"beginCaptures":{"1":{"name":"entity.name.function.c3"},"2":{"name":"variable.global.c3"},"3":{"name":"variable.other.constant.c3"}}},{"begin":"(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#generic_params"},{"include":"#attribute"},{"include":"#assign_right_expression"}],"beginCaptures":{"0":{"name":"entity.name.type.c3"}}}],"beginCaptures":{"0":{"name":"keyword.declaration.alias.c3"}},"endCaptures":{"0":{"name":"punctuation.terminator.c3"}}},{"name":"meta.typedef.c3","begin":"\\btypedef\\b","end":";","patterns":[{"include":"#comments"},{"begin":"(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#parens"},{"include":"#generic_params"},{"include":"#attribute"},{"include":"#assign_right_expression"}],"beginCaptures":{"0":{"name":"entity.name.type.c3"}}}],"beginCaptures":{"0":{"name":"keyword.declaration.typedef.c3"}},"endCaptures":{"0":{"name":"punctuation.terminator.c3"}}},{"begin":"(?=\\b(?:faultdef|excuse)\\b)","end":"(?\u003c=\\}|;)","patterns":[{"name":"meta.excuse.c3","begin":"\\b(faultdef)|(excuse)\\b","end":"(?=\\{|[_A-Z])","patterns":[{"include":"#comments"},{"include":"#doc_comment"}],"beginCaptures":{"1":{"name":"keyword.declaration.faultdef.c3"},"2":{"name":"keyword.declaration.excuse.c3"}}},{"name":"meta.excuse.body.c3","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#doc_comment"},{"include":"#attribute"},{"name":"variable.other.constant.c3","match":"(?:\\b_*[A-Z][_A-Z0-9]*\\b)"},{"name":"punctuation.separator.c3","match":","}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.c3"}}},{"name":"meta.excuse.body.c3","begin":"(?:\\b_*[A-Z][_A-Z0-9]*\\b)","end":";","patterns":[{"include":"#comments"},{"include":"#doc_comment"},{"include":"#attribute"},{"name":"variable.other.constant.c3","match":"(?:\\b_*[A-Z][_A-Z0-9]*\\b)"},{"name":"punctuation.separator.c3","match":","}],"beginCaptures":{"0":{"name":"variable.other.constant.c3"}},"endCaptures":{"0":{"name":"punctuation.terminator.c3"}}}]},{"name":"meta.attrdef.c3","begin":"\\b(?:attrdef|attrmacro)\\b","end":";","patterns":[{"include":"#comments"},{"begin":"@(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#attribute"},{"name":"meta.group.c3","begin":"\\(","end":"\\)","patterns":[{"include":"#parameters"}],"beginCaptures":{"0":{"name":"punctuation.section.group.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.group.end.c3"}}},{"begin":"=","end":"(?=;)","patterns":[{"include":"#comments"},{"include":"#attribute"},{"name":"punctuation.separator.c3","match":","}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.c3"}}}],"beginCaptures":{"0":{"name":"keyword.annotation.c3"}}}],"beginCaptures":{"0":{"name":"keyword.declaration.attrdef.c3"}},"endCaptures":{"0":{"name":"punctuation.terminator.c3"}}},{"include":"#structlike"},{"include":"#enumlike"},{"begin":"(?=\\binterface\\b)","end":"(?\u003c=\\})","patterns":[{"name":"meta.interface.c3","begin":"\\binterface\\b","end":"(?=\\{)","patterns":[{"include":"#comments"},{"name":"entity.name.type.interface.c3","match":"(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)"},{"include":"#generic_params"},{"include":"#attribute"},{"begin":":","end":"(?=\\{)","patterns":[{"include":"#comments"},{"include":"#punctuation"},{"include":"#type_no_generics"}],"beginCaptures":{"0":{"name":"punctuation.separator.c3"}}}],"beginCaptures":{"0":{"name":"keyword.declaration.interface.c3"}}},{"name":"meta.interface.body.c3","begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#doc_comment"},{"name":"punctuation.terminator.c3","match":";"},{"include":"#function"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.c3"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.c3"}}}]}]},"type":{"patterns":[{"include":"#type_expr"},{"begin":"\\b(void|bool|char|double|float|float16|bfloat|int128|ichar|int|iptr|isz|sz|long|short|uint128|uint|ulong|uptr|ushort|usz|float128|any|fault|typeid|untypedlist)\\b|(\\$?\\b(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)\\b)","end":"(?=\\*\u003e|[^ \\t*\\[?{:]|:(?!:))","patterns":[{"include":"#comments"},{"include":"#generic_args"},{"include":"#type_suffix"},{"include":"#type_access"}],"beginCaptures":{"1":{"name":"storage.type.built-in.primitive.c3"},"2":{"name":"support.type.c3"}}},{"include":"#path"}]},"type_access":{"patterns":[{"match":"(::)\\s*((?:\\b_*[a-z][_a-zA-Z0-9]*\\b))(?=\\s*\\()","captures":{"1":{"name":"punctuation.accessor.c3"},"2":{"name":"entity.name.function.c3"}}},{"match":"(::)\\s*((?:\\b_*[a-z][_a-zA-Z0-9]*\\b))","captures":{"1":{"name":"punctuation.accessor.c3"},"2":{"name":"variable.other.constant.c3"}}}]},"type_expr":{"patterns":[{"begin":"\\$(?:Typeof|Typefrom|typeof|typefrom|evaltype|vatype)\\b","end":"(?=[^ \\t*\\[?(:]|:(?!:))|(?\u003c=\\))(?=[ \\t]*\\()","patterns":[{"include":"#parens"},{"include":"#type_suffix"},{"include":"#type_access"}],"beginCaptures":{"0":{"name":"support.type.c3"}}}]},"type_no_generics":{"patterns":[{"include":"#path"},{"include":"#type_expr"},{"begin":"\\b(void|bool|char|double|float|float16|bfloat|int128|ichar|int|iptr|isz|sz|long|short|uint128|uint|ulong|uptr|ushort|usz|float128|any|fault|typeid|untypedlist)\\b|(\\$?\\b(?:\\b_*[A-Z][_A-Z0-9]*[a-z][_a-zA-Z0-9]*\\b)\\b)","end":"(?=[^ \\t*\\[?])","patterns":[{"include":"#comments"},{"include":"#type_suffix"}],"beginCaptures":{"1":{"name":"storage.type.built-in.primitive.c3"},"2":{"name":"support.type.c3"}}}]},"type_suffix":{"patterns":[{"include":"#brackets"},{"name":"keyword.operator.address.c3","match":"\\*"},{"name":"keyword.operator.c3","match":"\\?"}]},"variable":{"begin":"[$#]?(?:\\b_*[a-z][_a-zA-Z0-9]*\\b)","end":"(?=[^{ \\t])|(?\u003c=\\})","patterns":[{"include":"#generic_args"}],"beginCaptures":{"0":{"name":"variable.other.c3"}}}}}
@@ -1 +1 @@
1
- {"name":"carbon","scopeName":"source.carbon","patterns":[{"include":"#comments"},{"include":"#cpp-inline"},{"include":"#strings"},{"include":"#types"},{"include":"#functions"},{"include":"#variables"},{"include":"#operators"},{"include":"#special-keywords"},{"include":"#introducer-keywords"},{"include":"#modifier-keywords"},{"include":"#misc-keywords"},{"include":"#self-keywords"},{"include":"#underscore"},{"include":"#true-false"},{"include":"#type-literals"},{"include":"#numbers"},{"include":"#parameter-bindings"},{"include":"#customs"}],"repository":{"comments":{"patterns":[{"name":"comment.line.carbon","match":"^\\s*(?=//\\s).*$"},{"name":"comment.line.carbon","match":"^\\s*//@dump-sem-ir-(begin|end)\\s*$"},{"name":"comment.line.carbon","match":"^\\s*//@include-in-dumps\\s*$"}]},"common":{"patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#operators"},{"include":"#special-keywords"},{"include":"#introducer-keywords"},{"include":"#modifier-keywords"},{"include":"#misc-keywords"},{"include":"#self-keywords"},{"include":"#true-false"},{"include":"#type-literals"},{"include":"#numbers"}]},"cpp-inline":{"patterns":[{"contentName":"meta.embedded.block.cpp","begin":"\\b(import)\\b\\s+\\b(Cpp)\\b\\s+\\b(inline)\\b\\s*(''')([^\\s'#]*\\n)?","end":"(''')\\s*(;)","patterns":[{"include":"source.c++"}],"beginCaptures":{"1":{"name":"storage.type.carbon"},"2":{"name":"support.type.property-name.carbon"},"3":{"name":"storage.type.carbon"},"4":{"name":"string.quoted.triple.carbon"},"5":{"name":"constant.character.escape.carbon"}},"endCaptures":{"1":{"name":"string.quoted.triple.carbon"},"2":{"name":"punctuation.terminator.carbon"}}},{"contentName":"meta.embedded.inline.cpp","begin":"\\b(import)\\b\\s+\\b(Cpp)\\b\\s+\\b(inline)\\b\\s*(\")","end":"(\")\\s*(;)","patterns":[{"include":"source.c++"}],"beginCaptures":{"1":{"name":"storage.type.carbon"},"2":{"name":"support.type.property-name.carbon"},"3":{"name":"storage.type.carbon"},"4":{"name":"string.quoted.double.carbon"}},"endCaptures":{"1":{"name":"string.quoted.double.carbon"},"2":{"name":"punctuation.terminator.carbon"}}},{"contentName":"meta.embedded.block.cpp","begin":"\\b(inline)\\b\\s+\\b(Cpp)\\b\\s*(''')([^\\s'#]*\\n)?","end":"(''')\\s*(;)","patterns":[{"include":"source.c++"}],"beginCaptures":{"1":{"name":"storage.type.carbon"},"2":{"name":"support.type.property-name.carbon"},"3":{"name":"string.quoted.triple.carbon"},"4":{"name":"constant.character.escape.carbon"}},"endCaptures":{"1":{"name":"string.quoted.triple.carbon"},"2":{"name":"punctuation.terminator.carbon"}}},{"contentName":"meta.embedded.inline.cpp","begin":"\\b(inline)\\b\\s+\\b(Cpp)\\b\\s*(\")","end":"(\")\\s*(;)","patterns":[{"include":"source.c++"}],"beginCaptures":{"1":{"name":"storage.type.carbon"},"2":{"name":"support.type.property-name.carbon"},"3":{"name":"string.quoted.double.carbon"}},"endCaptures":{"1":{"name":"string.quoted.double.carbon"},"2":{"name":"punctuation.terminator.carbon"}}}]},"customs":{"patterns":[{"name":"support.class.carbon","match":"(?\u003c=\\bpackage\\s)\\w+"},{"name":"support.class.carbon","match":"(?\u003c=\\bCore\\s)\\w+"},{"name":"support.type.property-name.carbon","match":"(?\u003c=\\bimport\\s)\\w+"},{"name":"support.function.carbon","match":"\\b\\w+\\s*\\("},{"name":"support.variable.carbon","match":"\\b\\w+\\b"}]},"functions":{"name":"meta.function.carbon","patterns":[{"begin":"\\bfn\\b","end":"(?=[\\[\\(])","patterns":[{"include":"#common"},{"name":"support.function.carbon","match":"\\w+"}],"beginCaptures":{"0":{"name":"storage.type.carbon"}}}]},"introducer-keywords":{"patterns":[{"name":"storage.type.carbon","match":"\\b(adapt|alias|choice|class|constraint|fn|import|inline|interface|let|library|namespace|var)\\b"},{"name":"storage.type.carbon","match":"\\b(base)\\b(?!\\s*class\\b)"},{"name":"storage.type.carbon","match":"\\b(export)\\b(?!\\s*import\\b)"},{"name":"storage.type.carbon","match":"\\b(impl)\\b(?!\\s*(fn|library|package)\\b)"},{"name":"storage.type.carbon","match":"\\b(package)\\b(?!\\.)"}]},"misc-keywords":{"patterns":[{"name":"keyword.other.carbon","match":"\\b(auto|destructor|forall|friend|observe|override|require)\\b"},{"name":"keyword.other.carbon","match":"(?\u003c=\\.)\\b(base)\\b"}]},"modifier-keywords":{"patterns":[{"name":"storage.modifier.carbon","match":"\\b(abstract|const|extend|extern|final|private|protected|static|virtual)\\b"},{"name":"storage.modifier.carbon","match":"\\b(base)\\b(?=\\s*class\\b)"},{"name":"storage.modifier.carbon","match":"\\b(default)\\b(?!\\s*=\u003e)"},{"name":"storage.modifier.carbon","match":"\\b(export)\\b(?=\\s*import\\b)"},{"name":"storage.modifier.carbon","match":"\\b(impl)\\b(?=\\s*(fn|library|package)\\b)"}]},"numbers":{"patterns":[{"name":"constant.numeric.carbon","match":"0x[_0-9a-fA-F]*(\\.[_0-9a-fA-F]+(p[-+]?[0-9]+)?)?"},{"name":"constant.numeric.carbon","match":"0b[_01]*"},{"name":"constant.numeric.carbon","match":"[0-9][_0-9]*(\\.[_0-9]+(e[-+]?[0-9]+)?)?"}]},"operators":{"patterns":[{"name":"keyword.operator.carbon","match":"\\b(\u003e\u003e=|\u003c=\u003e|\u003c\u003c=|\\\u0026=|==|!=|\u003e=|\u003e\u003e|\u003c=|\u003c\u003c|-=|-\u003e|--|%=|\\|=|\\+=|\\+\\+|/=|\\*=|\\\u0026|\\^|=|\u003e|\u003c|-|%|\\.|\\||\\+|/|\\*)\\b"},{"name":"keyword.control.carbon","match":"\\b(and|as|generic|impls|in|like|not|or|partial|ref|runtime|template|unused|where)\\b"}]},"parameter-bindings":{"patterns":[{"match":"\\b(\\w+)\\s*(?=:)","captures":{"1":{"name":"support.variable.carbon"}}}]},"self-keywords":{"patterns":[{"name":"variable.language.carbon","match":"\\b(self|Self)\\b"}]},"special-keywords":{"patterns":[{"name":"keyword.control.carbon","match":"\\b(break|case|continue|else|if|for|match|return|returned|then|while)\\b"},{"name":"keyword.control.carbon","match":"\\b(default)\\b(?=\\s*=\u003e)"}]},"string_escapes":{"patterns":[{"name":"constant.character.escape.carbon","match":"\\\\([tnr'\"0\\0]|x[0-9A-F]{2}|u\\{[0-9A-F]{4,}\\})"}]},"strings":{"patterns":[{"name":"string.quoted.triple.carbon","begin":"'''([^\\s'#]*\\n)?","end":"'''","patterns":[{"include":"#string_escapes"}],"beginCaptures":{"1":{"name":"constant.character.escape.carbon"}}},{"name":"string.quoted.double.carbon","begin":"\"","end":"\"","patterns":[{"include":"#string_escapes"}]}]},"true-false":{"patterns":[{"name":"constant.language.carbon","match":"\\b(true|false)\\b"}]},"type-literals":{"patterns":[{"name":"constant.language.carbon","match":"\\b(array|bool|char|str|type)\\b"},{"name":"constant.language.carbon","match":"\\b[iuf](8|16|32|64|128)\\b"}]},"types":{"name":"meta.type.carbon","patterns":[{"begin":"\\b((adapt|alias|class|constraint|interface|impl)|(as|impls))\\b","end":"(?=[;{])","patterns":[{"include":"#common"},{"include":"#parameter-bindings"},{"name":"support.type.carbon","match":"\\w+"}],"beginCaptures":{"2":{"name":"storage.type.carbon"},"3":{"name":"keyword.control.carbon"}}},{"begin":":","end":"(?=([;{=,]|-\u003e|in|where))","patterns":[{"include":"#common"},{"include":"#variables"},{"include":"#parameter-bindings"},{"name":"support.type.carbon","match":"\\w+"}]},{"begin":"-\u003e","end":"(?=([;{]|=\u003e))","patterns":[{"include":"#common"},{"name":"support.type.carbon","match":"\\w+"}]},{"begin":"\\bwhere\\b","end":"(?=[;{])","patterns":[{"include":"#common"},{"include":"#variables"},{"include":"#parameter-bindings"},{"name":"support.type.carbon","match":"\\w+"}],"beginCaptures":{"0":{"name":"keyword.control.carbon"}}},{"begin":"\\bchoice\\b","end":"(?=[;}])","patterns":[{"include":"#common"},{"include":"#variables"},{"include":"#parameter-bindings"},{"name":"support.type.carbon","match":"\\w+"},{"begin":"\\{","end":"(?=})","patterns":[{"include":"#common"},{"name":"variable.other.enummember.carbon","match":"\\w+"}]}],"beginCaptures":{"0":{"name":"storage.type.carbon"}}}]},"underscore":{"patterns":[{"name":"variable.language.carbon","match":"\\b(_)\\b"}]},"variables":{"name":"meta.variable.carbon","patterns":[{"begin":"\\b(var|let)\\b","end":"(?=:)","patterns":[{"include":"#common"},{"name":"support.variable.carbon","match":"\\w+"}],"beginCaptures":{"0":{"name":"storage.type.carbon"}}}]}}}
1
+ {"name":"carbon","scopeName":"source.carbon","patterns":[{"include":"#comments"},{"include":"#cpp-inline"},{"include":"#strings"},{"include":"#builtin-functions"},{"include":"#choice-definitions"},{"include":"#declarations"},{"include":"#inheritance"},{"include":"#type-annotation"},{"include":"#keywords"},{"include":"#literals"},{"include":"#numbers"},{"include":"#operators"},{"include":"#identifiers"},{"include":"#punctuation"}],"repository":{"bindings":{"patterns":[{"name":"variable.other.carbon","match":"(?\u003c!\\.)(?\u003c!-\u003e)\\b(r#)?([A-Za-z_][A-Za-z0-9_]*)(?=\\s*:(?![=!?]))","captures":{"1":{"name":"punctuation.definition.raw-identifier.carbon"},"2":{"name":"variable.parameter.carbon"}}}]},"builtin-functions":{"patterns":[{"begin":"\\b(fn)\\b(?=[^\"/;]*=\\s*\")","end":"(?=;)|$","patterns":[{"match":"(=)\\s*((\")([^\"\\\\\\n]*)(\"))","captures":{"1":{"name":"keyword.operator.carbon"},"2":{"name":"string.quoted.double.carbon"},"3":{"name":"punctuation.definition.string.begin.carbon"},"4":{"name":"support.function.builtin.carbon"},"5":{"name":"punctuation.definition.string.end.carbon"}}},{"include":"#declarations"},{"include":"#comments"},{"include":"#strings"},{"include":"#type-annotation"},{"include":"#keywords"},{"include":"#literals"},{"include":"#numbers"},{"include":"#operators"},{"include":"#identifiers"},{"include":"#punctuation"}],"beginCaptures":{"1":{"name":"storage.type.carbon"}}}]},"choice-definitions":{"patterns":[{"begin":"\\b(choice)\\b","end":"(?\u003c=\\})|(?=[^\\s({])","patterns":[{"begin":"(?\u003c=\\bchoice)\\s+(?=(?:r#)?[A-Za-z_])","end":"((?:r#)?[A-Za-z_][A-Za-z0-9_]*)\\b(?!\\s*(?:\\[[^\\[\\]]*\\]\\s*)?(?:\\([^()]*(?:\\([^()]*(?:\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*)?\\.)|(?=[^\\sA-Za-z_])|$","patterns":[{"include":"#declared-name-qualifier"}],"endCaptures":{"1":{"name":"entity.name.type.carbon"}}},{"include":"#comments"},{"begin":"\\(","end":"(\\))|$","patterns":[{"include":"#choice-parameters"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.carbon"}},"endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.carbon"}}},{"begin":"\\{","end":"(\\})|(?=[;=])","patterns":[{"include":"#comments"},{"begin":"\\(","end":"(\\))|$","patterns":[{"include":"#choice-parameters"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.carbon"}},"endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.carbon"}}},{"begin":"\\[","end":"(\\])|$","patterns":[{"include":"#choice-parameters"}],"beginCaptures":{"0":{"name":"punctuation.section.brackets.begin.bracket.square.carbon"}},"endCaptures":{"1":{"name":"punctuation.section.brackets.end.bracket.square.carbon"}}},{"include":"#keywords"},{"include":"#literals"},{"name":"variable.other.enummember.carbon","match":"\\b(?:r#)?[A-Za-z_][A-Za-z0-9_]*\\b"},{"include":"#numbers"},{"include":"#operators"},{"include":"#punctuation"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.bracket.curly.carbon"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.bracket.curly.carbon"}}}],"beginCaptures":{"1":{"name":"storage.type.carbon"}}}]},"choice-parameters":{"patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#inheritance"},{"include":"#type-annotation"},{"include":"#keywords"},{"include":"#literals"},{"include":"#numbers"},{"include":"#operators"},{"include":"#identifiers"},{"include":"#punctuation"}]},"comments":{"patterns":[{"match":"^\\s*((//)(@(?:dump-sem-ir-(?:begin|end)|include-in-dumps)))$","captures":{"1":{"name":"comment.line.double-slash.carbon"},"2":{"name":"punctuation.definition.comment.carbon"},"3":{"name":"keyword.other.directive.carbon"}}},{"name":"comment.line.double-slash.carbon","match":"(//).*$","captures":{"1":{"name":"punctuation.definition.comment.carbon"}}}]},"cpp-inline":{"patterns":[{"contentName":"meta.embedded.block.cpp","begin":"\\b(?:(import)\\s+(Cpp)\\s+(inline)|(inline)\\s+(Cpp))\\s*(''')([^\\s'\\\"#]*)(?:[ \\t]*((//)(?:[ \\t][^\\n]*)?)$)?","end":"(''')\\s*(;)?","patterns":[{"include":"source.c++"}],"beginCaptures":{"1":{"name":"keyword.control.import.carbon"},"2":{"name":"support.class.carbon"},"3":{"name":"storage.type.carbon"},"4":{"name":"storage.type.carbon"},"5":{"name":"support.class.carbon"},"6":{"name":"punctuation.definition.string.begin.carbon"},"7":{"name":"entity.name.tag.language.carbon"},"8":{"name":"comment.line.double-slash.carbon"},"9":{"name":"punctuation.definition.comment.carbon"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.carbon"},"2":{"name":"punctuation.terminator.statement.carbon"}}},{"contentName":"meta.embedded.inline.cpp","begin":"\\b(?:(import)\\s+(Cpp)\\s+(inline)|(inline)\\s+(Cpp))\\s*(\")","end":"(\")\\s*(;)?","patterns":[{"include":"source.c++"}],"beginCaptures":{"1":{"name":"keyword.control.import.carbon"},"2":{"name":"support.class.carbon"},"3":{"name":"storage.type.carbon"},"4":{"name":"storage.type.carbon"},"5":{"name":"support.class.carbon"},"6":{"name":"punctuation.definition.string.begin.carbon"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.carbon"},"2":{"name":"punctuation.terminator.statement.carbon"}}}]},"declarations":{"patterns":[{"begin":"(?\u003c=\\bfn)\\s+(?=(?:r#)?[A-Za-z_])","end":"(?:(destroy)|((?:r#)?[A-Za-z_][A-Za-z0-9_]*))\\b(?!\\s*(?:\\[[^\\[\\]]*\\]\\s*)?(?:\\([^()]*(?:\\([^()]*(?:\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*)?\\.)|(?=[^\\sA-Za-z_])|$","patterns":[{"include":"#declared-name-qualifier"}],"endCaptures":{"1":{"name":"keyword.other.carbon"},"2":{"name":"entity.name.function.definition.carbon"}}},{"begin":"(?\u003c=\\bclass)\\s+(?=(?:r#)?[A-Za-z_])","end":"((?:r#)?[A-Za-z_][A-Za-z0-9_]*)\\b(?!\\s*(?:\\[[^\\[\\]]*\\]\\s*)?(?:\\([^()]*(?:\\([^()]*(?:\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*)?\\.)|(?=[^\\sA-Za-z_])|$","patterns":[{"include":"#declared-name-qualifier"}],"endCaptures":{"1":{"name":"entity.name.type.class.carbon"}}},{"begin":"(?:(?\u003c=\\balias)|(?\u003c=\\bconstraint)|(?\u003c=\\binterface))\\s+(?=(?:r#)?[A-Za-z_])","end":"((?:r#)?[A-Za-z_][A-Za-z0-9_]*)\\b(?!\\s*(?:\\[[^\\[\\]]*\\]\\s*)?(?:\\([^()]*(?:\\([^()]*(?:\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*)?\\.)|(?=[^\\sA-Za-z_])|$","patterns":[{"include":"#declared-name-qualifier"}],"endCaptures":{"1":{"name":"entity.name.type.carbon"}}},{"match":"\\b(let)\\s+((?:(?:generic|ref|template|unused|var)\\s+)*)(?!_\\s*:)(r#)?([A-Za-z_][A-Za-z0-9_]*)(?=\\s*:(?![=!?]))","captures":{"1":{"name":"storage.type.carbon"},"2":{"name":"storage.modifier.carbon"},"3":{"name":"punctuation.definition.raw-identifier.carbon"},"4":{"name":"variable.other.constant.carbon"}}},{"match":"\\b(var)\\s+((?:(?:generic|ref|template|unused)\\s+)*)(?!(?:_|self)\\s*:)(r#)?([A-Za-z_][A-Za-z0-9_]*)(?=\\s*:(?![=!?]))","captures":{"1":{"name":"storage.type.carbon"},"2":{"name":"storage.modifier.carbon"},"3":{"name":"punctuation.definition.raw-identifier.carbon"},"4":{"name":"variable.other.carbon"}}},{"match":"\\b(import)\\s+(?!(?:library|inline|Core|Cpp)\\b)((?:r#)?[A-Za-z_][A-Za-z0-9_]*)","captures":{"1":{"name":"keyword.control.import.carbon"},"2":{"name":"entity.name.namespace.carbon"}}},{"match":"\\b(package|namespace)\\s+(?!(?:library|Core|Cpp)\\b)((?:r#)?[A-Za-z_][A-Za-z0-9_]*)","captures":{"1":{"name":"storage.type.carbon"},"2":{"name":"entity.name.namespace.carbon"}}},{"match":"\\b(library)\\s+((\")((?:\\\\.|[^\"\\\\\\n])*)(\"))","captures":{"1":{"name":"storage.type.carbon"},"2":{"name":"string.quoted.double.carbon"},"3":{"name":"punctuation.definition.string.begin.carbon"},"4":{"name":"entity.name.namespace.library.carbon"},"5":{"name":"punctuation.definition.string.end.carbon"}}}]},"declared-name-qualifier":{"patterns":[{"begin":"(((?:r#)?[A-Za-z_][A-Za-z0-9_]*))\\b(?=\\s*(?:\\[[^\\[\\]]*\\]\\s*)?(?:\\([^()]*(?:\\([^()]*(?:\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*)?\\.)","end":"(\\.)","patterns":[{"include":"#type-body"}],"beginCaptures":{"1":{"name":"entity.name.type.carbon"},"2":{"name":"entity.name.scope-resolution.carbon"}},"endCaptures":{"1":{"name":"punctuation.separator.dot-access.carbon"}}}]},"expression-parens":{"patterns":[{"begin":"\\(","end":"(\\))|$","patterns":[{"include":"#expression-parens"},{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.carbon"}},"endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.carbon"}}}]},"identifiers":{"patterns":[{"include":"#bindings"},{"name":"variable.other.carbon","match":"\\b(r#)([A-Za-z_][A-Za-z0-9_]*)","captures":{"1":{"name":"punctuation.definition.raw-identifier.carbon"}}},{"name":"entity.name.function.member.carbon","match":"(?:(?\u003c=\\.)|(?\u003c=\\-\u003e))[A-Za-z_][A-Za-z0-9_]*(?=\\s*\\()"},{"name":"variable.other.property.carbon","match":"(?:(?\u003c=\\.)|(?\u003c=\\-\u003e))[A-Za-z_][A-Za-z0-9_]*\\b"},{"name":"entity.name.function.call.carbon","match":"\\b[A-Za-z_][A-Za-z0-9_]*(?=\\s*\\()"},{"name":"variable.other.carbon","match":"\\b[A-Za-z_][A-Za-z0-9_]*\\b"}]},"impls-clause":{"patterns":[{"name":"meta.inheritance-clause.carbon","begin":"\\b(impls)\\b","end":"(?=[,;={}\\)\\]]|[-+/%!\u003c\u003e|^~?@\\\\]|//|\\b(?:in|and|or|not|as|impls)\\b|$)","patterns":[{"include":"#inheritance-body"}],"beginCaptures":{"1":{"name":"keyword.operator.expression.impls.carbon"}}}]},"inheritance":{"patterns":[{"name":"meta.type.annotation.carbon","begin":"\\b(impl)\\b(?!\\s*(?:adapt|alias|base|choice|class|constraint|export|fn|impl|import|interface|let|library|match_first|namespace|observe|package|require|var)\\b)","end":"(?=[;{]|$)","patterns":[{"name":"meta.inheritance-clause.carbon","begin":"\\b(as)\\b","end":"(?=[,;={}\\)\\]]|[-+/%!\u003c\u003e|^~?@\\\\]|//|\\b(?:in|and|or|not|as|impls)\\b|$)","patterns":[{"include":"#inheritance-body"}],"beginCaptures":{"1":{"name":"keyword.operator.expression.as.carbon"}}},{"include":"#type-body"}],"beginCaptures":{"1":{"name":"storage.type.carbon"}}},{"name":"meta.inheritance-clause.carbon","begin":"(?\u003c!\\.)\\b(base)\\s*(:)(?![=!?])","end":"(?=[,;={}\\)\\]]|[-+/%!\u003c\u003e|^~?@\\\\]|//|\\b(?:in|and|or|not|as|impls)\\b|$)","patterns":[{"include":"#inheritance-body"}],"beginCaptures":{"1":{"name":"storage.type.carbon"},"2":{"name":"keyword.operator.type.annotation.carbon"}}},{"include":"#impls-clause"}]},"inheritance-body":{"patterns":[{"begin":"(?\u003c=[A-Za-z0-9_\\]])\\(","end":"(\\))|$","patterns":[{"include":"#expression-parens"},{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.carbon"}},"endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.carbon"}}},{"begin":"\\(","end":"(\\))|$","patterns":[{"include":"#inheritance-body"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.carbon"}},"endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.carbon"}}},{"begin":"\\b(where)\\b","end":"(?=[;{}\\)\\]]|$)","patterns":[{"include":"#expression-parens"},{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.other.where.carbon"}}},{"include":"#keywords"},{"include":"#literals"},{"name":"entity.other.inherited-class.carbon","match":"\\b(?:r#)?[A-Za-z_][A-Za-z0-9_]*\\b(?!\\s*\\.)"},{"include":"#type-body"}]},"keywords":{"patterns":[{"name":"keyword.other.base.carbon","match":"(?\u003c=\\.)\\b(base)\\b"},{"name":"keyword.control.import.carbon","match":"\\b(import)\\b"},{"name":"storage.type.carbon","match":"\\b(adapt|alias|choice|class|constraint|fn|inline|interface|let|library|match_first|namespace|observe|require|var)\\b"},{"name":"storage.type.carbon","match":"\\b(base)\\b(?!\\s*class\\b)"},{"name":"storage.type.carbon","match":"\\b(export)\\b(?!\\s*import\\b)"},{"name":"storage.type.carbon","match":"\\b(impl)\\b(?!\\s*(adapt|alias|base|choice|class|constraint|export|fn|impl|import|interface|let|library|match_first|namespace|observe|package|require|var)\\b)"},{"name":"storage.type.carbon","match":"\\b(package)\\b(?!\\.)"},{"name":"storage.modifier.carbon","match":"\\b(abstract|const|eval|extend|extern|final|generic|musteval|override|partial|private|protected|ref|runtime|static|template|unsafe|unused|val|virtual)\\b"},{"name":"storage.modifier.carbon","match":"\\b(default)\\b(?!\\s*=\u003e)"},{"name":"storage.modifier.carbon","match":"\\b(base)\\b(?=\\s*class\\b)"},{"name":"storage.modifier.carbon","match":"\\b(export)\\b(?=\\s*import\\b)"},{"name":"storage.modifier.carbon","match":"\\b(impl)\\b(?=\\s*(adapt|alias|base|choice|class|constraint|export|fn|impl|import|interface|let|library|match_first|namespace|observe|package|require|var)\\b)"},{"name":"keyword.control.carbon","match":"\\b(break|case|continue|else|for|if|match|return|returned|then|while)\\b"},{"name":"keyword.control.carbon","match":"\\b(default)\\b(?=\\s*=\u003e)"},{"name":"keyword.control.carbon","match":"\\b(and|or)\\b"},{"name":"keyword.operator.expression.not.carbon","match":"\\b(not)\\b"},{"name":"keyword.operator.expression.as.carbon","match":"\\b(as)\\b"},{"name":"keyword.operator.expression.impls.carbon","match":"\\b(impls)\\b"},{"name":"keyword.operator.expression.in.carbon","match":"\\b(in)\\b"},{"name":"keyword.operator.expression.like.carbon","match":"\\b(like)\\b"},{"name":"keyword.operator.expression.typeof.carbon","match":"\\b(typeof)\\b"},{"name":"keyword.other.where.carbon","match":"\\b(where)\\b"},{"name":"keyword.other.carbon","match":"\\b(destroy|each|expand|forall|form|friend)\\b"}]},"literals":{"patterns":[{"name":"variable.language.carbon","match":"\\b(self|Self)\\b"},{"name":"variable.language.carbon","match":"\\b(_)\\b"},{"name":"support.class.carbon","match":"\\b(Core|Cpp)\\b"},{"name":"variable.language.carbon","match":"\\b(package)\\b(?=\\.)"},{"name":"constant.language.carbon","match":"\\b(true|false)\\b"},{"name":"support.type.builtin.carbon","match":"\\b(array|auto|type)\\b"},{"name":"support.type.primitive.carbon","match":"\\b(bool|char|str)\\b"},{"name":"support.type.primitive.carbon","match":"\\b[iuf][1-9][0-9]*\\b"}]},"numbers":{"patterns":[{"name":"constant.numeric.hex.carbon","match":"(?\u003c!\\.)(?\u003c!-\u003e)\\b(0x)[_0-9A-Za-z]*\\.[0-9A-Za-z][_0-9A-Za-z]*(?:(?\u003c=[a-z])[-+][0-9A-Za-z][_0-9A-Za-z]*)?","captures":{"1":{"name":"keyword.other.unit.hexadecimal.carbon"}}},{"name":"constant.numeric.hex.carbon","match":"\\b(0x)[_0-9A-Za-z]*","captures":{"1":{"name":"keyword.other.unit.hexadecimal.carbon"}}},{"name":"constant.numeric.octal.carbon","match":"\\b(0o)[_0-9A-Za-z]*","captures":{"1":{"name":"keyword.other.unit.octal.carbon"}}},{"name":"constant.numeric.binary.carbon","match":"\\b(0b)[_0-9A-Za-z]*","captures":{"1":{"name":"keyword.other.unit.binary.carbon"}}},{"name":"constant.numeric.decimal.carbon","match":"(?\u003c!\\.)(?\u003c!-\u003e)\\b[0-9][_0-9A-Za-z]*\\.[0-9A-Za-z][_0-9A-Za-z]*(?:(?\u003c=[a-z])[-+][0-9A-Za-z][_0-9A-Za-z]*)?"},{"name":"constant.numeric.decimal.carbon","match":"\\b[0-9][_0-9A-Za-z]*"},{"name":"variable.parameter.carbon","match":"\\$[0-9]+"}]},"operators":{"patterns":[{"name":"keyword.operator.type.annotation.symbolic.carbon","match":":!"},{"name":"keyword.operator.type.annotation.form.carbon","match":":\\?"},{"name":"keyword.operator.type.annotation.carbon","match":":(?![=!?])"},{"name":"punctuation.separator.pointer-access.carbon","match":"(?\u003c=[A-Za-z0-9_)\\]}])\\-\u003e(?!\\?)"},{"name":"keyword.operator.function-result.form.carbon","match":"\\-\u003e\\?"},{"name":"keyword.operator.function-result.carbon","match":"\\-\u003e(?!\\?)"},{"name":"keyword.operator.arrow.fat.carbon","match":"=\u003e"},{"name":"keyword.operator.carbon","match":"\u003c=\u003e|\u003c\u003c=|\u003e\u003e=|==|!=|\u003c=|\u003e=|\u003c\u003c|\u003e\u003e|\\+\\+|--|\\+=|-=|\\*=|/=|%=|\u0026=|\\|=|\\^=|~=|:=|\u003c-|\u003c\u003e|[-+*/%\u0026|^~!\u003c\u003e=@?\\\\]"}]},"punctuation":{"patterns":[{"name":"punctuation.section.parens.begin.bracket.round.carbon","match":"\\("},{"name":"punctuation.section.parens.end.bracket.round.carbon","match":"\\)"},{"name":"punctuation.section.block.begin.bracket.curly.carbon","match":"\\{"},{"name":"punctuation.section.block.end.bracket.curly.carbon","match":"\\}"},{"name":"punctuation.section.brackets.begin.bracket.square.carbon","match":"\\["},{"name":"punctuation.section.brackets.end.bracket.square.carbon","match":"\\]"},{"name":"punctuation.separator.dot-access.carbon","match":"\\."},{"name":"punctuation.separator.comma.carbon","match":","},{"name":"punctuation.terminator.statement.carbon","match":";"}]},"string-escapes":{"patterns":[{"name":"constant.character.escape.carbon","match":"\\\\(?:[tnr0'\\\"\\\\]|x[0-9A-F]{2}|u\\{[0-9A-F]+\\})"}]},"string-escapes-1":{"patterns":[{"name":"constant.character.escape.carbon","match":"\\\\#(?:[tnr0'\\\"\\\\]|x[0-9A-F]{2}|u\\{[0-9A-F]+\\})"}]},"string-escapes-2":{"patterns":[{"name":"constant.character.escape.carbon","match":"\\\\##(?:[tnr0'\\\"\\\\]|x[0-9A-F]{2}|u\\{[0-9A-F]+\\})"}]},"string-escapes-raw":{"patterns":[{"name":"constant.character.escape.carbon","match":"\\\\#{3,}(?:[tnr0'\\\"\\\\]|x[0-9A-F]{2}|u\\{[0-9A-F]+\\})"}]},"strings":{"patterns":[{"name":"string.quoted.triple.carbon","begin":"(#{3,})(''')([^\\s'\\\"#]*)(?:[ \\t]*((//)(?:[ \\t][^\\n]*)?)$)?","end":"(''')\\1","patterns":[{"include":"#string-escapes-raw"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.carbon"},"2":{"name":"punctuation.definition.string.begin.carbon"},"3":{"name":"entity.name.tag.language.carbon"},"4":{"name":"comment.line.double-slash.carbon"},"5":{"name":"punctuation.definition.comment.carbon"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.carbon"}}},{"name":"string.quoted.triple.carbon","begin":"(##)(''')([^\\s'\\\"#]*)(?:[ \\t]*((//)(?:[ \\t][^\\n]*)?)$)?","end":"('''##)","patterns":[{"include":"#string-escapes-2"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.carbon"},"2":{"name":"punctuation.definition.string.begin.carbon"},"3":{"name":"entity.name.tag.language.carbon"},"4":{"name":"comment.line.double-slash.carbon"},"5":{"name":"punctuation.definition.comment.carbon"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.carbon"}}},{"name":"string.quoted.triple.carbon","begin":"(#)(''')([^\\s'\\\"#]*)(?:[ \\t]*((//)(?:[ \\t][^\\n]*)?)$)?","end":"('''#)","patterns":[{"include":"#string-escapes-1"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.carbon"},"2":{"name":"punctuation.definition.string.begin.carbon"},"3":{"name":"entity.name.tag.language.carbon"},"4":{"name":"comment.line.double-slash.carbon"},"5":{"name":"punctuation.definition.comment.carbon"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.carbon"}}},{"name":"string.quoted.triple.carbon","begin":"(''')([^\\s'\\\"#]*)(?:[ \\t]*((//)(?:[ \\t][^\\n]*)?)$)?","end":"(''')","patterns":[{"include":"#string-escapes"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.carbon"},"2":{"name":"entity.name.tag.language.carbon"},"3":{"name":"comment.line.double-slash.carbon"},"4":{"name":"punctuation.definition.comment.carbon"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.carbon"}}},{"name":"string.quoted.triple.carbon","begin":"(\"\"\")([^\\s'\\\"#]*)(?:[ \\t]*((//)(?:[ \\t][^\\n]*)?)$)?","end":"(\"\"\")","patterns":[{"include":"#string-escapes"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.carbon"},"2":{"name":"entity.name.tag.language.carbon"},"3":{"name":"comment.line.double-slash.carbon"},"4":{"name":"punctuation.definition.comment.carbon"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.carbon"}}},{"name":"string.quoted.double.carbon","begin":"(#{3,})(\")","end":"(\")\\1|$","patterns":[{"include":"#string-escapes-raw"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.carbon"},"2":{"name":"punctuation.definition.string.begin.carbon"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.carbon"}}},{"name":"string.quoted.double.carbon","begin":"(##)(\")","end":"(\"##)|$","patterns":[{"include":"#string-escapes-2"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.carbon"},"2":{"name":"punctuation.definition.string.begin.carbon"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.carbon"}}},{"name":"string.quoted.double.carbon","begin":"(#)(\")","end":"(\"#)|$","patterns":[{"include":"#string-escapes-1"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.carbon"},"2":{"name":"punctuation.definition.string.begin.carbon"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.carbon"}}},{"name":"string.quoted.double.carbon","begin":"(\")","end":"(\")|$","patterns":[{"include":"#string-escapes"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.carbon"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.carbon"}}},{"name":"string.quoted.single.carbon","begin":"(')","end":"(')|$","patterns":[{"include":"#string-escapes"}],"beginCaptures":{"1":{"name":"punctuation.definition.string.begin.carbon"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.carbon"}}}]},"type-annotation":{"patterns":[{"name":"meta.type.annotation.carbon","begin":"(:!)|(:\\?)|(:(?![=!?]))|((?\u003c![A-Za-z0-9_)\\]}])\\-\u003e\\?)|((?\u003c![A-Za-z0-9_)\\]}])\\-\u003e(?!\\?))|\\b(as)\\b|\\b(adapt)\\b|\\b(require)\\b","end":"(?=[,;={}\\)\\]]|[-+/%!\u003c\u003e|^~?@\\\\]|//|\\b(?:in|and|or|not|as|impls)\\b|$)","patterns":[{"include":"#type-body"}],"beginCaptures":{"1":{"name":"keyword.operator.type.annotation.symbolic.carbon"},"2":{"name":"keyword.operator.type.annotation.form.carbon"},"3":{"name":"keyword.operator.type.annotation.carbon"},"4":{"name":"keyword.operator.function-result.form.carbon"},"5":{"name":"keyword.operator.function-result.carbon"},"6":{"name":"keyword.operator.expression.as.carbon"},"7":{"name":"storage.type.carbon"},"8":{"name":"storage.type.carbon"}}}]},"type-body":{"patterns":[{"begin":"\\(","end":"(\\))|$","patterns":[{"include":"#type-body"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.bracket.round.carbon"}},"endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.carbon"}}},{"begin":"\\[","end":"(\\])|$","patterns":[{"include":"#type-body"}],"beginCaptures":{"0":{"name":"punctuation.section.brackets.begin.bracket.square.carbon"}},"endCaptures":{"1":{"name":"punctuation.section.brackets.end.bracket.square.carbon"}}},{"begin":"\\bwhere\\b","end":"(?=[;{}\\)\\]]|$)","patterns":[{"include":"#expression-parens"},{"include":"$self"}],"beginCaptures":{"0":{"name":"keyword.other.where.carbon"}}},{"include":"#impls-clause"},{"include":"#comments"},{"include":"#strings"},{"begin":"\\b(typeof)\\s*(\\()","end":"(\\))|$","patterns":[{"include":"#expression-parens"},{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.operator.expression.typeof.carbon"},"2":{"name":"punctuation.section.parens.begin.bracket.round.carbon"}},"endCaptures":{"1":{"name":"punctuation.section.parens.end.bracket.round.carbon"}}},{"include":"#keywords"},{"include":"#literals"},{"include":"#numbers"},{"name":"keyword.operator.type.pointer.carbon","match":"(?\u003c=[A-Za-z0-9_)\\]*])\\*(?!=)"},{"include":"#operators"},{"include":"#bindings"},{"name":"entity.name.type.carbon","match":"(?:(?\u003c=[A-Za-z0-9_)\\]]\\.)|(?\u003c!\\.))\\b((?:r#)?[A-Za-z_][A-Za-z0-9_]*)\\b(?=\\s*(?:\\[[^\\[\\]]*\\]\\s*)?(?:\\([^()]*(?:\\([^()]*(?:\\([^()]*\\)[^()]*)*\\)[^()]*)*\\)\\s*)?\\.)","captures":{"1":{"name":"entity.name.scope-resolution.carbon"}}},{"name":"entity.name.type.carbon","match":"(?:(?\u003c=[A-Za-z0-9_)\\]]\\.)|(?\u003c!\\.))\\b(r#)?[A-Za-z_][A-Za-z0-9_]*\\b","captures":{"1":{"name":"punctuation.definition.raw-identifier.carbon"}}},{"include":"#identifiers"},{"include":"#punctuation"}]}}}
@@ -0,0 +1 @@
1
+ {"name":"Cedar","scopeName":"source.cedar","patterns":[{"include":"#comment"},{"include":"#strings"},{"include":"#annotations"},{"include":"#isTypes"},{"include":"#sections"},{"include":"#keywords"},{"include":"#operators"},{"include":"#constants"},{"include":"#integers"},{"include":"#booleans"},{"include":"#variables"},{"include":"#methods"},{"include":"#functions"},{"include":"#ipmethods"},{"include":"#decimalmethods"},{"include":"#datetimemethods"},{"include":"#durationmethods"},{"include":"#entities"},{"include":"#namespacedTypes"},{"include":"#punctuation"}],"repository":{"annotations":{"patterns":[{"name":"meta.decorator.cedar","match":"([@][_a-zA-Z][_a-zA-Z0-9]*)","captures":{"1":{"name":"entity.name.function.decorator.cedar"}}}]},"booleans":{"patterns":[{"name":"constant.language.boolean.cedar","match":"\\b(true|false)\\b"}]},"comment":{"name":"comment.line.double-slash.cedar","match":"//.*(?=$)"},"constants":{"patterns":[{"name":"variable.language.cedar","match":"\\b(?\u003c!\\.)(principal|action|resource|context)\\b"}]},"datetimemethods":{"patterns":[{"match":"(\\.)(offset|durationSince|toDate|toTime)(\\()","captures":{"1":{"name":"punctuation.accessor.cedar"},"2":{"name":"entity.name.function.member.cedar"},"3":{"name":"punctuation.section.brackets.cedar"}}}]},"decimalmethods":{"patterns":[{"match":"(\\.)(lessThan|lessThanOrEqual|greaterThan|greaterThanOrEqual)(\\()","captures":{"1":{"name":"punctuation.accessor.cedar"},"2":{"name":"entity.name.function.member.cedar"},"3":{"name":"punctuation.section.brackets.cedar"}}}]},"durationmethods":{"patterns":[{"match":"(\\.)(toMilliseconds|toSeconds|toMinutes|toHours|toDays)(\\()","captures":{"1":{"name":"punctuation.accessor.cedar"},"2":{"name":"entity.name.function.member.cedar"},"3":{"name":"punctuation.section.brackets.cedar"}}}]},"entities":{"patterns":[{"match":"\\b(([_a-zA-Z][_a-zA-Z0-9]*::)*[_a-zA-Z][_a-zA-Z0-9]*)(::)(?=\")","captures":{"1":{"name":"entity.name.type.cedar"},"3":{"name":"punctuation.separator.namespace.cedar"}}}]},"functions":{"patterns":[{"match":"\\b(ip|decimal|datetime|duration)(\\()","captures":{"1":{"name":"support.function.cedar"},"2":{"name":"punctuation.section.brackets.cedar"}}}]},"integers":{"patterns":[{"name":"constant.numeric.cedar","match":"\\b[0-9]+\\b"}]},"ipmethods":{"patterns":[{"match":"(\\.)(isIpv4|isIpv6|isLoopback|isMulticast|isInRange)(\\()","captures":{"1":{"name":"punctuation.accessor.cedar"},"2":{"name":"entity.name.function.member.cedar"},"3":{"name":"punctuation.section.brackets.cedar"}}}]},"isTypes":{"patterns":[{"match":"\\b(is)\\s+(([_a-zA-Z][_a-zA-Z0-9]*::)*[_a-zA-Z][_a-zA-Z0-9]*)","captures":{"1":{"name":"keyword.operator.word.cedar"},"2":{"name":"entity.name.type.cedar"}}}]},"keywords":{"patterns":[{"name":"keyword.control.conditional.cedar","match":"\\b(if|then|else)\\b"},{"name":"keyword.operator.word.cedar","match":"\\b(in|has|like|is)\\b"}]},"methods":{"patterns":[{"match":"(\\.)(contains|containsAll|containsAny|isEmpty|getTag|hasTag)(\\()","captures":{"1":{"name":"punctuation.accessor.cedar"},"2":{"name":"entity.name.function.member.cedar"},"3":{"name":"punctuation.section.brackets.cedar"}}}]},"namespacedTypes":{"patterns":[{"match":"\\b(([_a-zA-Z][_a-zA-Z0-9]*::)+[_a-zA-Z][_a-zA-Z0-9]*)\\b","captures":{"1":{"name":"entity.name.type.cedar"}}}]},"operators":{"patterns":[{"name":"keyword.operator.cedar","match":"\u0026\u0026|\\|\\||==|!=|\u003e=|\u003c=|\u003e|\u003c|\\+|-|\\*|!"}]},"punctuation":{"patterns":[{"name":"punctuation.separator.namespace.cedar","match":"::"},{"name":"punctuation.accessor.cedar","match":"\\."},{"name":"punctuation.separator.comma.cedar","match":","},{"name":"punctuation.terminator.cedar","match":";"},{"name":"punctuation.separator.key-value.cedar","match":":"},{"name":"punctuation.section.brackets.cedar","match":"[\\[\\]{}()]"}]},"sections":{"patterns":[{"name":"keyword.control.cedar","match":"\\b(?\u003c!\\.)(permit|forbid|when|unless)\\b"}]},"strings":{"name":"string.quoted.double.cedar","begin":"\"","end":"\"|$","patterns":[{"name":"constant.character.escape.cedar","match":"\\\\([\"\\\\nrt0*]|x[0-9A-Fa-f]{2}|u\\{[0-9A-Fa-f]{1,6}\\})"},{"name":"invalid.illegal.unknown-escape.cedar","match":"\\\\."}]},"variables":{"patterns":[{"name":"variable.parameter.cedar","match":"\\?(principal|resource)\\b"}]}}}
@@ -1 +1 @@
1
- {"name":"Cangjie","scopeName":"source.cj","patterns":[{"include":"#strings"},{"include":"#mark"},{"include":"#package"},{"include":"#import"},{"include":"#quoteToken"},{"include":"#originStrings"},{"include":"#comments"},{"include":"#code"},{"include":"#module"},{"include":"#forStruct"},{"include":"#at"},{"include":"#function"},{"include":"#macro"},{"include":"#classlike-declaration"},{"include":"#variable"},{"include":"#qualified-type"},{"include":"#type"}],"repository":{"at":{"patterns":[{"name":"keyword.control.Cangjie","match":"@"}]},"block":{"begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#keywords"},{"include":"#function"},{"include":"#variable"},{"include":"#constants"},{"include":"#block"}]},"classlike-declaration":{"patterns":[{"name":"support.class.Cangjie","begin":"\\b(class|interface|struct|enum|extend|type)\\s+","end":"(?=\\b[0-9])|(?=\\b(VArray|const|differentiable|grad|vjp|valWithGrad|adjoint|adjointOf|when|except|include|primal|stage|main|false|IntNative|mut|Nothing|prop|true|UIntNative|unsafe|Int8|Int16|Int32|Int64|UInt8|UInt16|UInt32|UInt64|Float16|Float32|Float64|Rune|Bool|Unit|struct|enum|This|package|import|class|interface|extend|func|let|var|type|init|this|super|if|else|case|try|catch|finally|for|do|while|throw|return|continue|break|is|as|in|match|where|spawn|synchronized|macro|quote|static|internal|external|operator|foreign|inout)\\s)|`[a-zA-Z_][a-zA-Z0-9_]*`|(?=[^\\w\\s])|\\b[a-zA-Z_][a-zA-Z0-9_]*"},{"name":"support.function.Cangjie","begin":"\\b(func)\\s+","end":"(?=\\b[0-9])|(?=\\b(VArray|const|differentiable|grad|vjp|valWithGrad|adjoint|adjointOf|when|except|include|primal|stage|main|false|IntNative|mut|Nothing|prop|true|UIntNative|unsafe|Int8|Int16|Int32|Int64|UInt8|UInt16|UInt32|UInt64|Float16|Float32|Float64|Rune|Bool|Unit|struct|enum|This|package|import|class|interface|extend|func|let|var|type|init|this|super|if|else|case|try|catch|finally|for|do|while|throw|return|continue|break|is|as|in|match|where|spawn|synchronized|macro|quote|static|internal|external|operator|foreign|inout)\\s)|`[a-zA-Z_][a-zA-Z0-9_]*`|(?=[^\\w\\s])|\\b[a-zA-Z_][a-zA-Z0-9_]*"},{"name":"support.variable.Cangjie","begin":"\\b(let|var)\\s+","end":"(?=\\b[0-9])|(?=\\b(VArray|const|differentiable|grad|vjp|valWithGrad|adjoint|adjointOf|when|except|include|primal|stage|main|false|IntNative|mut|Nothing|prop|true|UIntNative|unsafe|Int8|Int16|Int32|Int64|UInt8|UInt16|UInt32|UInt64|Float16|Float32|Float64|Rune|Bool|Unit|struct|enum|This|package|import|class|interface|extend|func|let|var|type|init|this|super|if|else|case|try|catch|finally|for|do|while|throw|return|continue|break|is|as|in|match|where|spawn|synchronized|macro|quote|static|internal|external|operator|foreign|inout)\\s)|`[a-zA-Z_][a-zA-Z0-9_]*`|(?=[^\\w\\s])|\\b[a-zA-Z_][a-zA-Z0-9_]*"},{"name":"support.class.Cangjie","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*(?=\\s*\\\u003c[\\*\\\u003c\\,\\w\\s]*\\\u003e)"},{"name":"support.class.Cangjie","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*(?=\\s*\u003c:[\\s*[a-zA-Z_][a-zA-Z0-9_]*\\s*\u0026\\s*]*)"},{"name":"keyword.operator.Cangjie","begin":"\\b(case)\\s+","end":"(?=(\\=\\\u003e))|[\\n\\r]","patterns":[{"include":"#memberAccess"},{"include":"#classlike-declaration"},{"include":"#function"},{"include":"#strings"},{"include":"#keywords"},{"include":"#qualified-type"},{"include":"#constants"},{"include":"#type"},{"include":"#variable"}]}]},"code":{"patterns":[{"include":"#keywords"},{"include":"#constants"},{"include":"#strings"}]},"comments":{"patterns":[{"name":"comment.block.Cangjie","begin":"(/\\*)|(/\\*/\\*)","end":"(\\*/)","patterns":[{"name":"comment.block.Cangjie","begin":"(/\\*)|(/\\*/\\*)","end":"(\\*/)"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.Cangjie"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.Cangjie"}}},{"name":"comment.line.Cangjie","begin":"//","end":"\n"}]},"constants":{"patterns":[{"name":"constant.numeric.binary.integer.Cangjie","match":"\\b0[bB][01]([01_]*)?(u8|u16|u32|u64|i8|i16|i32|i64)?\\b"},{"name":"constant.numeric.octal.integer.Cangjie","match":"\\b0[oO][0-7]([0-7_]*)?(u8|u16|u32|u64|i8|i16|i32|i64)?\\b"},{"name":"constant.numeric.decimal.integer.Cangjie","match":"\\b[0-9]([0-9_]*)?(u8|u16|u32|u64|i8|i16|i32|i64)?\\b"},{"name":"constant.numeric.hexadecimal.integer.Cangjie","match":"\\b0[xX][0-9a-fA-F]([0-9a-fA-F_]*)?(u8|u16|u32|u64|i8|i16|i32|i64)?(?!\\.)\\b"},{"name":"constant.numeric.decimal.float.Cangjie","match":"(\\b([0-9]([0-9_]*)?[eE][-]?[0-9]([0-9_]*)?)|((?\u003c!\\.)\\.[0-9]([0-9_]*)?([eE][-]?[0-9]([0-9_]*)?)?)|\\b([0-9]([0-9_]*)?\\.[0-9]([0-9_]*)?([eE][-]?[0-9]([0-9_]*)?)?))(f16|f32|f64)?"},{"name":"constant.numeric.hexadecimal.float.Cangjie","match":"\\b0[xX](\\.[0-9a-fA-F]([0-9a-fA-F_]*)?|[0-9a-fA-F]([0-9a-fA-F_]*)?\\.[0-9a-fA-F]([0-9a-fA-F_]*)?|[0-9a-fA-F]([0-9a-fA-F_]*)?)([pP][-]?[0-9]([0-9_]*)?)"},{"name":"constant.character.escape.string.byte.Cangjie","match":"\\bb'([^'\\\\]|\\\\[tbrn'\\\\\"fv0]|\\\\u\\{[0-9a-fA-F]{1,2}\\})'"},{"name":"constant.character.escape.string.byteArray.Cangjie","match":"\\bb\"([^\"\\\\]|\\\\[tbrn'\\\\\"fv0]|\\\\u\\{[0-9a-fA-F]{1,2}\\})*\""}]},"escape_string":{"name":"constant.character.escape.string.byteArray.Cangjie","match":"(\\\\\\\\)|(\\\\u\\{[0-9a-fA-F]{1,8}\\})|(\\\\[a|b|t|r|n|\"|\\'|f|v|\\$|0])"},"function":{"patterns":[{"name":"support.function.Cangjie","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*(?=\\s*\\(.*)"},{"name":"support.function.Cangjie","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*(?=\\s*\\\u003c[\\*\\\u003c\\,\\w\\s]*\\\u003e\\s*\\(.*)"},{"name":"support.function.Cangjie","match":"\\boperator\\s+func\\s+((\\(\\))|(\\[\\])|(\\*\\*)|(\\\u003c\\\u003c)|(\\\u003e\\\u003e)|(\\\u003e\\=)|(\\\u003c\\=)|(\\!\\=)|(\\=\\=)|\\!|\\-|\\*|\\/|\\%|\\+|\\\u003c|\\\u003e|\\\u0026|\\^|\\|)"},{"name":"support.function.Cangjie","match":"\\b(grad|@vjp|adjointOf|valWithGrad)\\([a-zA-Z_][a-zA-Z0-9_]*"}]},"import":{"patterns":[{"name":"keyword.control.Cangjie","contentName":"storage.type.import.Cangjie","begin":"\\b(import)\\b\\s*\\b\\s","end":"(?=\\b[0-9])|(?=[^\\w\\s.,`*{}])|(?=\\b(public|internal|protected|private|override|abstract|open|redef|sealed)\\b(\\x20)*[^.,\\s])|(?=\\b(VArray|const|differentiable|grad|vjp|valWithGrad|adjoint|adjointOf|when|except|include|primal|stage|main|false|IntNative|mut|Nothing|prop|true|UIntNative|unsafe|Int8|Int16|Int32|Int64|UInt8|UInt16|UInt32|UInt64|Float16|Float32|Float64|Rune|Bool|Unit|struct|enum|This|package|import|class|interface|extend|func|let|var|type|init|this|super|if|else|case|try|catch|finally|for|do|while|throw|return|continue|break|is|in|match|where|spawn|synchronized|macro|quote|static|external|operator|foreign|inout)\\s)","patterns":[{"name":"keyword.control.char","begin":"^(import)","end":"\\n|[^(\\s(as)\\s)]","patterns":[{"name":"constant.character.escape.char","begin":"(\\s)","end":"(\\s)"}]},{"include":"#comments"},{"name":"invalid.illegal.character_not_allowed_here.Cangjie","match":"(?\u003c=\\.)\\s*\\.|\\.(?=\\s*;)"},{"name":"invalid.illegal.character_not_allowed_here.Cangjie","match":"(?\u003c!\\.)\\s*\\*"},{"name":"invalid.illegal.character_not_allowed_here.Cangjie","match":"(?\u003c!_)_(?=\\s*(\\.|;))|\\b\\d+|-+"},{"name":"invalid.illegal.character_not_allowed_here.Cangjie","match":"(?x)\\b(?\u003c!\\$)\n(false|IntNative|mut|Nothing|prop|true|UIntNative|unsafe|Int8|Int16|Int32|Int64|UInt8|UInt16|UInt32|UInt64|Float16|Float32|Float64|Rune|Bool|Unit|struct|enum|This|package|import|class|interface|extend|func|let|var|type|init|this|super|if|else|case|try|catch|finally|for|do|while|throw|return|continue|break|is|in|match|where|spawn|synchronized|macro|quote|static|external|operator|foreign)\\b"},{"name":"punctuation.separator.Cangjie","match":"\\.|\\*"},{"name":"variable.language.wildcard.Cangjie","match":"\\*"},{"include":"#keywords_to_identifier"},{"include":"#keywords"}],"beginCaptures":{"1":{"name":"keyword.control.import.Cangjie"}},"endCaptures":{"1":{"name":"punctuation.terminator.Cangjie"}}}]},"insertValue":{"patterns":[{"name":"keyword.operator.Cangjie","begin":"\\$\\{","end":"\\}|\\n|\\r","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#keywords"},{"include":"#function"},{"include":"#variable"},{"include":"#constants"},{"include":"#block"}]}]},"keywords":{"patterns":[{"name":"keyword.control.Cangjie","match":"\\b(VArray|const|differentiable|grad|vjp|valWithGrad|adjoint|adjointOf|when|except|include|primal|stage|main|false|IntNative|mut|Nothing|prop|redef|true|UIntNative|unsafe|Int8|Int16|Int32|Int64|UInt8|UInt16|UInt32|UInt64|Float16|Float32|Float64|Rune|Bool|Unit|struct|enum|This|package|import|class|interface|extend|func|let|var|sealed|type|init|this|super|if|else|case|try|catch|finally|for|do|while|throw|return|continue|break|is|as|in|match|where|spawn|synchronized|macro|quote|static|public|internal|private|protected|internal|external|override|abstract|open|operator|foreign|inout)\\b"},{"name":"keyword.control.Cangjie","match":"(\\;|!in)"},{"name":"support.class.Cangjie.keyword","match":"(\\b(Option|String)\\b)"}]},"keywords_to_identifier":{"patterns":[{"match":"\\b(public|internal|private|protected|override|abstract|open|redef|sealed)\\b"}]},"macro":{"patterns":[{"name":"support.function.Cangjie.macro","match":"(?\u003c=(@))[A-Za-z_][A-Za-z0-9_.]*"}]},"mark":{"name":"support.variable.Cangjie","match":"\\b(`?\\w+`?)(?=\\s*:)"},"memberAccess":{"patterns":[{"name":"support.class.Cangjie","match":"\\b(([a-zA-Z_][a-zA-Z0-9_]*)|(`[a-zA-Z_][a-zA-Z0-9_]*`))(?=\\.)"}]},"originStrings":{"patterns":[{"name":"string.quoted.double.Cangjie","contentName":"punctuation.definition.string.begin.Cangjie","begin":"(?\u003c!#)(#{2})+\"","end":"\"(?\u003c!#)(#{2})+","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.Cangjie"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.Cangjie"}}},{"name":"string.quoted.double.Cangjie","contentName":"punctuation.definition.string.begin.Cangjie","begin":"(?\u003c!#)#(#{2})*\"","end":"\"(?\u003c!#)#(#{2})*","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.Cangjie"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.Cangjie"}}}]},"package":{"patterns":[{"name":"keyword.control.Cangjie","contentName":"storage.type.package.Cangjie","begin":"\\b(package)\\b\\s*","end":"(?=[^.\\w\\s])|\\R|\\Z|\n","patterns":[{"include":"#keywords_to_identifier"},{"include":"#comments"},{"include":"#keywords"}],"beginCaptures":{"1":{"name":"keyword.control.package.Cangjie"}},"endCaptures":{"1":{"name":"punctuation.terminator.Cangjie"}}}]},"qualified-type":{"patterns":[{"begin":":","end":"(?=[^*\\\u003c,\\|\\w\\s]|\\R|\\n)","patterns":[{"include":"#mark"},{"include":"#keywords"},{"include":"#constants"},{"name":"support.variable.Cangjie","match":"(?\u003c=,)\\s*([a-zA-Z_][a-zA-Z0-9_]*)\\s*(?=(!?)\\s*:)"},{"name":"support.class.Cangjie","match":"`[a-zA-Z_][a-zA-Z0-9_]*`|[a-zA-Z_][a-zA-Z0-9_]*"}]}]},"quoteToken":{"begin":"\\bquote\\s*\\(","end":"(?\u003c!\\\\)\\)","patterns":[{"include":"#quoteToken_inside"},{"include":"#quoteToken_content"}]},"quoteToken_content":{"name":"string.quoted.single.Cangjie","match":".","patterns":[{"include":"#quoteToken_inside"}]},"quoteToken_inside":{"name":"string.quoted.single.Cangjie","begin":"(?\u003c!\\\\)\\(","end":"(?\u003c!\\\\)\\)","patterns":[{"include":"#quoteToken_inside"}]},"string_mutil":{"patterns":[{"name":"string.quoted.double.Cangjie","begin":"(?\u003c!\\\\)\"\"\"","end":"\"\"\"","patterns":[{"include":"#insertValue"},{"include":"#escape_string"}]}]},"string_single":{"patterns":[{"name":"string.quoted.single.Cangjie","begin":"(?\u003c!\\\\)(r)?\\'","end":"\\'|\\n|\\r","patterns":[{"include":"#escape_string"},{"include":"#insertValue"}]},{"name":"string.quoted.single.Cangjie","match":"(r)?\\'(?\u003c!\\\\)[\\s\\S](?\u003c!\\\\)\\'"},{"name":"string.quoted.double.Cangjie","begin":"(?\u003c!\\\\)(r)?\"","end":"\"|\\n|\\r","patterns":[{"include":"#insertValue"},{"include":"#escape_string"}]},{"name":"string.quoted.double.Cangjie","begin":"(?\u003c!\\\\)J\"","end":"\"|\\n|\\r","patterns":[{"include":"#escape_string"}]},{"name":"constant.character.escape.string.byteArray.Cangjie","begin":"(?\u003c!\\\\)b\"","end":"\"|\\n|\\r","patterns":[{"include":"#escape_string"}]},{"name":"constant.character.escape.string.byteArray.Cangjie","begin":"(?\u003c!\\\\)b'","end":"'|\\n|\\r","patterns":[{"include":"#escape_string"}]}]},"strings":{"patterns":[{"include":"#string_mutil"},{"include":"#string_single"}]},"type":{"patterns":[{"begin":"(?\u003c!\u003c)\u003c","end":"(?=[^,*\\\u003c\\\u003e\\w\\s]|[\\n\\r])","patterns":[{"include":"#keywords"},{"include":"#strings"},{"name":"support.variable.Cangjie","match":"[a-zA-Z_][a-zA-Z0-9_]*\\s*(?=[\\)|\\||\\\u0026|\\n|;])"},{"name":"support.class.Cangjie","match":"`[a-zA-Z_][a-zA-Z0-9_]*`|[a-zA-Z_][a-zA-Z0-9_]*"},{"include":"#function"},{"include":"#constants"}]}]},"variable":{"patterns":[{"name":"support.variable.Cangjie","match":"\\b([a-zA-Z_][a-zA-Z0-9_]*|`[a-zA-Z_][a-zA-Z0-9_]*`)"}]}}}
1
+ {"name":"Cangjie","scopeName":"source.cj","patterns":[{"include":"#comments"},{"include":"#originStrings"},{"include":"#strings"},{"include":"#mark"},{"include":"#package"},{"include":"#import"},{"include":"#quoteToken"},{"include":"#classlike-declaration"},{"include":"#code"},{"include":"#at"},{"include":"#function"},{"include":"#macro"},{"include":"#variable"},{"include":"#qualified-type"},{"include":"#type"}],"repository":{"at":{"patterns":[{"name":"keyword.control.Cangjie","match":"@"}]},"block":{"begin":"\\{","end":"\\}","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#keywords"},{"include":"#function"},{"include":"#variable"},{"include":"#constants"},{"include":"#block"}]},"block-comment":{"name":"comment.block.Cangjie","begin":"/\\*","end":"\\*/","patterns":[{"include":"#block-comment"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.Cangjie"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.Cangjie"}}},"classlike-declaration":{"patterns":[{"begin":"\\b(class|interface|struct|enum|extend|type)\\s+","end":"(?=\\b[0-9])|(?=\\b(VArray|const|differentiable|grad|vjp|valWithGrad|adjoint|adjointOf|when|except|include|primal|stage|main|false|IntNative|mut|Nothing|prop|true|UIntNative|unsafe|Int8|Int16|Int32|Int64|UInt8|UInt16|UInt32|UInt64|Float16|Float32|Float64|Rune|Bool|Unit|struct|enum|This|package|import|class|interface|extend|func|let|var|type|init|this|super|if|else|case|try|catch|finally|for|do|while|throw|return|continue|break|is|as|in|match|where|spawn|synchronized|macro|quote|static|internal|external|operator|foreign|inout)\\s)|`[a-zA-Z_][a-zA-Z0-9_]*`|(?=[^\\w\\s])|\\b[a-zA-Z_][a-zA-Z0-9_]*","beginCaptures":{"1":{"name":"keyword.control.Cangjie"}},"endCaptures":{"0":{"name":"support.class.Cangjie"}}},{"begin":"\\b(func)\\s+","end":"(?=\\b[0-9])|(?=\\b(VArray|const|differentiable|grad|vjp|valWithGrad|adjoint|adjointOf|when|except|include|primal|stage|main|false|IntNative|mut|Nothing|prop|true|UIntNative|unsafe|Int8|Int16|Int32|Int64|UInt8|UInt16|UInt32|UInt64|Float16|Float32|Float64|Rune|Bool|Unit|struct|enum|This|package|import|class|interface|extend|func|let|var|type|init|this|super|if|else|case|try|catch|finally|for|do|while|throw|return|continue|break|is|as|in|match|where|spawn|synchronized|macro|quote|static|internal|external|operator|foreign|inout)\\s)|`[a-zA-Z_][a-zA-Z0-9_]*`|(?=[^\\w\\s])|\\b[a-zA-Z_][a-zA-Z0-9_]*","beginCaptures":{"1":{"name":"keyword.control.Cangjie"}},"endCaptures":{"0":{"name":"support.function.Cangjie"}}},{"begin":"\\b(let|var)\\s+","end":"(?=\\b[0-9])|(?=\\b(VArray|const|differentiable|grad|vjp|valWithGrad|adjoint|adjointOf|when|except|include|primal|stage|main|false|IntNative|mut|Nothing|prop|true|UIntNative|unsafe|Int8|Int16|Int32|Int64|UInt8|UInt16|UInt32|UInt64|Float16|Float32|Float64|Rune|Bool|Unit|struct|enum|This|package|import|class|interface|extend|func|let|var|type|init|this|super|if|else|case|try|catch|finally|for|do|while|throw|return|continue|break|is|as|in|match|where|spawn|synchronized|macro|quote|static|internal|external|operator|foreign|inout)\\s)|`[a-zA-Z_][a-zA-Z0-9_]*`|(?=[^\\w\\s])|\\b[a-zA-Z_][a-zA-Z0-9_]*","beginCaptures":{"1":{"name":"keyword.control.Cangjie"}},"endCaptures":{"0":{"name":"support.variable.Cangjie"}}},{"name":"support.class.Cangjie","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*(?=\\s*\\\u003c[\\*\\\u003c\\,\\w\\s]*\\\u003e)"},{"name":"support.class.Cangjie","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*(?=\\s*\u003c:[\\s*[a-zA-Z_][a-zA-Z0-9_]*\\s*\u0026\\s*]*)"},{"begin":"\\b(case)\\s+","end":"(?=(\\=\\\u003e))|[\\n\\r]","patterns":[{"include":"#memberAccess"},{"include":"#classlike-declaration"},{"include":"#function"},{"include":"#strings"},{"include":"#keywords"},{"include":"#qualified-type"},{"include":"#constants"},{"include":"#type"},{"include":"#variable"}],"beginCaptures":{"1":{"name":"keyword.control.Cangjie"}}}]},"code":{"patterns":[{"include":"#keywords"},{"include":"#constants"},{"include":"#strings"}]},"comments":{"patterns":[{"include":"#block-comment"},{"name":"comment.line.Cangjie","begin":"//","end":"$"}]},"constants":{"patterns":[{"name":"constant.numeric.binary.integer.Cangjie","match":"\\b0[bB][01]([01_]*)?(u8|u16|u32|u64|i8|i16|i32|i64)?\\b"},{"name":"constant.numeric.octal.integer.Cangjie","match":"\\b0[oO][0-7]([0-7_]*)?(u8|u16|u32|u64|i8|i16|i32|i64)?\\b"},{"name":"constant.numeric.decimal.integer.Cangjie","match":"\\b[0-9]([0-9_]*)?(u8|u16|u32|u64|i8|i16|i32|i64)?\\b"},{"name":"constant.numeric.hexadecimal.integer.Cangjie","match":"\\b0[xX][0-9a-fA-F]([0-9a-fA-F_]*)?(u8|u16|u32|u64|i8|i16|i32|i64)?(?!\\.)\\b"},{"name":"constant.numeric.decimal.float.Cangjie","match":"(\\b([0-9]([0-9_]*)?[eE][-]?[0-9]([0-9_]*)?)|((?\u003c!\\.)\\.[0-9]([0-9_]*)?([eE][-]?[0-9]([0-9_]*)?)?)|\\b([0-9]([0-9_]*)?\\.[0-9]([0-9_]*)?([eE][-]?[0-9]([0-9_]*)?)?))(f16|f32|f64)?"},{"name":"constant.numeric.hexadecimal.float.Cangjie","match":"\\b0[xX](\\.[0-9a-fA-F]([0-9a-fA-F_]*)?|[0-9a-fA-F]([0-9a-fA-F_]*)?\\.[0-9a-fA-F]([0-9a-fA-F_]*)?|[0-9a-fA-F]([0-9a-fA-F_]*)?)([pP][-]?[0-9]([0-9_]*)?)"},{"name":"constant.character.escape.string.byte.Cangjie","match":"\\bb'([^'\\\\]|\\\\[tbrn'\\\\\"fv0]|\\\\u\\{[0-9a-fA-F]{1,2}\\})'"},{"name":"constant.character.escape.string.byteArray.Cangjie","match":"\\bb\"([^\"\\\\]|\\\\[tbrn'\\\\\"fv0]|\\\\u\\{[0-9a-fA-F]{1,2}\\})*\""}]},"escape_string":{"name":"constant.character.escape.string.byteArray.Cangjie","match":"(\\\\\\\\)|(\\\\u\\{[0-9a-fA-F]{1,8}\\})|(\\\\[abtrn\"'fv$0])"},"function":{"patterns":[{"name":"support.function.Cangjie","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*(?=\\s*\\(.*)"},{"name":"support.function.Cangjie","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*(?=\\s*\\\u003c[\\*\\\u003c\\,\\w\\s]*\\\u003e\\s*\\(.*)"},{"name":"support.function.Cangjie","match":"\\boperator\\s+func\\s+((\\(\\))|(\\[\\])|(\\*\\*)|(\\\u003c\\\u003c)|(\\\u003e\\\u003e)|(\\\u003e\\=)|(\\\u003c\\=)|(\\!\\=)|(\\=\\=)|\\!|\\-|\\*|\\/|\\%|\\+|\\\u003c|\\\u003e|\\\u0026|\\^|\\|)"},{"name":"support.function.Cangjie","match":"\\b(grad|@vjp|adjointOf|valWithGrad)\\([a-zA-Z_][a-zA-Z0-9_]*"}]},"import":{"patterns":[{"name":"keyword.control.Cangjie","contentName":"storage.type.import.Cangjie","begin":"\\b(import)\\b\\s*\\b\\s","end":"(?=\\b[0-9])|(?=[^\\w\\s.,`*{}])|(?=\\b(public|internal|protected|private|override|abstract|open|redef|sealed)\\b(\\x20)*[^.,\\s])|(?=\\b(VArray|const|differentiable|grad|vjp|valWithGrad|adjoint|adjointOf|when|except|include|primal|stage|main|false|IntNative|mut|Nothing|prop|true|UIntNative|unsafe|Int8|Int16|Int32|Int64|UInt8|UInt16|UInt32|UInt64|Float16|Float32|Float64|Rune|Bool|Unit|struct|enum|This|package|import|class|interface|extend|func|let|var|type|init|this|super|if|else|case|try|catch|finally|for|do|while|throw|return|continue|break|is|in|match|where|spawn|synchronized|macro|quote|static|external|operator|foreign|inout)\\s)","patterns":[{"name":"keyword.control.char","begin":"^(import)","end":"\\n|[^(\\s(as)\\s)]","patterns":[{"name":"constant.character.escape.char","begin":"(\\s)","end":"(\\s)"}]},{"include":"#comments"},{"name":"invalid.illegal.character_not_allowed_here.Cangjie","match":"(?\u003c=\\.)\\s*\\.|\\.(?=\\s*;)"},{"name":"invalid.illegal.character_not_allowed_here.Cangjie","match":"(?\u003c!\\.)\\s*\\*"},{"name":"invalid.illegal.character_not_allowed_here.Cangjie","match":"(?\u003c!_)_(?=\\s*(\\.|;))|\\b\\d+|-+"},{"name":"invalid.illegal.character_not_allowed_here.Cangjie","match":"(?x)\\b(?\u003c!\\$)\n(false|IntNative|mut|Nothing|prop|true|UIntNative|unsafe|Int8|Int16|Int32|Int64|UInt8|UInt16|UInt32|UInt64|Float16|Float32|Float64|Rune|Bool|Unit|struct|enum|This|package|import|class|interface|extend|func|let|var|type|init|this|super|if|else|case|try|catch|finally|for|do|while|throw|return|continue|break|is|in|match|where|spawn|synchronized|macro|quote|static|external|operator|foreign)\\b"},{"name":"punctuation.separator.Cangjie","match":"\\.|\\*"},{"name":"variable.language.wildcard.Cangjie","match":"\\*"},{"include":"#keywords_to_identifier"},{"include":"#keywords"}],"beginCaptures":{"1":{"name":"keyword.control.import.Cangjie"}},"endCaptures":{"1":{"name":"punctuation.terminator.Cangjie"}}}]},"insertValue":{"patterns":[{"name":"keyword.operator.Cangjie","begin":"\\$\\{","end":"\\}|\\n|\\r","patterns":[{"include":"#comments"},{"include":"#strings"},{"include":"#keywords"},{"include":"#function"},{"include":"#variable"},{"include":"#constants"},{"include":"#block"}]}]},"keywords":{"patterns":[{"name":"keyword.control.Cangjie","match":"\\b(VArray|const|differentiable|grad|vjp|valWithGrad|adjoint|adjointOf|when|except|include|primal|stage|main|false|IntNative|mut|Nothing|prop|redef|true|UIntNative|unsafe|Int8|Int16|Int32|Int64|UInt8|UInt16|UInt32|UInt64|Float16|Float32|Float64|Rune|Bool|Unit|struct|enum|This|package|import|class|interface|extend|func|let|var|sealed|type|init|this|super|if|else|case|try|catch|finally|for|do|while|throw|return|continue|break|is|as|in|match|where|spawn|synchronized|macro|quote|static|public|internal|private|protected|internal|external|override|abstract|open|operator|foreign|inout)\\b"},{"name":"keyword.control.Cangjie","match":"(\\;|!in)"},{"name":"support.class.Cangjie.keyword","match":"(\\b(Option|String)\\b)"}]},"keywords_to_identifier":{"patterns":[{"match":"\\b(public|internal|private|protected|override|abstract|open|redef|sealed)\\b"}]},"macro":{"patterns":[{"name":"support.function.Cangjie.macro","match":"(?\u003c=(@))[A-Za-z_][A-Za-z0-9_.]*"}]},"mark":{"name":"support.variable.Cangjie","match":"\\b(`?\\w+`?)(?=\\s*:)"},"memberAccess":{"patterns":[{"name":"support.class.Cangjie","match":"\\b(([a-zA-Z_][a-zA-Z0-9_]*)|(`[a-zA-Z_][a-zA-Z0-9_]*`))(?=\\.)"}]},"originStrings":{"patterns":[{"name":"string.quoted.raw.Cangjie","begin":"(?\u003c!#)(#+)(\")","end":"(\")(\\1)(?!#)","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.Cangjie"},"2":{"name":"punctuation.definition.string.begin.Cangjie"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.Cangjie"},"2":{"name":"punctuation.definition.string.end.Cangjie"}}},{"name":"string.quoted.raw.Cangjie","begin":"(?\u003c!#)(#+)(')","end":"(')(\\1)(?!#)","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.Cangjie"},"2":{"name":"punctuation.definition.string.begin.Cangjie"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.Cangjie"},"2":{"name":"punctuation.definition.string.end.Cangjie"}}}]},"package":{"patterns":[{"name":"keyword.control.Cangjie","contentName":"storage.type.package.Cangjie","begin":"\\b(package)\\b\\s*","end":"(?=[^.\\w\\s])|\\R|\\Z|\n","patterns":[{"include":"#keywords_to_identifier"},{"include":"#comments"},{"include":"#keywords"}],"beginCaptures":{"1":{"name":"keyword.control.package.Cangjie"}},"endCaptures":{"1":{"name":"punctuation.terminator.Cangjie"}}}]},"qualified-type":{"patterns":[{"begin":":","end":"(?=[^*\\\u003c,\\|\\w\\s]|\\R|\\n)","patterns":[{"include":"#mark"},{"include":"#keywords"},{"include":"#constants"},{"name":"support.variable.Cangjie","match":"(?\u003c=,)\\s*([a-zA-Z_][a-zA-Z0-9_]*)\\s*(?=(!?)\\s*:)"},{"name":"support.class.Cangjie","match":"`[a-zA-Z_][a-zA-Z0-9_]*`|[a-zA-Z_][a-zA-Z0-9_]*"}]}]},"quoteToken":{"begin":"\\bquote\\s*\\(","end":"(?\u003c!\\\\)\\)","patterns":[{"include":"#quoteToken_inside"},{"include":"#quoteToken_content"}]},"quoteToken_content":{"name":"string.quoted.single.Cangjie","match":".","patterns":[{"include":"#quoteToken_inside"}]},"quoteToken_inside":{"name":"string.quoted.single.Cangjie","begin":"(?\u003c!\\\\)\\(","end":"(?\u003c!\\\\)\\)","patterns":[{"include":"#quoteToken_inside"}]},"string_mutil":{"patterns":[{"name":"string.quoted.double.Cangjie","begin":"(?\u003c!\\\\)\"\"\"","end":"\"\"\"","patterns":[{"include":"#insertValue"},{"include":"#escape_string"}]}]},"string_single":{"patterns":[{"name":"string.quoted.single.Cangjie","begin":"\\br'|(?\u003c!\\\\)'","end":"'|\\n|\\r","patterns":[{"include":"#escape_string"},{"include":"#insertValue"}]},{"name":"string.quoted.double.Cangjie","begin":"\\br\"|(?\u003c!\\\\)\"","end":"\"|\\n|\\r","patterns":[{"include":"#insertValue"},{"include":"#escape_string"}]},{"name":"string.quoted.double.Cangjie","begin":"\\bJ\"","end":"\"|\\n|\\r","patterns":[{"include":"#escape_string"}]},{"name":"constant.character.escape.string.byteArray.Cangjie","begin":"\\bb\"","end":"\"|\\n|\\r","patterns":[{"include":"#escape_string"}]},{"name":"constant.character.escape.string.byteArray.Cangjie","begin":"\\bb'","end":"'|\\n|\\r","patterns":[{"include":"#escape_string"}]}]},"strings":{"patterns":[{"include":"#string_mutil"},{"include":"#string_single"}]},"type":{"patterns":[{"begin":"(?\u003c=[a-zA-Z0-9_`])\u003c(?!\u003c|=|:)(?=[\\w\\s,.*\u003c\u003e?()\\-\u003e:`]+\u003e)","end":"\u003e|(?=[^,*\\\u003c\\\u003e\\w\\s.?()\\-\u003e:`]|[\\n\\r])","patterns":[{"include":"#type"},{"include":"#keywords"},{"include":"#strings"},{"name":"support.variable.Cangjie","match":"[a-zA-Z_][a-zA-Z0-9_]*\\s*(?=[\\)|\\||\\\u0026|\\n|;])"},{"name":"support.class.Cangjie","match":"`[a-zA-Z_][a-zA-Z0-9_]*`|[a-zA-Z_][a-zA-Z0-9_]*"},{"include":"#function"},{"include":"#constants"}]}]},"variable":{"patterns":[{"name":"support.variable.Cangjie","match":"\\b([a-zA-Z_][a-zA-Z0-9_]*|`[a-zA-Z_][a-zA-Z0-9_]*`)"}]}}}