@shikijs/langs-precompiled 3.0.0 → 3.2.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.
- package/dist/abap.mjs +1 -1
- package/dist/actionscript-3.mjs +1 -1
- package/dist/ada.mjs +1 -1
- package/dist/angular-expression.mjs +1 -1
- package/dist/angular-html.mjs +1 -1
- package/dist/angular-inline-style.mjs +1 -1
- package/dist/angular-inline-template.mjs +1 -1
- package/dist/angular-ts.mjs +1 -1
- package/dist/apache.mjs +1 -1
- package/dist/apex.mjs +1 -1
- package/dist/apl.mjs +1 -1
- package/dist/applescript.mjs +1 -1
- package/dist/ara.mjs +1 -1
- package/dist/asciidoc.mjs +1 -1
- package/dist/asm.mjs +1 -1
- package/dist/astro.mjs +1 -1
- package/dist/awk.mjs +1 -1
- package/dist/ballerina.mjs +1 -1
- package/dist/bat.mjs +1 -1
- package/dist/beancount.mjs +1 -1
- package/dist/berry.mjs +1 -1
- package/dist/bicep.mjs +1 -1
- package/dist/blade.mjs +3 -1
- package/dist/bsl.mjs +1 -1
- package/dist/c.mjs +1 -1
- package/dist/cadence.mjs +1 -1
- package/dist/cairo.mjs +1 -1
- package/dist/clarity.mjs +1 -1
- package/dist/clojure.mjs +1 -1
- package/dist/cmake.mjs +1 -1
- package/dist/cobol.mjs +1 -1
- package/dist/codeql.mjs +1 -1
- package/dist/coffee.mjs +1 -1
- package/dist/common-lisp.mjs +1 -1
- package/dist/coq.mjs +1 -1
- package/dist/cpp-macro.mjs +1 -1
- package/dist/cpp.mjs +1 -1
- package/dist/crystal.mjs +1 -1
- package/dist/csharp.mjs +1 -1
- package/dist/css.mjs +1 -1
- package/dist/cue.mjs +1 -1
- package/dist/cypher.mjs +1 -1
- package/dist/d.mjs +1 -1
- package/dist/dart.mjs +1 -1
- package/dist/dax.mjs +1 -1
- package/dist/desktop.mjs +1 -1
- package/dist/diff.mjs +1 -1
- package/dist/dotenv.mjs +1 -1
- package/dist/dream-maker.mjs +1 -1
- package/dist/elixir.mjs +1 -1
- package/dist/elm.mjs +1 -1
- package/dist/emacs-lisp.mjs +1 -1
- package/dist/erlang.mjs +1 -1
- package/dist/es-tag-css.mjs +1 -1
- package/dist/es-tag-glsl.mjs +1 -1
- package/dist/es-tag-html.mjs +1 -1
- package/dist/es-tag-sql.mjs +1 -1
- package/dist/es-tag-xml.mjs +1 -1
- package/dist/fennel.mjs +1 -1
- package/dist/fish.mjs +1 -1
- package/dist/fluent.mjs +1 -1
- package/dist/fortran-free-form.mjs +1 -1
- package/dist/fsharp.mjs +1 -1
- package/dist/gdresource.mjs +1 -1
- package/dist/gdscript.mjs +1 -1
- package/dist/gdshader.mjs +1 -1
- package/dist/genie.mjs +1 -1
- package/dist/git-rebase.mjs +1 -1
- package/dist/gleam.mjs +1 -1
- package/dist/glimmer-js.mjs +1 -1
- package/dist/glimmer-ts.mjs +1 -1
- package/dist/glsl.mjs +1 -1
- package/dist/gnuplot.mjs +1 -1
- package/dist/go.mjs +1 -1
- package/dist/graphql.mjs +1 -1
- package/dist/groovy.mjs +1 -1
- package/dist/hack.mjs +1 -1
- package/dist/haml.mjs +1 -1
- package/dist/handlebars.mjs +1 -1
- package/dist/haskell.mjs +1 -1
- package/dist/haxe.mjs +1 -1
- package/dist/hcl.mjs +1 -1
- package/dist/hjson.mjs +1 -1
- package/dist/hlsl.mjs +1 -1
- package/dist/html-derivative.mjs +1 -1
- package/dist/html.mjs +1 -1
- package/dist/http.mjs +1 -1
- package/dist/hxml.mjs +1 -1
- package/dist/hy.mjs +1 -1
- package/dist/imba.mjs +1 -3
- package/dist/index.mjs +2 -0
- package/dist/java.mjs +1 -1
- package/dist/javascript.mjs +1 -1
- package/dist/jinja-html.mjs +1 -1
- package/dist/jinja.mjs +1 -1
- package/dist/jison.mjs +1 -1
- package/dist/json.mjs +1 -1
- package/dist/json5.mjs +1 -1
- package/dist/jsonc.mjs +1 -1
- package/dist/jsonl.mjs +1 -1
- package/dist/jsonnet.mjs +1 -1
- package/dist/jsx.mjs +1 -1
- package/dist/julia.mjs +1 -2
- package/dist/kotlin.mjs +1 -1
- package/dist/kusto.mjs +1 -1
- package/dist/latex.mjs +1 -1
- package/dist/lean.mjs +1 -1
- package/dist/less.mjs +1 -1
- package/dist/liquid.mjs +1 -1
- package/dist/llvm.d.mts +3 -0
- package/dist/llvm.mjs +5 -0
- package/dist/log.mjs +1 -1
- package/dist/lua.mjs +1 -1
- package/dist/luau.mjs +1 -1
- package/dist/make.mjs +1 -1
- package/dist/markdown-vue.mjs +1 -1
- package/dist/markdown.mjs +1 -1
- package/dist/marko.mjs +1 -1
- package/dist/matlab.mjs +1 -1
- package/dist/mdc.mjs +1 -1
- package/dist/mdx.mjs +1 -1
- package/dist/mermaid.mjs +1 -1
- package/dist/mipsasm.mjs +1 -1
- package/dist/mojo.mjs +1 -1
- package/dist/move.mjs +1 -1
- package/dist/narrat.mjs +1 -1
- package/dist/nextflow.mjs +1 -1
- package/dist/nginx.mjs +1 -1
- package/dist/nim.mjs +1 -1
- package/dist/nix.mjs +1 -1
- package/dist/nushell.mjs +1 -1
- package/dist/objective-c.mjs +1 -1
- package/dist/objective-cpp.mjs +1 -1
- package/dist/ocaml.mjs +1 -1
- package/dist/pascal.mjs +1 -1
- package/dist/perl.mjs +1 -1
- package/dist/php.mjs +1 -1
- package/dist/plsql.mjs +1 -1
- package/dist/po.mjs +1 -1
- package/dist/polar.mjs +1 -1
- package/dist/postcss.mjs +1 -1
- package/dist/powerquery.mjs +1 -1
- package/dist/powershell.mjs +1 -1
- package/dist/prisma.mjs +1 -1
- package/dist/prolog.mjs +1 -1
- package/dist/proto.mjs +1 -1
- package/dist/pug.mjs +1 -1
- package/dist/puppet.mjs +1 -1
- package/dist/purescript.mjs +6 -2
- package/dist/python.mjs +1 -1
- package/dist/qss.mjs +1 -1
- package/dist/r.mjs +1 -1
- package/dist/racket.mjs +1 -1
- package/dist/raku.mjs +1 -1
- package/dist/razor.mjs +1 -1
- package/dist/reg.mjs +1 -1
- package/dist/regexp.mjs +1 -1
- package/dist/rel.mjs +1 -1
- package/dist/riscv.mjs +1 -1
- package/dist/rst.mjs +1 -1
- package/dist/ruby.mjs +1 -1
- package/dist/rust.mjs +1 -1
- package/dist/sas.mjs +1 -1
- package/dist/sass.mjs +1 -1
- package/dist/scala.mjs +1 -1
- package/dist/scheme.mjs +1 -1
- package/dist/scss.mjs +1 -1
- package/dist/sdbl.mjs +1 -1
- package/dist/shaderlab.mjs +1 -1
- package/dist/shellscript.mjs +1 -1
- package/dist/shellsession.mjs +1 -1
- package/dist/smalltalk.mjs +1 -1
- package/dist/solidity.mjs +1 -1
- package/dist/soy.mjs +1 -1
- package/dist/sparql.mjs +1 -1
- package/dist/splunk.mjs +1 -1
- package/dist/sql.mjs +1 -1
- package/dist/ssh-config.mjs +1 -1
- package/dist/stata.mjs +1 -1
- package/dist/stylus.mjs +1 -1
- package/dist/svelte.mjs +1 -1
- package/dist/system-verilog.mjs +1 -1
- package/dist/systemd.mjs +1 -1
- package/dist/talonscript.mjs +1 -1
- package/dist/tasl.mjs +1 -1
- package/dist/tcl.mjs +1 -1
- package/dist/templ.mjs +1 -1
- package/dist/terraform.mjs +1 -1
- package/dist/tex.mjs +1 -1
- package/dist/toml.mjs +1 -1
- package/dist/tsx.mjs +1 -1
- package/dist/twig.mjs +1 -1
- package/dist/typescript.mjs +1 -1
- package/dist/typespec.mjs +1 -1
- package/dist/typst.mjs +1 -1
- package/dist/v.mjs +1 -1
- package/dist/vala.mjs +1 -1
- package/dist/vb.mjs +1 -1
- package/dist/verilog.mjs +1 -1
- package/dist/vhdl.mjs +1 -1
- package/dist/viml.mjs +1 -1
- package/dist/vue-html.mjs +1 -1
- package/dist/vue-sfc-style-variable-injection.mjs +1 -1
- package/dist/vue.mjs +1 -1
- package/dist/vyper.mjs +1 -1
- package/dist/wasm.mjs +1 -1
- package/dist/wenyan.mjs +1 -1
- package/dist/wgsl.mjs +1 -1
- package/dist/wikitext.mjs +1 -1
- package/dist/wit.d.mts +3 -0
- package/dist/wit.mjs +5 -0
- package/dist/wolfram.mjs +1 -1
- package/dist/xml.mjs +1 -1
- package/dist/yaml.mjs +1 -1
- package/dist/zenscript.mjs +1 -1
- package/dist/zig.mjs +1 -1
- package/package.json +6 -4
package/dist/graphql.mjs
CHANGED
|
@@ -4,7 +4,7 @@ import typescript from './typescript.mjs'
|
|
|
4
4
|
import jsx from './jsx.mjs'
|
|
5
5
|
import tsx from './tsx.mjs'
|
|
6
6
|
|
|
7
|
-
const lang = Object.freeze({displayName:"GraphQL",fileTypes:["graphql","graphqls","gql","graphcool"],name:"graphql",patterns:[{include:"#graphql"}],repository:{graphql:{patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-fragment-definition"},{include:"#graphql-directive-definition"},{include:"#graphql-type-interface"},{include:"#graphql-enum"},{include:"#graphql-scalar"},{include:"#graphql-union"},{include:"#graphql-schema"},{include:"#graphql-operation-def"},{include:"#literal-quasi-embedded"}]},"graphql-ampersand":{captures:{"1":{name:"keyword.operator.logical.graphql"}},match:/\p{space}*(&)/dgv},"graphql-arguments":{begin:/\p{space}*(\()/dgv,beginCaptures:{"1":{name:"meta.brace.round.directive.graphql"}},end:/\p{space}*(\))/dgv,endCaptures:{"1":{name:"meta.brace.round.directive.graphql"}},name:"meta.arguments.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{begin:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)\p{space}*(:)/dgv,beginCaptures:{"1":{name:"variable.parameter.graphql"},"2":{name:"punctuation.colon.graphql"}},end:/(?=\p{space}*(?:([_A-Za-z][_0-9A-Za-z]*)\p{space}*(:)|\)))|\p{space}*(,)/dgv,endCaptures:{"3":{name:"punctuation.comma.graphql"}},patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-value"},{include:"#graphql-skip-newlines"}]},{include:"#literal-quasi-embedded"}]},"graphql-boolean-value":{captures:{"1":{name:"constant.language.boolean.graphql"}},match:/\p{space}*\b(true|false)\b/dgv},"graphql-colon":{captures:{"1":{name:"punctuation.colon.graphql"}},match:/\p{space}*(:)/dgv},"graphql-comma":{captures:{"1":{name:"punctuation.comma.graphql"}},match:/\p{space}*(,)/dgv},"graphql-comment":{patterns:[{captures:{"1":{name:"punctuation.whitespace.comment.leading.graphql"}},match:/(\p{space}*)(#)[^\n]*/dgv,name:"comment.line.graphql.js"},{begin:/(""")/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.graphql"}},end:/(""")/dgv,name:"comment.line.graphql.js"},{begin:/(")/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.graphql"}},end:/(")/dgv,name:"comment.line.graphql.js"}]},"graphql-description-docstring":{begin:/"""/dgv,end:/"""/dgv,name:"comment.block.graphql"},"graphql-description-singleline":{match:/#(?=([^"]*"[^"]*")*[^"]*(?=\n?$))[^\n]*(?=\n?$)/dgv,name:"comment.line.number-sign.graphql"},"graphql-directive":{applyEndPatternLast:1,begin:/\p{space}*((@)\p{space}*([_A-Za-z][_0-9A-Za-z]*))/dgv,beginCaptures:{"1":{name:"entity.name.function.directive.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-arguments"},{include:"#literal-quasi-embedded"},{include:"#graphql-skip-newlines"}]},"graphql-directive-definition":{applyEndPatternLast:1,begin:/\p{space}*(\bdirective\b)\p{space}*(@[_A-Za-z][_0-9A-Za-z]*)/dgv,beginCaptures:{"1":{name:"keyword.directive.graphql"},"2":{name:"entity.name.function.directive.graphql"},"3":{name:"keyword.on.graphql"},"4":{name:"support.type.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-variable-definitions"},{applyEndPatternLast:1,begin:/\p{space}*(\bon\b)\p{space}*([_A-Za-z]*)/dgv,beginCaptures:{"1":{name:"keyword.on.graphql"},"2":{name:"support.type.location.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-skip-newlines"},{include:"#graphql-comment"},{include:"#literal-quasi-embedded"},{captures:{"2":{name:"support.type.location.graphql"}},match:/\p{space}*(\|)\p{space}*([_A-Za-z]*)/dgv}]},{include:"#graphql-skip-newlines"},{include:"#graphql-comment"},{include:"#literal-quasi-embedded"}]},"graphql-enum":{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\p{space}*))\\1)\\b(enum)\\b\\p{space}*([_A-Za-z][_0-9A-Za-z]*)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"1":{name:"keyword.enum.graphql"},"2":{name:"support.type.enum.graphql"}},end:/(?<=\})/dgv,name:"meta.enum.graphql",patterns:[{begin:/\p{space}*(\{)/dgv,beginCaptures:{"1":{name:"punctuation.operation.graphql"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.operation.graphql"}},name:"meta.type.object.graphql",patterns:[{include:"#graphql-object-type"},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-enum-value"},{include:"#literal-quasi-embedded"}]},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"}]},"graphql-enum-value":{match:/\p{space}*(?!=\b(true|false|null)\b)([_A-Za-z][_0-9A-Za-z]*)/dgv,name:"constant.character.enum.graphql"},"graphql-field":{patterns:[{captures:{"1":{name:"string.unquoted.alias.graphql"},"2":{name:"punctuation.colon.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)\p{space}*(:)/dgv},{captures:{"1":{name:"variable.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv},{include:"#graphql-arguments"},{include:"#graphql-directive"},{include:"#graphql-selection-set"},{include:"#literal-quasi-embedded"},{include:"#graphql-skip-newlines"}]},"graphql-float-value":{captures:{"1":{name:"constant.numeric.float.graphql"}},match:/\p{space}*(-?(0|[1-9][0-9]*)(\.[0-9]+)?((e|E)(\+|-)?[0-9]+)?)/dgv},"graphql-fragment-definition":{begin:/\p{space}*(\bfragment\b)\p{space}*([_A-Za-z][_0-9A-Za-z]*)?\p{space}*(\bon\b)\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv,captures:{"1":{name:"keyword.fragment.graphql"},"2":{name:"entity.name.fragment.graphql"},"3":{name:"keyword.on.graphql"},"4":{name:"support.type.graphql"}},end:/(?<=\})/dgv,name:"meta.fragment.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-selection-set"},{include:"#graphql-directive"},{include:"#graphql-skip-newlines"},{include:"#literal-quasi-embedded"}]},"graphql-fragment-spread":{applyEndPatternLast:1,begin:/\p{space}*(\.\.\.)\p{space}*(?!\bon\b)([_A-Za-z][_0-9A-Za-z]*)/dgv,captures:{"1":{name:"keyword.operator.spread.graphql"},"2":{name:"variable.fragment.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-selection-set"},{include:"#graphql-directive"},{include:"#literal-quasi-embedded"},{include:"#graphql-skip-newlines"}]},"graphql-ignore-spaces":{match:/\p{space}*/dgv},"graphql-inline-fragment":{applyEndPatternLast:1,begin:/\p{space}*(\.\.\.)\p{space}*(?:(\bon\b)\p{space}*([_A-Za-z][_0-9A-Za-z]*))?/dgv,captures:{"1":{name:"keyword.operator.spread.graphql"},"2":{name:"keyword.on.graphql"},"3":{name:"support.type.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-selection-set"},{include:"#graphql-directive"},{include:"#graphql-skip-newlines"},{include:"#literal-quasi-embedded"}]},"graphql-input-types":{patterns:[{include:"#graphql-scalar-type"},{captures:{"1":{name:"support.type.graphql"},"2":{name:"keyword.operator.nulltype.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)(?:\p{space}*(!))?/dgv},{begin:/\p{space}*(\[)/dgv,captures:{"1":{name:"meta.brace.square.graphql"},"2":{name:"keyword.operator.nulltype.graphql"}},end:/\p{space}*(\])(?:\p{space}*(!))?/dgv,name:"meta.type.list.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-input-types"},{include:"#graphql-comma"},{include:"#literal-quasi-embedded"}]}]},"graphql-list-value":{patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\p{space}*))\\1)(\\[)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"1":{name:"meta.brace.square.graphql"}},end:/\p{space}*(\])/dgv,endCaptures:{"1":{name:"meta.brace.square.graphql"}},name:"meta.listvalues.graphql",patterns:[{include:"#graphql-value"}]}]},"graphql-name":{captures:{"1":{name:"entity.name.function.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv},"graphql-null-value":{captures:{"1":{name:"constant.language.null.graphql"}},match:/\p{space}*\b(null)\b/dgv},"graphql-object-field":{captures:{"1":{name:"constant.object.key.graphql"},"2":{name:"string.unquoted.graphql"},"3":{name:"punctuation.graphql"}},match:/\p{space}*(([_A-Za-z][_0-9A-Za-z]*))\p{space}*(:)/dgv},"graphql-object-value":{patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\p{space}*))\\1)(\\{)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"1":{name:"meta.brace.curly.graphql"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"meta.brace.curly.graphql"}},name:"meta.objectvalues.graphql",patterns:[{include:"#graphql-object-field"},{include:"#graphql-value"}]}]},"graphql-operation-def":{patterns:[{include:"#graphql-query-mutation"},{include:"#graphql-name"},{include:"#graphql-variable-definitions"},{include:"#graphql-directive"},{include:"#graphql-selection-set"}]},"graphql-query-mutation":{captures:{"1":{name:"keyword.operation.graphql"}},match:/\p{space}*\b(query|mutation)\b/dgv},"graphql-scalar":{captures:{"1":{name:"keyword.scalar.graphql"},"2":{name:"entity.scalar.graphql"}},match:/\p{space}*\b(scalar)\b\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv},"graphql-scalar-type":{captures:{"1":{name:"support.type.builtin.graphql"},"2":{name:"keyword.operator.nulltype.graphql"}},match:/\p{space}*\b(Int|Float|String|Boolean|ID)\b(?:\p{space}*(!))?/dgv},"graphql-schema":{begin:/\p{space}*\b(schema)\b/dgv,beginCaptures:{"1":{name:"keyword.schema.graphql"}},end:/(?<=\})/dgv,patterns:[{begin:/\p{space}*(\{)/dgv,beginCaptures:{"1":{name:"punctuation.operation.graphql"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.operation.graphql"}},patterns:[{begin:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)(?=\p{space}*\(|:)/dgv,beginCaptures:{"1":{name:"variable.arguments.graphql"}},end:/(?=\p{space}*(([_A-Za-z][_0-9A-Za-z]*)\p{space}*(\(|:)|(\})))|\p{space}*(,)/dgv,endCaptures:{"5":{name:"punctuation.comma.graphql"}},patterns:[{captures:{"1":{name:"support.type.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-colon"},{include:"#graphql-skip-newlines"}]},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-skip-newlines"}]},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-skip-newlines"}]},"graphql-selection-set":{begin:/\p{space}*(\{)/dgv,beginCaptures:{"1":{name:"punctuation.operation.graphql"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.operation.graphql"}},name:"meta.selectionset.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-field"},{include:"#graphql-fragment-spread"},{include:"#graphql-inline-fragment"},{include:"#graphql-comma"},{include:"#native-interpolation"},{include:"#literal-quasi-embedded"}]},"graphql-skip-newlines":{match:/\p{space}*\n/dgv},"graphql-string-content":{patterns:[{match:/\\[\/'"\\nrtbf]/dgv,name:"constant.character.escape.graphql"},{match:/\\u([0-9a-fA-F]{4})/dgv,name:"constant.character.escape.graphql"}]},"graphql-string-value":{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\p{space}*))\\1)((\"))","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"1":{name:"string.quoted.double.graphql"},"2":{name:"punctuation.definition.string.begin.graphql"}},contentName:"string.quoted.double.graphql",end:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\p{space}*))\\1)(?:((\"))|(\\n))","dgv",{"hiddenCaptures":[1]}),endCaptures:{"1":{name:"string.quoted.double.graphql"},"2":{name:"punctuation.definition.string.end.graphql"},"3":{name:"invalid.illegal.newline.graphql"}},patterns:[{include:"#graphql-string-content"},{include:"#literal-quasi-embedded"}]},"graphql-type-definition":{begin:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)(?=\p{space}*\(|:)/dgv,beginCaptures:{"1":{name:"variable.graphql"}},end:/(?=\p{space}*(([_A-Za-z][_0-9A-Za-z]*)\p{space}*(\(|:)|(\})))|\p{space}*(,)/dgv,endCaptures:{"5":{name:"punctuation.comma.graphql"}},patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-variable-definitions"},{include:"#graphql-type-object"},{include:"#graphql-colon"},{include:"#graphql-input-types"},{include:"#literal-quasi-embedded"}]},"graphql-type-interface":{applyEndPatternLast:1,begin:/\p{space}*\b(?:(extends?)?\b\p{space}*\b(type)|(interface)|(input))\b\p{space}*([_A-Za-z][_0-9A-Za-z]*)?/dgv,captures:{"1":{name:"keyword.type.graphql"},"2":{name:"keyword.type.graphql"},"3":{name:"keyword.interface.graphql"},"4":{name:"keyword.input.graphql"},"5":{name:"support.type.graphql"}},end:/(?=[^\n])/dgv,name:"meta.type.interface.graphql",patterns:[{begin:/\p{space}*\b(implements)\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.implements.graphql"}},end:/\p{space}*(?=\{)/dgv,patterns:[{captures:{"1":{name:"support.type.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-ampersand"},{include:"#graphql-comma"}]},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-type-object"},{include:"#literal-quasi-embedded"},{include:"#graphql-ignore-spaces"}]},"graphql-type-object":{begin:/\p{space}*(\{)/dgv,beginCaptures:{"1":{name:"punctuation.operation.graphql"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.operation.graphql"}},name:"meta.type.object.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-object-type"},{include:"#graphql-type-definition"},{include:"#literal-quasi-embedded"}]},"graphql-union":{applyEndPatternLast:1,begin:/\p{space}*\b(union)\b\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv,captures:{"1":{name:"keyword.union.graphql"},"2":{name:"support.type.graphql"}},end:/(?=[^\n])/dgv,patterns:[{applyEndPatternLast:1,begin:/\p{space}*(=)\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv,captures:{"1":{name:"punctuation.assignment.graphql"},"2":{name:"support.type.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-skip-newlines"},{include:"#literal-quasi-embedded"},{captures:{"1":{name:"punctuation.or.graphql"},"2":{name:"support.type.graphql"}},match:/\p{space}*(\|)\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv}]},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-skip-newlines"},{include:"#literal-quasi-embedded"}]},"graphql-union-mark":{captures:{"1":{name:"punctuation.union.graphql"}},match:/\p{space}*(\|)/dgv},"graphql-value":{patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-variable-name"},{include:"#graphql-float-value"},{include:"#graphql-string-value"},{include:"#graphql-boolean-value"},{include:"#graphql-null-value"},{include:"#graphql-enum-value"},{include:"#graphql-list-value"},{include:"#graphql-object-value"},{include:"#literal-quasi-embedded"}]},"graphql-variable-assignment":{applyEndPatternLast:1,begin:/\p{space}(=)/dgv,beginCaptures:{"1":{name:"punctuation.assignment.graphql"}},end:/(?=[\n\,\)])/dgv,patterns:[{include:"#graphql-value"}]},"graphql-variable-definition":{begin:/\p{space}*(\$?[_A-Za-z][_0-9A-Za-z]*)(?=\p{space}*\(|:)/dgv,beginCaptures:{"1":{name:"variable.parameter.graphql"}},end:/(?=\p{space}*((\$?[_A-Za-z][_0-9A-Za-z]*)\p{space}*(\(|:)|(\}|\))))|\p{space}*(,)/dgv,endCaptures:{"5":{name:"punctuation.comma.graphql"}},name:"meta.variables.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-colon"},{include:"#graphql-input-types"},{include:"#graphql-variable-assignment"},{include:"#literal-quasi-embedded"},{include:"#graphql-skip-newlines"}]},"graphql-variable-definitions":{begin:/\p{space}*(\()/dgv,captures:{"1":{name:"meta.brace.round.graphql"}},end:/\p{space}*(\))/dgv,patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-variable-definition"},{include:"#literal-quasi-embedded"}]},"graphql-variable-name":{captures:{"1":{name:"variable.graphql"}},match:/\p{space}*(\$[_A-Za-z][_0-9A-Za-z]*)/dgv},"native-interpolation":{begin:/\p{space}*(\$\{)/dgv,beginCaptures:{"1":{name:"keyword.other.substitution.begin"}},end:/(\})/dgv,endCaptures:{"1":{name:"keyword.other.substitution.end"}},name:"native.interpolation",patterns:[{include:"source.js"},{include:"source.ts"},{include:"source.js.jsx"},{include:"source.tsx"}]}},scopeName:"source.graphql",embeddedLangs:["javascript","typescript","jsx","tsx"],aliases:["gql"]})
|
|
7
|
+
const lang = Object.freeze({displayName:"GraphQL",fileTypes:["graphql","graphqls","gql","graphcool"],name:"graphql",patterns:[{include:"#graphql"}],repository:{graphql:{patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-fragment-definition"},{include:"#graphql-directive-definition"},{include:"#graphql-type-interface"},{include:"#graphql-enum"},{include:"#graphql-scalar"},{include:"#graphql-union"},{include:"#graphql-schema"},{include:"#graphql-operation-def"},{include:"#literal-quasi-embedded"}]},"graphql-ampersand":{captures:{"1":{name:"keyword.operator.logical.graphql"}},match:/\p{space}*(&)/dgv},"graphql-arguments":{begin:/\p{space}*(\()/dgv,beginCaptures:{"1":{name:"meta.brace.round.directive.graphql"}},end:/\p{space}*(\))/dgv,endCaptures:{"1":{name:"meta.brace.round.directive.graphql"}},name:"meta.arguments.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{begin:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)\p{space}*(:)/dgv,beginCaptures:{"1":{name:"variable.parameter.graphql"},"2":{name:"punctuation.colon.graphql"}},end:/(?=\p{space}*(?:([_A-Za-z][_0-9A-Za-z]*)\p{space}*(:)|\)))|\p{space}*(,)/dgv,endCaptures:{"3":{name:"punctuation.comma.graphql"}},patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-value"},{include:"#graphql-skip-newlines"}]},{include:"#literal-quasi-embedded"}]},"graphql-boolean-value":{captures:{"1":{name:"constant.language.boolean.graphql"}},match:/\p{space}*\b(true|false)\b/dgv},"graphql-colon":{captures:{"1":{name:"punctuation.colon.graphql"}},match:/\p{space}*(:)/dgv},"graphql-comma":{captures:{"1":{name:"punctuation.comma.graphql"}},match:/\p{space}*(,)/dgv},"graphql-comment":{patterns:[{captures:{"1":{name:"punctuation.whitespace.comment.leading.graphql"}},match:/(\p{space}*)(#)[^\n]*/dgv,name:"comment.line.graphql.js"},{begin:/(""")/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.graphql"}},end:/(""")/dgv,name:"comment.line.graphql.js"},{begin:/(")/dgv,beginCaptures:{"1":{name:"punctuation.whitespace.comment.leading.graphql"}},end:/(")/dgv,name:"comment.line.graphql.js"}]},"graphql-description-docstring":{begin:/"""/dgv,end:/"""/dgv,name:"comment.block.graphql"},"graphql-description-singleline":{match:/#(?=([^"]*"[^"]*")*[^"]*(?=\n?$))[^\n]*(?=\n?$)/dgv,name:"comment.line.number-sign.graphql"},"graphql-directive":{applyEndPatternLast:1,begin:/\p{space}*((@)\p{space}*([_A-Za-z][_0-9A-Za-z]*))/dgv,beginCaptures:{"1":{name:"entity.name.function.directive.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-arguments"},{include:"#literal-quasi-embedded"},{include:"#graphql-skip-newlines"}]},"graphql-directive-definition":{applyEndPatternLast:1,begin:/\p{space}*(\bdirective\b)\p{space}*(@[_A-Za-z][_0-9A-Za-z]*)/dgv,beginCaptures:{"1":{name:"keyword.directive.graphql"},"2":{name:"entity.name.function.directive.graphql"},"3":{name:"keyword.on.graphql"},"4":{name:"support.type.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-variable-definitions"},{applyEndPatternLast:1,begin:/\p{space}*(\bon\b)\p{space}*([_A-Za-z]*)/dgv,beginCaptures:{"1":{name:"keyword.on.graphql"},"2":{name:"support.type.location.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-skip-newlines"},{include:"#graphql-comment"},{include:"#literal-quasi-embedded"},{captures:{"2":{name:"support.type.location.graphql"}},match:/\p{space}*(\|)\p{space}*([_A-Za-z]*)/dgv}]},{include:"#graphql-skip-newlines"},{include:"#graphql-comment"},{include:"#literal-quasi-embedded"}]},"graphql-enum":{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\p{space}*))\\1)\\b(enum)\\b\\p{space}*([_A-Za-z][_0-9A-Za-z]*)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"1":{name:"keyword.enum.graphql"},"2":{name:"support.type.enum.graphql"}},end:/(?<=\})/dgv,name:"meta.enum.graphql",patterns:[{begin:/\p{space}*(\{)/dgv,beginCaptures:{"1":{name:"punctuation.operation.graphql"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.operation.graphql"}},name:"meta.type.object.graphql",patterns:[{include:"#graphql-object-type"},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-enum-value"},{include:"#literal-quasi-embedded"}]},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"}]},"graphql-enum-value":{match:/\p{space}*(?!=\b(true|false|null)\b)([_A-Za-z][_0-9A-Za-z]*)/dgv,name:"constant.character.enum.graphql"},"graphql-field":{patterns:[{captures:{"1":{name:"string.unquoted.alias.graphql"},"2":{name:"punctuation.colon.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)\p{space}*(:)/dgv},{captures:{"1":{name:"variable.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv},{include:"#graphql-arguments"},{include:"#graphql-directive"},{include:"#graphql-selection-set"},{include:"#literal-quasi-embedded"},{include:"#graphql-skip-newlines"}]},"graphql-float-value":{captures:{"1":{name:"constant.numeric.float.graphql"}},match:/\p{space}*(-?(0|[1-9][0-9]*)(\.[0-9]+)?(([eE])([\+\-])?[0-9]+)?)/dgv},"graphql-fragment-definition":{begin:/\p{space}*(\bfragment\b)\p{space}*([_A-Za-z][_0-9A-Za-z]*)?\p{space}*(\bon\b)\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv,captures:{"1":{name:"keyword.fragment.graphql"},"2":{name:"entity.name.fragment.graphql"},"3":{name:"keyword.on.graphql"},"4":{name:"support.type.graphql"}},end:/(?<=\})/dgv,name:"meta.fragment.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-selection-set"},{include:"#graphql-directive"},{include:"#graphql-skip-newlines"},{include:"#literal-quasi-embedded"}]},"graphql-fragment-spread":{applyEndPatternLast:1,begin:/\p{space}*(\.\.\.)\p{space}*(?!\bon\b)([_A-Za-z][_0-9A-Za-z]*)/dgv,captures:{"1":{name:"keyword.operator.spread.graphql"},"2":{name:"variable.fragment.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-selection-set"},{include:"#graphql-directive"},{include:"#literal-quasi-embedded"},{include:"#graphql-skip-newlines"}]},"graphql-ignore-spaces":{match:/\p{space}*/dgv},"graphql-inline-fragment":{applyEndPatternLast:1,begin:/\p{space}*(\.\.\.)\p{space}*(?:(\bon\b)\p{space}*([_A-Za-z][_0-9A-Za-z]*))?/dgv,captures:{"1":{name:"keyword.operator.spread.graphql"},"2":{name:"keyword.on.graphql"},"3":{name:"support.type.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-selection-set"},{include:"#graphql-directive"},{include:"#graphql-skip-newlines"},{include:"#literal-quasi-embedded"}]},"graphql-input-types":{patterns:[{include:"#graphql-scalar-type"},{captures:{"1":{name:"support.type.graphql"},"2":{name:"keyword.operator.nulltype.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)(?:\p{space}*(!))?/dgv},{begin:/\p{space}*(\[)/dgv,captures:{"1":{name:"meta.brace.square.graphql"},"2":{name:"keyword.operator.nulltype.graphql"}},end:/\p{space}*(\])(?:\p{space}*(!))?/dgv,name:"meta.type.list.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-input-types"},{include:"#graphql-comma"},{include:"#literal-quasi-embedded"}]}]},"graphql-list-value":{patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\p{space}*))\\1)(\\[)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"1":{name:"meta.brace.square.graphql"}},end:/\p{space}*(\])/dgv,endCaptures:{"1":{name:"meta.brace.square.graphql"}},name:"meta.listvalues.graphql",patterns:[{include:"#graphql-value"}]}]},"graphql-name":{captures:{"1":{name:"entity.name.function.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv},"graphql-null-value":{captures:{"1":{name:"constant.language.null.graphql"}},match:/\p{space}*\b(null)\b/dgv},"graphql-object-field":{captures:{"1":{name:"constant.object.key.graphql"},"2":{name:"string.unquoted.graphql"},"3":{name:"punctuation.graphql"}},match:/\p{space}*(([_A-Za-z][_0-9A-Za-z]*))\p{space}*(:)/dgv},"graphql-object-value":{patterns:[{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\p{space}*))\\1)(\\{)","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"1":{name:"meta.brace.curly.graphql"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"meta.brace.curly.graphql"}},name:"meta.objectvalues.graphql",patterns:[{include:"#graphql-object-field"},{include:"#graphql-value"}]}]},"graphql-operation-def":{patterns:[{include:"#graphql-query-mutation"},{include:"#graphql-name"},{include:"#graphql-variable-definitions"},{include:"#graphql-directive"},{include:"#graphql-selection-set"}]},"graphql-query-mutation":{captures:{"1":{name:"keyword.operation.graphql"}},match:/\p{space}*\b(query|mutation)\b/dgv},"graphql-scalar":{captures:{"1":{name:"keyword.scalar.graphql"},"2":{name:"entity.scalar.graphql"}},match:/\p{space}*\b(scalar)\b\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv},"graphql-scalar-type":{captures:{"1":{name:"support.type.builtin.graphql"},"2":{name:"keyword.operator.nulltype.graphql"}},match:/\p{space}*\b(Int|Float|String|Boolean|ID)\b(?:\p{space}*(!))?/dgv},"graphql-schema":{begin:/\p{space}*\b(schema)\b/dgv,beginCaptures:{"1":{name:"keyword.schema.graphql"}},end:/(?<=\})/dgv,patterns:[{begin:/\p{space}*(\{)/dgv,beginCaptures:{"1":{name:"punctuation.operation.graphql"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.operation.graphql"}},patterns:[{begin:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)(?=\p{space}*\(|:)/dgv,beginCaptures:{"1":{name:"variable.arguments.graphql"}},end:/(?=\p{space}*(([_A-Za-z][_0-9A-Za-z]*)\p{space}*([\(\:])|(\})))|\p{space}*(,)/dgv,endCaptures:{"5":{name:"punctuation.comma.graphql"}},patterns:[{captures:{"1":{name:"support.type.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-colon"},{include:"#graphql-skip-newlines"}]},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-skip-newlines"}]},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-skip-newlines"}]},"graphql-selection-set":{begin:/\p{space}*(\{)/dgv,beginCaptures:{"1":{name:"punctuation.operation.graphql"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.operation.graphql"}},name:"meta.selectionset.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-field"},{include:"#graphql-fragment-spread"},{include:"#graphql-inline-fragment"},{include:"#graphql-comma"},{include:"#native-interpolation"},{include:"#literal-quasi-embedded"}]},"graphql-skip-newlines":{match:/\p{space}*\n/dgv},"graphql-string-content":{patterns:[{match:/\\[\/'"\\nrtbf]/dgv,name:"constant.character.escape.graphql"},{match:/\\u(\p{AHex}{4})/dgv,name:"constant.character.escape.graphql"}]},"graphql-string-value":{begin:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\p{space}*))\\1)((\"))","dgv",{"hiddenCaptures":[1]}),beginCaptures:{"1":{name:"string.quoted.double.graphql"},"2":{name:"punctuation.definition.string.begin.graphql"}},contentName:"string.quoted.double.graphql",end:/*@__PURE__*/ new EmulatedRegExp("(?:(?=(\\p{space}*))\\1)(?:((\"))|(\\n))","dgv",{"hiddenCaptures":[1]}),endCaptures:{"1":{name:"string.quoted.double.graphql"},"2":{name:"punctuation.definition.string.end.graphql"},"3":{name:"invalid.illegal.newline.graphql"}},patterns:[{include:"#graphql-string-content"},{include:"#literal-quasi-embedded"}]},"graphql-type-definition":{begin:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)(?=\p{space}*\(|:)/dgv,beginCaptures:{"1":{name:"variable.graphql"}},end:/(?=\p{space}*(([_A-Za-z][_0-9A-Za-z]*)\p{space}*([\(\:])|(\})))|\p{space}*(,)/dgv,endCaptures:{"5":{name:"punctuation.comma.graphql"}},patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-variable-definitions"},{include:"#graphql-type-object"},{include:"#graphql-colon"},{include:"#graphql-input-types"},{include:"#literal-quasi-embedded"}]},"graphql-type-interface":{applyEndPatternLast:1,begin:/\p{space}*\b(?:(extends?)?\b\p{space}*\b(type)|(interface)|(input))\b\p{space}*([_A-Za-z][_0-9A-Za-z]*)?/dgv,captures:{"1":{name:"keyword.type.graphql"},"2":{name:"keyword.type.graphql"},"3":{name:"keyword.interface.graphql"},"4":{name:"keyword.input.graphql"},"5":{name:"support.type.graphql"}},end:/(?=[^\n])/dgv,name:"meta.type.interface.graphql",patterns:[{begin:/\p{space}*\b(implements)\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.implements.graphql"}},end:/\p{space}*(?=\{)/dgv,patterns:[{captures:{"1":{name:"support.type.graphql"}},match:/\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-ampersand"},{include:"#graphql-comma"}]},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-type-object"},{include:"#literal-quasi-embedded"},{include:"#graphql-ignore-spaces"}]},"graphql-type-object":{begin:/\p{space}*(\{)/dgv,beginCaptures:{"1":{name:"punctuation.operation.graphql"}},end:/\p{space}*(\})/dgv,endCaptures:{"1":{name:"punctuation.operation.graphql"}},name:"meta.type.object.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-object-type"},{include:"#graphql-type-definition"},{include:"#literal-quasi-embedded"}]},"graphql-union":{applyEndPatternLast:1,begin:/\p{space}*\b(union)\b\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv,captures:{"1":{name:"keyword.union.graphql"},"2":{name:"support.type.graphql"}},end:/(?=[^\n])/dgv,patterns:[{applyEndPatternLast:1,begin:/\p{space}*(=)\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv,captures:{"1":{name:"punctuation.assignment.graphql"},"2":{name:"support.type.graphql"}},end:/(?=[^\n])/dgv,patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-skip-newlines"},{include:"#literal-quasi-embedded"},{captures:{"1":{name:"punctuation.or.graphql"},"2":{name:"support.type.graphql"}},match:/\p{space}*(\|)\p{space}*([_A-Za-z][_0-9A-Za-z]*)/dgv}]},{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-skip-newlines"},{include:"#literal-quasi-embedded"}]},"graphql-union-mark":{captures:{"1":{name:"punctuation.union.graphql"}},match:/\p{space}*(\|)/dgv},"graphql-value":{patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-variable-name"},{include:"#graphql-float-value"},{include:"#graphql-string-value"},{include:"#graphql-boolean-value"},{include:"#graphql-null-value"},{include:"#graphql-enum-value"},{include:"#graphql-list-value"},{include:"#graphql-object-value"},{include:"#literal-quasi-embedded"}]},"graphql-variable-assignment":{applyEndPatternLast:1,begin:/\p{space}(=)/dgv,beginCaptures:{"1":{name:"punctuation.assignment.graphql"}},end:/(?=[\n\,\)])/dgv,patterns:[{include:"#graphql-value"}]},"graphql-variable-definition":{begin:/\p{space}*(\$?[_A-Za-z][_0-9A-Za-z]*)(?=\p{space}*\(|:)/dgv,beginCaptures:{"1":{name:"variable.parameter.graphql"}},end:/(?=\p{space}*((\$?[_A-Za-z][_0-9A-Za-z]*)\p{space}*([\(\:])|([\}\)])))|\p{space}*(,)/dgv,endCaptures:{"5":{name:"punctuation.comma.graphql"}},name:"meta.variables.graphql",patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-directive"},{include:"#graphql-colon"},{include:"#graphql-input-types"},{include:"#graphql-variable-assignment"},{include:"#literal-quasi-embedded"},{include:"#graphql-skip-newlines"}]},"graphql-variable-definitions":{begin:/\p{space}*(\()/dgv,captures:{"1":{name:"meta.brace.round.graphql"}},end:/\p{space}*(\))/dgv,patterns:[{include:"#graphql-comment"},{include:"#graphql-description-docstring"},{include:"#graphql-description-singleline"},{include:"#graphql-variable-definition"},{include:"#literal-quasi-embedded"}]},"graphql-variable-name":{captures:{"1":{name:"variable.graphql"}},match:/\p{space}*(\$[_A-Za-z][_0-9A-Za-z]*)/dgv},"native-interpolation":{begin:/\p{space}*(\$\{)/dgv,beginCaptures:{"1":{name:"keyword.other.substitution.begin"}},end:/(\})/dgv,endCaptures:{"1":{name:"keyword.other.substitution.end"}},name:"native.interpolation",patterns:[{include:"source.js"},{include:"source.ts"},{include:"source.js.jsx"},{include:"source.tsx"}]}},scopeName:"source.graphql",embeddedLangs:["javascript","typescript","jsx","tsx"],aliases:["gql"]})
|
|
8
8
|
|
|
9
9
|
export default [
|
|
10
10
|
...javascript,
|
package/dist/groovy.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const lang = Object.freeze({displayName:"Groovy",name:"groovy",patterns:[{captures:{"1":{name:"punctuation.definition.comment.groovy"}},match:/^(#!)[^\n]+(?=\n?$)\n/dgv,name:"comment.line.hashbang.groovy"},{captures:{"1":{name:"keyword.other.package.groovy"},"2":{name:"storage.modifier.package.groovy"},"3":{name:"punctuation.terminator.groovy"}},match:/^\p{space}*(package)\b(?:\p{space}*([^ \;\$]+)\p{space}*(;)?)?/dgv,name:"meta.package.groovy"},{begin:/(import static)\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.other.import.static.groovy"}},captures:{"1":{name:"keyword.other.import.groovy"},"2":{name:"storage.modifier.import.groovy"},"3":{name:"punctuation.terminator.groovy"}},contentName:"storage.modifier.import.groovy",end:/\p{space}*(?:(?=\n?$)|(?=%>)(;))/dgv,endCaptures:{"1":{name:"punctuation.terminator.groovy"}},name:"meta.import.groovy",patterns:[{match:/\./dgv,name:"punctuation.separator.groovy"},{match:/\p{space}/dgv,name:"invalid.illegal.character_not_allowed_here.groovy"}]},{begin:/(import)\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.other.import.groovy"}},captures:{"1":{name:"keyword.other.import.groovy"},"2":{name:"storage.modifier.import.groovy"},"3":{name:"punctuation.terminator.groovy"}},contentName:"storage.modifier.import.groovy",end:/\p{space}*(?:(?=\n?$)|(?=%>)|(;))/dgv,endCaptures:{"1":{name:"punctuation.terminator.groovy"}},name:"meta.import.groovy",patterns:[{match:/\./dgv,name:"punctuation.separator.groovy"},{match:/\p{space}/dgv,name:"invalid.illegal.character_not_allowed_here.groovy"}]},{captures:{"1":{name:"keyword.other.import.groovy"},"2":{name:"keyword.other.import.static.groovy"},"3":{name:"storage.modifier.import.groovy"},"4":{name:"punctuation.terminator.groovy"}},match:/^\p{space}*(import)\p{space}+(static)\p{space}+\b(?:\p{space}*([^ \;\$]+)\p{space}*(;)?)?/dgv,name:"meta.import.groovy"},{include:"#groovy"}],repository:{annotations:{patterns:[{begin:/(?<!\.)(@[^ \(]+)(\()/dgv,beginCaptures:{"1":{name:"storage.type.annotation.groovy"},"2":{name:"punctuation.definition.annotation-arguments.begin.groovy"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.annotation-arguments.end.groovy"}},name:"meta.declaration.annotation.groovy",patterns:[{captures:{"1":{name:"constant.other.key.groovy"},"2":{name:"keyword.operator.assignment.groovy"}},match:/([\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(=)/dgv},{include:"#values"},{match:/,/dgv,name:"punctuation.definition.seperator.groovy"}]},{match:/(?<!\.)@\P{space}+/dgv,name:"storage.type.annotation.groovy"}]},"anonymous-classes-and-new":{begin:/\bnew\b/dgv,beginCaptures:{"0":{name:"keyword.control.new.groovy"}},end:/(?<=\)|\])(?!\p{space}*\{)|(?<=\})|(?=[\;])|(?=\n?$)/dgv,patterns:[{begin:/([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(?=\[)/dgv,beginCaptures:{"1":{name:"storage.type.groovy"}},end:/\}|(?=\p{space}*(?:,|;|\)))|(?=\n?$)/dgv,patterns:[{begin:/\[/dgv,end:/\]/dgv,patterns:[{include:"#groovy"}]},{begin:/\{/dgv,end:/(?=\})/dgv,patterns:[{include:"#groovy"}]}]},{begin:/(?=[\p{L}\p{M}\p{N}\p{Pc}][^\n]*\(?)/dgv,end:/(?<=\))|(?=\n?$)/dgv,patterns:[{include:"#object-types"},{begin:/\(/dgv,beginCaptures:{"1":{name:"storage.type.groovy"}},end:/\)/dgv,patterns:[{include:"#groovy"}]}]},{begin:/\{/dgv,end:/\}/dgv,name:"meta.inner-class.groovy",patterns:[{include:"#class-body"}]}]},braces:{begin:/\{/dgv,end:/\}/dgv,patterns:[{include:"#groovy-code"}]},class:{begin:/(?=[\p{L}\p{M}\p{N}\p{Pc}]?[\p{L}\p{M}\p{N}\p{Pc}\p{space}]*(?:class|(?:@)?interface|enum)\p{space}+[\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.class.end.groovy"}},name:"meta.definition.class.groovy",patterns:[{include:"#storage-modifiers"},{include:"#comments"},{captures:{"1":{name:"storage.modifier.groovy"},"2":{name:"entity.name.type.class.groovy"}},match:/(class|(?:@)?interface|enum)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"meta.class.identifier.groovy"},{begin:/extends/dgv,beginCaptures:{"0":{name:"storage.modifier.extends.groovy"}},end:/(?=\{|implements)/dgv,name:"meta.definition.class.inherited.classes.groovy",patterns:[{include:"#object-types-inherited"},{include:"#comments"}]},{begin:/(implements)\p{space}/dgv,beginCaptures:{"1":{name:"storage.modifier.implements.groovy"}},end:/(?=\p{space}*extends|\{)/dgv,name:"meta.definition.class.implemented.interfaces.groovy",patterns:[{include:"#object-types-inherited"},{include:"#comments"}]},{begin:/\{/dgv,end:/(?=\})/dgv,name:"meta.class.body.groovy",patterns:[{include:"#class-body"}]}]},"class-body":{patterns:[{include:"#enum-values"},{include:"#constructors"},{include:"#groovy"}]},closures:{begin:/\{(?=[^\n]*?->)/dgv,end:/\}/dgv,patterns:[{begin:/(?<=\{)(?=[^\}]*?->)/dgv,end:/->/dgv,endCaptures:{"0":{name:"keyword.operator.groovy"}},patterns:[{begin:/(?!->)/dgv,end:/(?=->)/dgv,name:"meta.closure.parameters.groovy",patterns:[{begin:/(?!,|->)/dgv,end:/(?=,|->)/dgv,name:"meta.closure.parameter.groovy",patterns:[{begin:/=/dgv,beginCaptures:{"0":{name:"keyword.operator.assignment.groovy"}},end:/(?=,|->)/dgv,name:"meta.parameter.default.groovy",patterns:[{include:"#groovy-code"}]},{include:"#parameters"}]}]}]},{begin:/(?=[^\}])/dgv,end:/(?=\})/dgv,patterns:[{include:"#groovy-code"}]}]},"comment-block":{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.groovy"}},end:/\*\//dgv,name:"comment.block.groovy"},comments:{patterns:[{captures:{"0":{name:"punctuation.definition.comment.groovy"}},match:/\/\*\*\//dgv,name:"comment.block.empty.groovy"},{include:"text.html.javadoc"},{include:"#comment-block"},{captures:{"1":{name:"punctuation.definition.comment.groovy"}},match:/(\/\/)[^\n]*(?=\n?$)\n?/dgv,name:"comment.line.double-slash.groovy"}]},constants:{patterns:[{match:/\b([A-Z][A-Z0-9_]+)\b/dgv,name:"constant.other.groovy"},{match:/\b(true|false|null)\b/dgv,name:"constant.language.groovy"}]},constructors:{applyEndPatternLast:1,begin:/(?<=;|^)(?=\p{space}*(?:(?:private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final)\p{space}+)*[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*\()/dgv,end:/\}/dgv,patterns:[{include:"#method-content"}]},"enum-values":{patterns:[{begin:/(?<=;|^)\p{space}*\b([A-Z0-9_]+)(?=\p{space}*(?:,|;|\}|\(|(?=\n?$)))/dgv,beginCaptures:{"1":{name:"constant.enum.name.groovy"}},end:/,|;|(?=\})|^(?!\p{space}*[\p{L}\p{M}\p{N}\p{Pc}]+\p{space}*(?:,|(?=\n?$)))/dgv,patterns:[{begin:/\(/dgv,end:/\)/dgv,name:"meta.enum.value.groovy",patterns:[{match:/,/dgv,name:"punctuation.definition.seperator.parameter.groovy"},{include:"#groovy-code"}]}]}]},groovy:{patterns:[{include:"#comments"},{include:"#class"},{include:"#variables"},{include:"#methods"},{include:"#annotations"},{include:"#groovy-code"}]},"groovy-code":{patterns:[{include:"#groovy-code-minus-map-keys"},{include:"#map-keys"}]},"groovy-code-minus-map-keys":{patterns:[{include:"#comments"},{include:"#annotations"},{include:"#support-functions"},{include:"#keyword-language"},{include:"#values"},{include:"#anonymous-classes-and-new"},{include:"#keyword-operator"},{include:"#types"},{include:"#storage-modifiers"},{include:"#parens"},{include:"#closures"},{include:"#braces"}]},keyword:{patterns:[{include:"#keyword-operator"},{include:"#keyword-language"}]},"keyword-language":{patterns:[{match:/\b(try|catch|finally|throw)\b/dgv,name:"keyword.control.exception.groovy"},{match:/\b((?<!\.)(?:return|break|continue|default|do|while|for|switch|if|else))\b/dgv,name:"keyword.control.groovy"},{begin:/\bcase\b/dgv,beginCaptures:{"0":{name:"keyword.control.groovy"}},end:/:/dgv,endCaptures:{"0":{name:"punctuation.definition.case-terminator.groovy"}},name:"meta.case.groovy",patterns:[{include:"#groovy-code-minus-map-keys"}]},{begin:/\b(assert)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.assert.groovy"}},end:/(?=\n?$)|;|\}/dgv,name:"meta.declaration.assertion.groovy",patterns:[{match:/:/dgv,name:"keyword.operator.assert.expression-seperator.groovy"},{include:"#groovy-code-minus-map-keys"}]},{match:/\b(throws)\b/dgv,name:"keyword.other.throws.groovy"}]},"keyword-operator":{patterns:[{match:/\b(as)\b/dgv,name:"keyword.operator.as.groovy"},{match:/\b(in)\b/dgv,name:"keyword.operator.in.groovy"},{match:/\?:/dgv,name:"keyword.operator.elvis.groovy"},{match:/\*:/dgv,name:"keyword.operator.spreadmap.groovy"},{match:/\.\./dgv,name:"keyword.operator.range.groovy"},{match:/->/dgv,name:"keyword.operator.arrow.groovy"},{match:/<</dgv,name:"keyword.operator.leftshift.groovy"},{match:/(?<=\P{space})\.(?=\P{space})/dgv,name:"keyword.operator.navigation.groovy"},{match:/(?<=\P{space})\?\.(?=\P{space})/dgv,name:"keyword.operator.safe-navigation.groovy"},{begin:/\?/dgv,beginCaptures:{"0":{name:"keyword.operator.ternary.groovy"}},end:/(?=(?=\n?$)|\)|\}|\])/dgv,name:"meta.evaluation.ternary.groovy",patterns:[{match:/:/dgv,name:"keyword.operator.ternary.expression-seperator.groovy"},{include:"#groovy-code-minus-map-keys"}]},{match:/==~/dgv,name:"keyword.operator.match.groovy"},{match:/=~/dgv,name:"keyword.operator.find.groovy"},{match:/\b(instanceof)\b/dgv,name:"keyword.operator.instanceof.groovy"},{match:/(===|==|!=|<=|>=|<=>|<>|<|>|<<)/dgv,name:"keyword.operator.comparison.groovy"},{match:/=/dgv,name:"keyword.operator.assignment.groovy"},{match:/(--|\+\+)/dgv,name:"keyword.operator.increment-decrement.groovy"},{match:/(-|\+|\*|\/|%)/dgv,name:"keyword.operator.arithmetic.groovy"},{match:/(!|&&|\|\|)/dgv,name:"keyword.operator.logical.groovy"}]},"language-variables":{patterns:[{match:/\b(this|super)\b/dgv,name:"variable.language.groovy"}]},"map-keys":{patterns:[{captures:{"1":{name:"constant.other.key.groovy"},"2":{name:"punctuation.definition.seperator.key-value.groovy"}},match:/([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(:)/dgv}]},"method-call":{begin:/([\p{L}\p{M}\p{N}\p{Pc}\$]+)(\()/dgv,beginCaptures:{"1":{name:"meta.method.groovy"},"2":{name:"punctuation.definition.method-parameters.begin.groovy"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.method-parameters.end.groovy"}},name:"meta.method-call.groovy",patterns:[{match:/,/dgv,name:"punctuation.definition.seperator.parameter.groovy"},{include:"#groovy-code"}]},"method-content":{patterns:[{match:/\p{space}/dgv},{include:"#annotations"},{begin:/(?=(?:[\p{L}\p{M}\p{N}\p{Pc}]|<)[^\(]*\p{space}+(?:[\p{L}\p{M}\p{N}\p{Pc}\$]|<)+\p{space}*\()/dgv,end:/(?=[\p{L}\p{M}\p{N}\p{Pc}\$]+\p{space}*\()/dgv,name:"meta.method.return-type.java",patterns:[{include:"#storage-modifiers"},{include:"#types"}]},{begin:/([\p{L}\p{M}\p{N}\p{Pc}\$]+)\p{space}*\(/dgv,beginCaptures:{"1":{name:"entity.name.function.java"}},end:/\)/dgv,name:"meta.definition.method.signature.java",patterns:[{begin:/(?=[^\)])/dgv,end:/(?=\))/dgv,name:"meta.method.parameters.groovy",patterns:[{begin:/(?=[^\,\)])/dgv,end:/(?=,|\))/dgv,name:"meta.method.parameter.groovy",patterns:[{match:/,/dgv,name:"punctuation.definition.separator.groovy"},{begin:/=/dgv,beginCaptures:{"0":{name:"keyword.operator.assignment.groovy"}},end:/(?=,|\))/dgv,name:"meta.parameter.default.groovy",patterns:[{include:"#groovy-code"}]},{include:"#parameters"}]}]}]},{begin:/(?=<)/dgv,end:/(?=\p{space})/dgv,name:"meta.method.paramerised-type.groovy",patterns:[{begin:/</dgv,end:/>/dgv,name:"storage.type.parameters.groovy",patterns:[{include:"#types"},{match:/,/dgv,name:"punctuation.definition.seperator.groovy"}]}]},{begin:/throws/dgv,beginCaptures:{"0":{name:"storage.modifier.groovy"}},end:/(?=\{|;)|^(?=\p{space}*(?:[^\{\p{space}]|(?=\n?$)))/dgv,name:"meta.throwables.groovy",patterns:[{include:"#object-types"}]},{begin:/\{/dgv,end:/(?=\})/dgv,name:"meta.method.body.java",patterns:[{include:"#groovy-code"}]}]},methods:{applyEndPatternLast:1,begin:/(?<=;|^|\{)(?=\p{space}*(?:(?:private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final)|def|(?:(?:void|boolean|byte|char|short|int|float|long|double)|@?(?:[a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*[A-Z]+[\p{L}\p{M}\p{N}\p{Pc}]*)[\[\]]*(?:<[^\n]*>)?)\p{space}+([^\=]+\p{space}+)?[\p{L}\p{M}\p{N}\p{Pc}]+\p{space}*\()/dgv,end:/\}|(?=[^\{])/dgv,name:"meta.definition.method.groovy",patterns:[{include:"#method-content"}]},nest_curly:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.groovy"}},end:/\}/dgv,patterns:[{include:"#nest_curly"}]},numbers:{patterns:[{match:/((0(x|X)[0-9a-fA-F]*)|(\+|-)?\b(([0-9]+\.?[0-9]*)|(\.[0-9]+))((e|E)(\+|-)?[0-9]+)?)([LlFfUuDdg]|UL|ul)?\b/dgv,name:"constant.numeric.groovy"}]},"object-types":{patterns:[{begin:/\b((?:[a-z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*(?:[A-Z]+[\p{L}\p{M}\p{N}\p{Pc}]*[a-z]+[\p{L}\p{M}\p{N}\p{Pc}]*|UR[LI]))</dgv,end:/>|[^\p{L}\p{M}\p{N}\p{Pc}\p{space}\,\?\<\[\]]/dgv,name:"storage.type.generic.groovy",patterns:[{include:"#object-types"},{begin:/</dgv,end:/>|[^\p{L}\p{M}\p{N}\p{Pc}\p{space}\,\[\]\<]/dgv,name:"storage.type.generic.groovy"}]},{begin:/\b((?:[a-z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*[A-Z]+[\p{L}\p{M}\p{N}\p{Pc}]*[a-z]+[\p{L}\p{M}\p{N}\p{Pc}]*)(?=\[)/dgv,end:/(?=[^\]\p{space}])/dgv,name:"storage.type.object.array.groovy",patterns:[{begin:/\[/dgv,end:/\]/dgv,patterns:[{include:"#groovy"}]}]},{match:/\b(?:[a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*(?:[A-Z]+[\p{L}\p{M}\p{N}\p{Pc}]*[a-z]+[\p{L}\p{M}\p{N}\p{Pc}]*|UR[LI])\b/dgv,name:"storage.type.groovy"}]},"object-types-inherited":{patterns:[{begin:/\b((?:[a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*[A-Z]+[\p{L}\p{M}\p{N}\p{Pc}]*[a-z]+[\p{L}\p{M}\p{N}\p{Pc}]*)</dgv,end:/>|[^\p{L}\p{M}\p{N}\p{Pc}\p{space}\,\?\<\[\]]/dgv,name:"entity.other.inherited-class.groovy",patterns:[{include:"#object-types-inherited"},{begin:/</dgv,end:/>|[^\p{L}\p{M}\p{N}\p{Pc}\p{space}\,\[\]\<]/dgv,name:"storage.type.generic.groovy"}]},{captures:{"1":{name:"keyword.operator.dereference.groovy"}},match:/\b(?:[a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*(\.))*[A-Z]+[\p{L}\p{M}\p{N}\p{Pc}]*[a-z]+[\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"entity.other.inherited-class.groovy"}]},parameters:{patterns:[{include:"#annotations"},{include:"#storage-modifiers"},{include:"#types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.parameter.method.groovy"}]},parens:{begin:/\(/dgv,end:/\)/dgv,patterns:[{include:"#groovy-code"}]},"primitive-arrays":{patterns:[{match:/\b(?:void|boolean|byte|char|short|int|float|long|double)(\[\])*\b/dgv,name:"storage.type.primitive.array.groovy"}]},"primitive-types":{patterns:[{match:/\b(?:void|boolean|byte|char|short|int|float|long|double)\b/dgv,name:"storage.type.primitive.groovy"}]},regexp:{patterns:[{begin:/\/(?=[^\/]+\/([^\>]|(?=\n?$)))/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.regexp.begin.groovy"}},end:/\//dgv,endCaptures:{"0":{name:"punctuation.definition.string.regexp.end.groovy"}},name:"string.regexp.groovy",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.groovy"}]},{begin:/~"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.regexp.begin.groovy"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.regexp.end.groovy"}},name:"string.regexp.compiled.groovy",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.groovy"}]}]},"storage-modifiers":{patterns:[{match:/\b(private|protected|public)\b/dgv,name:"storage.modifier.access-control.groovy"},{match:/\b(static)\b/dgv,name:"storage.modifier.static.groovy"},{match:/\b(final)\b/dgv,name:"storage.modifier.final.groovy"},{match:/\b(native|synchronized|abstract|threadsafe|transient)\b/dgv,name:"storage.modifier.other.groovy"}]},"string-quoted-double":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.groovy"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.groovy"}},name:"string.quoted.double.groovy",patterns:[{include:"#string-quoted-double-contents"}]},"string-quoted-double-contents":{patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.groovy"},{applyEndPatternLast:1,begin:/\$[\p{L}\p{M}\p{N}\p{Pc}]/dgv,end:/(?=[^\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"variable.other.interpolated.groovy",patterns:[{match:/[\p{L}\p{M}\p{N}\p{Pc}]/dgv,name:"variable.other.interpolated.groovy"},{match:/\./dgv,name:"keyword.other.dereference.groovy"}]},{begin:/\$\{/dgv,captures:{"0":{name:"punctuation.section.embedded.groovy"}},end:/\}/dgv,name:"source.groovy.embedded.source",patterns:[{include:"#nest_curly"}]}]},"string-quoted-double-multiline":{begin:/"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.groovy"}},end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.groovy"}},name:"string.quoted.double.multiline.groovy",patterns:[{include:"#string-quoted-double-contents"}]},"string-quoted-single":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.groovy"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.groovy"}},name:"string.quoted.single.groovy",patterns:[{include:"#string-quoted-single-contents"}]},"string-quoted-single-contents":{patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.groovy"}]},"string-quoted-single-multiline":{begin:/'''/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.groovy"}},end:/'''/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.groovy"}},name:"string.quoted.single.multiline.groovy",patterns:[{include:"#string-quoted-single-contents"}]},strings:{patterns:[{include:"#string-quoted-double-multiline"},{include:"#string-quoted-single-multiline"},{include:"#string-quoted-double"},{include:"#string-quoted-single"},{include:"#regexp"}]},structures:{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.structure.begin.groovy"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.structure.end.groovy"}},name:"meta.structure.groovy",patterns:[{include:"#groovy-code"},{match:/,/dgv,name:"punctuation.definition.separator.groovy"}]},"support-functions":{patterns:[{match:/\b(?:sprintf|print(?:f|ln)?)\b/dgv,name:"support.function.print.groovy"},{match:/\b(?:shouldFail|fail(?:NotEquals)?|ass(?:ume|ert(?:S(?:cript|ame)|N(?:ot(?:Same|Null)|ull)|Contains|T(?:hat|oString|rue)|Inspect|Equals|False|Length|ArrayEquals)))\b/dgv,name:"support.function.testing.groovy"}]},types:{patterns:[{match:/\b(def)\b/dgv,name:"storage.type.def.groovy"},{include:"#primitive-types"},{include:"#primitive-arrays"},{include:"#object-types"}]},values:{patterns:[{include:"#language-variables"},{include:"#strings"},{include:"#numbers"},{include:"#constants"},{include:"#types"},{include:"#structures"},{include:"#method-call"}]},variables:{applyEndPatternLast:1,patterns:[{begin:/(?=(?:(?:private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final)|def|(?:void|boolean|byte|char|short|int|float|long|double)|(?:[a-z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*[A-Z]+[\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}+[\p{L}\p{M}\p{N}\p{Pc}\p{Nd}_\<\>\[\]\,\p{space}]+(?:=|(?=\n?$)))/dgv,end:/;|(?=\n?$)/dgv,name:"meta.definition.variable.groovy",patterns:[{match:/\p{space}/dgv},{captures:{"1":{name:"constant.variable.groovy"}},match:/([A-Z_0-9]+)\p{space}+(?==)/dgv},{captures:{"1":{name:"meta.definition.variable.name.groovy"}},match:/([\p{L}\p{M}\p{N}\p{Pc}][^\p{space}\,]*)\p{space}+(?==)/dgv},{begin:/=/dgv,beginCaptures:{"0":{name:"keyword.operator.assignment.groovy"}},end:/(?=\n?$)/dgv,patterns:[{include:"#groovy-code"}]},{captures:{"1":{name:"meta.definition.variable.name.groovy"}},match:/([\p{L}\p{M}\p{N}\p{Pc}][^\p{space}\=]*)(?=\p{space}*((?=\n?$)|;))/dgv},{include:"#groovy-code"}]}]}},scopeName:"source.groovy",embeddedLangs:undefined,aliases:undefined})
|
|
1
|
+
const lang = Object.freeze({displayName:"Groovy",name:"groovy",patterns:[{captures:{"1":{name:"punctuation.definition.comment.groovy"}},match:/^(#!)[^\n]+(?=\n?$)\n/dgv,name:"comment.line.hashbang.groovy"},{captures:{"1":{name:"keyword.other.package.groovy"},"2":{name:"storage.modifier.package.groovy"},"3":{name:"punctuation.terminator.groovy"}},match:/^\p{space}*(package)\b(?:\p{space}*([^ \;\$]+)\p{space}*(;)?)?/dgv,name:"meta.package.groovy"},{begin:/(import static)\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.other.import.static.groovy"}},captures:{"1":{name:"keyword.other.import.groovy"},"2":{name:"storage.modifier.import.groovy"},"3":{name:"punctuation.terminator.groovy"}},contentName:"storage.modifier.import.groovy",end:/\p{space}*(?:(?=\n?$)|(?=%>)(;))/dgv,endCaptures:{"1":{name:"punctuation.terminator.groovy"}},name:"meta.import.groovy",patterns:[{match:/\./dgv,name:"punctuation.separator.groovy"},{match:/\p{space}/dgv,name:"invalid.illegal.character_not_allowed_here.groovy"}]},{begin:/(import)\b\p{space}*/dgv,beginCaptures:{"1":{name:"keyword.other.import.groovy"}},captures:{"1":{name:"keyword.other.import.groovy"},"2":{name:"storage.modifier.import.groovy"},"3":{name:"punctuation.terminator.groovy"}},contentName:"storage.modifier.import.groovy",end:/\p{space}*(?:(?=\n?$)|(?=%>)|(;))/dgv,endCaptures:{"1":{name:"punctuation.terminator.groovy"}},name:"meta.import.groovy",patterns:[{match:/\./dgv,name:"punctuation.separator.groovy"},{match:/\p{space}/dgv,name:"invalid.illegal.character_not_allowed_here.groovy"}]},{captures:{"1":{name:"keyword.other.import.groovy"},"2":{name:"keyword.other.import.static.groovy"},"3":{name:"storage.modifier.import.groovy"},"4":{name:"punctuation.terminator.groovy"}},match:/^\p{space}*(import)\p{space}+(static)\p{space}+\b(?:\p{space}*([^ \;\$]+)\p{space}*(;)?)?/dgv,name:"meta.import.groovy"},{include:"#groovy"}],repository:{annotations:{patterns:[{begin:/(?<!\.)(@[^ \(]+)(\()/dgv,beginCaptures:{"1":{name:"storage.type.annotation.groovy"},"2":{name:"punctuation.definition.annotation-arguments.begin.groovy"}},end:/(\))/dgv,endCaptures:{"1":{name:"punctuation.definition.annotation-arguments.end.groovy"}},name:"meta.declaration.annotation.groovy",patterns:[{captures:{"1":{name:"constant.other.key.groovy"},"2":{name:"keyword.operator.assignment.groovy"}},match:/([\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}*(=)/dgv},{include:"#values"},{match:/,/dgv,name:"punctuation.definition.seperator.groovy"}]},{match:/(?<!\.)@\P{space}+/dgv,name:"storage.type.annotation.groovy"}]},"anonymous-classes-and-new":{begin:/\bnew\b/dgv,beginCaptures:{"0":{name:"keyword.control.new.groovy"}},end:/(?<=[\)\]])(?!\p{space}*\{)|(?<=\})|(?=;)|(?=\n?$)/dgv,patterns:[{begin:/([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(?=\[)/dgv,beginCaptures:{"1":{name:"storage.type.groovy"}},end:/\}|(?=\p{space}*[\,\;\)])|(?=\n?$)/dgv,patterns:[{begin:/\[/dgv,end:/\]/dgv,patterns:[{include:"#groovy"}]},{begin:/\{/dgv,end:/(?=\})/dgv,patterns:[{include:"#groovy"}]}]},{begin:/(?=[\p{L}\p{M}\p{N}\p{Pc}][^\n]*\(?)/dgv,end:/(?<=\))|(?=\n?$)/dgv,patterns:[{include:"#object-types"},{begin:/\(/dgv,beginCaptures:{"1":{name:"storage.type.groovy"}},end:/\)/dgv,patterns:[{include:"#groovy"}]}]},{begin:/\{/dgv,end:/\}/dgv,name:"meta.inner-class.groovy",patterns:[{include:"#class-body"}]}]},braces:{begin:/\{/dgv,end:/\}/dgv,patterns:[{include:"#groovy-code"}]},class:{begin:/(?=[\p{L}\p{M}\p{N}\p{Pc}]?[\p{L}\p{M}\p{N}\p{Pc}\p{space}]*(?:class|@?interface|enum)\p{space}+[\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,end:/\}/dgv,endCaptures:{"0":{name:"punctuation.section.class.end.groovy"}},name:"meta.definition.class.groovy",patterns:[{include:"#storage-modifiers"},{include:"#comments"},{captures:{"1":{name:"storage.modifier.groovy"},"2":{name:"entity.name.type.class.groovy"}},match:/(class|@?interface|enum)\p{space}+([\p{L}\p{M}\p{N}\p{Pc}]+)/dgv,name:"meta.class.identifier.groovy"},{begin:/extends/dgv,beginCaptures:{"0":{name:"storage.modifier.extends.groovy"}},end:/(?=\{|implements)/dgv,name:"meta.definition.class.inherited.classes.groovy",patterns:[{include:"#object-types-inherited"},{include:"#comments"}]},{begin:/(implements)\p{space}/dgv,beginCaptures:{"1":{name:"storage.modifier.implements.groovy"}},end:/(?=\p{space}*extends|\{)/dgv,name:"meta.definition.class.implemented.interfaces.groovy",patterns:[{include:"#object-types-inherited"},{include:"#comments"}]},{begin:/\{/dgv,end:/(?=\})/dgv,name:"meta.class.body.groovy",patterns:[{include:"#class-body"}]}]},"class-body":{patterns:[{include:"#enum-values"},{include:"#constructors"},{include:"#groovy"}]},closures:{begin:/\{(?=[^\n]*?->)/dgv,end:/\}/dgv,patterns:[{begin:/(?<=\{)(?=[^\}]*?->)/dgv,end:/->/dgv,endCaptures:{"0":{name:"keyword.operator.groovy"}},patterns:[{begin:/(?!->)/dgv,end:/(?=->)/dgv,name:"meta.closure.parameters.groovy",patterns:[{begin:/(?!,|->)/dgv,end:/(?=,|->)/dgv,name:"meta.closure.parameter.groovy",patterns:[{begin:/=/dgv,beginCaptures:{"0":{name:"keyword.operator.assignment.groovy"}},end:/(?=,|->)/dgv,name:"meta.parameter.default.groovy",patterns:[{include:"#groovy-code"}]},{include:"#parameters"}]}]}]},{begin:/(?=[^\}])/dgv,end:/(?=\})/dgv,patterns:[{include:"#groovy-code"}]}]},"comment-block":{begin:/\/\*/dgv,captures:{"0":{name:"punctuation.definition.comment.groovy"}},end:/\*\//dgv,name:"comment.block.groovy"},comments:{patterns:[{captures:{"0":{name:"punctuation.definition.comment.groovy"}},match:/\/\*\*\//dgv,name:"comment.block.empty.groovy"},{include:"text.html.javadoc"},{include:"#comment-block"},{captures:{"1":{name:"punctuation.definition.comment.groovy"}},match:/(\/\/)[^\n]*(?=\n?$)\n?/dgv,name:"comment.line.double-slash.groovy"}]},constants:{patterns:[{match:/\b([A-Z][A-Z0-9_]+)\b/dgv,name:"constant.other.groovy"},{match:/\b(true|false|null)\b/dgv,name:"constant.language.groovy"}]},constructors:{applyEndPatternLast:1,begin:/(?<=;|^)(?=\p{space}*(?:(?:private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final)\p{space}+)*[A-Z][\p{L}\p{M}\p{N}\p{Pc}]*\()/dgv,end:/\}/dgv,patterns:[{include:"#method-content"}]},"enum-values":{patterns:[{begin:/(?<=;|^)\p{space}*\b([A-Z0-9_]+)(?=\p{space}*(?:[\,\;\}\(]|(?=\n?$)))/dgv,beginCaptures:{"1":{name:"constant.enum.name.groovy"}},end:/[\,\;]|(?=\})|^(?!\p{space}*[\p{L}\p{M}\p{N}\p{Pc}]+\p{space}*(?:,|(?=\n?$)))/dgv,patterns:[{begin:/\(/dgv,end:/\)/dgv,name:"meta.enum.value.groovy",patterns:[{match:/,/dgv,name:"punctuation.definition.seperator.parameter.groovy"},{include:"#groovy-code"}]}]}]},groovy:{patterns:[{include:"#comments"},{include:"#class"},{include:"#variables"},{include:"#methods"},{include:"#annotations"},{include:"#groovy-code"}]},"groovy-code":{patterns:[{include:"#groovy-code-minus-map-keys"},{include:"#map-keys"}]},"groovy-code-minus-map-keys":{patterns:[{include:"#comments"},{include:"#annotations"},{include:"#support-functions"},{include:"#keyword-language"},{include:"#values"},{include:"#anonymous-classes-and-new"},{include:"#keyword-operator"},{include:"#types"},{include:"#storage-modifiers"},{include:"#parens"},{include:"#closures"},{include:"#braces"}]},keyword:{patterns:[{include:"#keyword-operator"},{include:"#keyword-language"}]},"keyword-language":{patterns:[{match:/\b(try|catch|finally|throw)\b/dgv,name:"keyword.control.exception.groovy"},{match:/\b((?<!\.)(?:return|break|continue|default|do|while|for|switch|if|else))\b/dgv,name:"keyword.control.groovy"},{begin:/\bcase\b/dgv,beginCaptures:{"0":{name:"keyword.control.groovy"}},end:/:/dgv,endCaptures:{"0":{name:"punctuation.definition.case-terminator.groovy"}},name:"meta.case.groovy",patterns:[{include:"#groovy-code-minus-map-keys"}]},{begin:/\b(assert)\p{space}/dgv,beginCaptures:{"1":{name:"keyword.control.assert.groovy"}},end:/(?=\n?$)|[\;\}]/dgv,name:"meta.declaration.assertion.groovy",patterns:[{match:/:/dgv,name:"keyword.operator.assert.expression-seperator.groovy"},{include:"#groovy-code-minus-map-keys"}]},{match:/\b(throws)\b/dgv,name:"keyword.other.throws.groovy"}]},"keyword-operator":{patterns:[{match:/\b(as)\b/dgv,name:"keyword.operator.as.groovy"},{match:/\b(in)\b/dgv,name:"keyword.operator.in.groovy"},{match:/\?:/dgv,name:"keyword.operator.elvis.groovy"},{match:/\*:/dgv,name:"keyword.operator.spreadmap.groovy"},{match:/\.\./dgv,name:"keyword.operator.range.groovy"},{match:/->/dgv,name:"keyword.operator.arrow.groovy"},{match:/<</dgv,name:"keyword.operator.leftshift.groovy"},{match:/(?<=\P{space})\.(?=\P{space})/dgv,name:"keyword.operator.navigation.groovy"},{match:/(?<=\P{space})\?\.(?=\P{space})/dgv,name:"keyword.operator.safe-navigation.groovy"},{begin:/\?/dgv,beginCaptures:{"0":{name:"keyword.operator.ternary.groovy"}},end:/(?=(?=\n?$)|[\)\}\]])/dgv,name:"meta.evaluation.ternary.groovy",patterns:[{match:/:/dgv,name:"keyword.operator.ternary.expression-seperator.groovy"},{include:"#groovy-code-minus-map-keys"}]},{match:/==~/dgv,name:"keyword.operator.match.groovy"},{match:/=~/dgv,name:"keyword.operator.find.groovy"},{match:/\b(instanceof)\b/dgv,name:"keyword.operator.instanceof.groovy"},{match:/(===|==|!=|<=|>=|<=>|<>|[\<\>]|<<)/dgv,name:"keyword.operator.comparison.groovy"},{match:/=/dgv,name:"keyword.operator.assignment.groovy"},{match:/(--|\+\+)/dgv,name:"keyword.operator.increment-decrement.groovy"},{match:/([\-\+\*\/\%])/dgv,name:"keyword.operator.arithmetic.groovy"},{match:/(!|&&|\|\|)/dgv,name:"keyword.operator.logical.groovy"}]},"language-variables":{patterns:[{match:/\b(this|super)\b/dgv,name:"variable.language.groovy"}]},"map-keys":{patterns:[{captures:{"1":{name:"constant.other.key.groovy"},"2":{name:"punctuation.definition.seperator.key-value.groovy"}},match:/([\p{L}\p{M}\p{N}\p{Pc}]+)\p{space}*(:)/dgv}]},"method-call":{begin:/([\p{L}\p{M}\p{N}\p{Pc}\$]+)(\()/dgv,beginCaptures:{"1":{name:"meta.method.groovy"},"2":{name:"punctuation.definition.method-parameters.begin.groovy"}},end:/\)/dgv,endCaptures:{"0":{name:"punctuation.definition.method-parameters.end.groovy"}},name:"meta.method-call.groovy",patterns:[{match:/,/dgv,name:"punctuation.definition.seperator.parameter.groovy"},{include:"#groovy-code"}]},"method-content":{patterns:[{match:/\p{space}/dgv},{include:"#annotations"},{begin:/(?=[\p{L}\p{M}\p{N}\p{Pc}\<][^\(]*\p{space}+[\p{L}\p{M}\p{N}\p{Pc}\$\<]+\p{space}*\()/dgv,end:/(?=[\p{L}\p{M}\p{N}\p{Pc}\$]+\p{space}*\()/dgv,name:"meta.method.return-type.java",patterns:[{include:"#storage-modifiers"},{include:"#types"}]},{begin:/([\p{L}\p{M}\p{N}\p{Pc}\$]+)\p{space}*\(/dgv,beginCaptures:{"1":{name:"entity.name.function.java"}},end:/\)/dgv,name:"meta.definition.method.signature.java",patterns:[{begin:/(?=[^\)])/dgv,end:/(?=\))/dgv,name:"meta.method.parameters.groovy",patterns:[{begin:/(?=[^\,\)])/dgv,end:/(?=[\,\)])/dgv,name:"meta.method.parameter.groovy",patterns:[{match:/,/dgv,name:"punctuation.definition.separator.groovy"},{begin:/=/dgv,beginCaptures:{"0":{name:"keyword.operator.assignment.groovy"}},end:/(?=[\,\)])/dgv,name:"meta.parameter.default.groovy",patterns:[{include:"#groovy-code"}]},{include:"#parameters"}]}]}]},{begin:/(?=<)/dgv,end:/(?=\p{space})/dgv,name:"meta.method.paramerised-type.groovy",patterns:[{begin:/</dgv,end:/>/dgv,name:"storage.type.parameters.groovy",patterns:[{include:"#types"},{match:/,/dgv,name:"punctuation.definition.seperator.groovy"}]}]},{begin:/throws/dgv,beginCaptures:{"0":{name:"storage.modifier.groovy"}},end:/(?=[\{\;])|^(?=\p{space}*(?:[^\{\p{space}]|(?=\n?$)))/dgv,name:"meta.throwables.groovy",patterns:[{include:"#object-types"}]},{begin:/\{/dgv,end:/(?=\})/dgv,name:"meta.method.body.java",patterns:[{include:"#groovy-code"}]}]},methods:{applyEndPatternLast:1,begin:/(?<=;|^|\{)(?=\p{space}*(?:(?:private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final)|def|(?:(?:void|boolean|byte|char|short|int|float|long|double)|@?(?:[a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*[A-Z]+[\p{L}\p{M}\p{N}\p{Pc}]*)[\[\]]*(?:<[^\n]*>)?)\p{space}+([^\=]+\p{space}+)?[\p{L}\p{M}\p{N}\p{Pc}]+\p{space}*\()/dgv,end:/\}|(?=[^\{])/dgv,name:"meta.definition.method.groovy",patterns:[{include:"#method-content"}]},nest_curly:{begin:/\{/dgv,captures:{"0":{name:"punctuation.section.scope.groovy"}},end:/\}/dgv,patterns:[{include:"#nest_curly"}]},numbers:{patterns:[{match:/((0([xX])\p{AHex}*)|([\+\-])?\b(([0-9]+\.?[0-9]*)|(\.[0-9]+))(([eE])([\+\-])?[0-9]+)?)([LlFfUuDdg]|UL|ul)?\b/dgv,name:"constant.numeric.groovy"}]},"object-types":{patterns:[{begin:/\b((?:[a-z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*(?:[A-Z]+[\p{L}\p{M}\p{N}\p{Pc}]*[a-z]+[\p{L}\p{M}\p{N}\p{Pc}]*|UR[LI]))</dgv,end:/[\>[^\p{L}\p{M}\p{N}\p{Pc}\p{space}\,\?\<\[\]]]/dgv,name:"storage.type.generic.groovy",patterns:[{include:"#object-types"},{begin:/</dgv,end:/[\>[^\p{L}\p{M}\p{N}\p{Pc}\p{space}\,\[\]\<]]/dgv,name:"storage.type.generic.groovy"}]},{begin:/\b((?:[a-z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*[A-Z]+[\p{L}\p{M}\p{N}\p{Pc}]*[a-z]+[\p{L}\p{M}\p{N}\p{Pc}]*)(?=\[)/dgv,end:/(?=[^\]\p{space}])/dgv,name:"storage.type.object.array.groovy",patterns:[{begin:/\[/dgv,end:/\]/dgv,patterns:[{include:"#groovy"}]}]},{match:/\b(?:[a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*(?:[A-Z]+[\p{L}\p{M}\p{N}\p{Pc}]*[a-z]+[\p{L}\p{M}\p{N}\p{Pc}]*|UR[LI])\b/dgv,name:"storage.type.groovy"}]},"object-types-inherited":{patterns:[{begin:/\b((?:[a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*[A-Z]+[\p{L}\p{M}\p{N}\p{Pc}]*[a-z]+[\p{L}\p{M}\p{N}\p{Pc}]*)</dgv,end:/[\>[^\p{L}\p{M}\p{N}\p{Pc}\p{space}\,\?\<\[\]]]/dgv,name:"entity.other.inherited-class.groovy",patterns:[{include:"#object-types-inherited"},{begin:/</dgv,end:/[\>[^\p{L}\p{M}\p{N}\p{Pc}\p{space}\,\[\]\<]]/dgv,name:"storage.type.generic.groovy"}]},{captures:{"1":{name:"keyword.operator.dereference.groovy"}},match:/\b(?:[a-zA-Z][\p{L}\p{M}\p{N}\p{Pc}]*(\.))*[A-Z]+[\p{L}\p{M}\p{N}\p{Pc}]*[a-z]+[\p{L}\p{M}\p{N}\p{Pc}]*\b/dgv,name:"entity.other.inherited-class.groovy"}]},parameters:{patterns:[{include:"#annotations"},{include:"#storage-modifiers"},{include:"#types"},{match:/[\p{L}\p{M}\p{N}\p{Pc}]+/dgv,name:"variable.parameter.method.groovy"}]},parens:{begin:/\(/dgv,end:/\)/dgv,patterns:[{include:"#groovy-code"}]},"primitive-arrays":{patterns:[{match:/\b(?:void|boolean|byte|char|short|int|float|long|double)(\[\])*\b/dgv,name:"storage.type.primitive.array.groovy"}]},"primitive-types":{patterns:[{match:/\b(?:void|boolean|byte|char|short|int|float|long|double)\b/dgv,name:"storage.type.primitive.groovy"}]},regexp:{patterns:[{begin:/\/(?=[^\/]+\/([^\>]|(?=\n?$)))/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.regexp.begin.groovy"}},end:/\//dgv,endCaptures:{"0":{name:"punctuation.definition.string.regexp.end.groovy"}},name:"string.regexp.groovy",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.groovy"}]},{begin:/~"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.regexp.begin.groovy"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.regexp.end.groovy"}},name:"string.regexp.compiled.groovy",patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.groovy"}]}]},"storage-modifiers":{patterns:[{match:/\b(p(?:rivate|rotected|ublic))\b/dgv,name:"storage.modifier.access-control.groovy"},{match:/\b(static)\b/dgv,name:"storage.modifier.static.groovy"},{match:/\b(final)\b/dgv,name:"storage.modifier.final.groovy"},{match:/\b(native|synchronized|abstract|threadsafe|transient)\b/dgv,name:"storage.modifier.other.groovy"}]},"string-quoted-double":{begin:/"/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.groovy"}},end:/"/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.groovy"}},name:"string.quoted.double.groovy",patterns:[{include:"#string-quoted-double-contents"}]},"string-quoted-double-contents":{patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.groovy"},{applyEndPatternLast:1,begin:/\$[\p{L}\p{M}\p{N}\p{Pc}]/dgv,end:/(?=[^\p{L}\p{M}\p{N}\p{Pc}])/dgv,name:"variable.other.interpolated.groovy",patterns:[{match:/[\p{L}\p{M}\p{N}\p{Pc}]/dgv,name:"variable.other.interpolated.groovy"},{match:/\./dgv,name:"keyword.other.dereference.groovy"}]},{begin:/\$\{/dgv,captures:{"0":{name:"punctuation.section.embedded.groovy"}},end:/\}/dgv,name:"source.groovy.embedded.source",patterns:[{include:"#nest_curly"}]}]},"string-quoted-double-multiline":{begin:/"""/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.groovy"}},end:/"""/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.groovy"}},name:"string.quoted.double.multiline.groovy",patterns:[{include:"#string-quoted-double-contents"}]},"string-quoted-single":{begin:/'/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.groovy"}},end:/'/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.groovy"}},name:"string.quoted.single.groovy",patterns:[{include:"#string-quoted-single-contents"}]},"string-quoted-single-contents":{patterns:[{match:/\\[^\n]/dgv,name:"constant.character.escape.groovy"}]},"string-quoted-single-multiline":{begin:/'''/dgv,beginCaptures:{"0":{name:"punctuation.definition.string.begin.groovy"}},end:/'''/dgv,endCaptures:{"0":{name:"punctuation.definition.string.end.groovy"}},name:"string.quoted.single.multiline.groovy",patterns:[{include:"#string-quoted-single-contents"}]},strings:{patterns:[{include:"#string-quoted-double-multiline"},{include:"#string-quoted-single-multiline"},{include:"#string-quoted-double"},{include:"#string-quoted-single"},{include:"#regexp"}]},structures:{begin:/\[/dgv,beginCaptures:{"0":{name:"punctuation.definition.structure.begin.groovy"}},end:/\]/dgv,endCaptures:{"0":{name:"punctuation.definition.structure.end.groovy"}},name:"meta.structure.groovy",patterns:[{include:"#groovy-code"},{match:/,/dgv,name:"punctuation.definition.separator.groovy"}]},"support-functions":{patterns:[{match:/\b(?:sprintf|print(?:f|ln)?)\b/dgv,name:"support.function.print.groovy"},{match:/\b(?:shouldFail|fail(?:NotEquals)?|ass(?:ume|ert(?:S(?:cript|ame)|N(?:ot(?:Same|Null)|ull)|Contains|T(?:hat|oString|rue)|Inspect|Equals|False|Length|ArrayEquals)))\b/dgv,name:"support.function.testing.groovy"}]},types:{patterns:[{match:/\b(def)\b/dgv,name:"storage.type.def.groovy"},{include:"#primitive-types"},{include:"#primitive-arrays"},{include:"#object-types"}]},values:{patterns:[{include:"#language-variables"},{include:"#strings"},{include:"#numbers"},{include:"#constants"},{include:"#types"},{include:"#structures"},{include:"#method-call"}]},variables:{applyEndPatternLast:1,patterns:[{begin:/(?=(?:(?:private|protected|public|native|synchronized|abstract|threadsafe|transient|static|final)|def|(?:void|boolean|byte|char|short|int|float|long|double)|(?:[a-z][\p{L}\p{M}\p{N}\p{Pc}]*\.)*[A-Z]+[\p{L}\p{M}\p{N}\p{Pc}]*)\p{space}+[\p{L}\p{M}\p{N}\p{Pc}\p{Nd}_\<\>\[\]\,\p{space}]+(?:=|(?=\n?$)))/dgv,end:/;|(?=\n?$)/dgv,name:"meta.definition.variable.groovy",patterns:[{match:/\p{space}/dgv},{captures:{"1":{name:"constant.variable.groovy"}},match:/([A-Z_0-9]+)\p{space}+(?==)/dgv},{captures:{"1":{name:"meta.definition.variable.name.groovy"}},match:/([\p{L}\p{M}\p{N}\p{Pc}][^\p{space}\,]*)\p{space}+(?==)/dgv},{begin:/=/dgv,beginCaptures:{"0":{name:"keyword.operator.assignment.groovy"}},end:/(?=\n?$)/dgv,patterns:[{include:"#groovy-code"}]},{captures:{"1":{name:"meta.definition.variable.name.groovy"}},match:/([\p{L}\p{M}\p{N}\p{Pc}][^\p{space}\=]*)(?=\p{space}*((?=\n?$)|;))/dgv},{include:"#groovy-code"}]}]}},scopeName:"source.groovy",embeddedLangs:undefined,aliases:undefined})
|
|
2
2
|
|
|
3
3
|
export default [
|
|
4
4
|
lang
|