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.
- checksums.yaml +4 -4
- data/grammars/documentation.markdown.injection.haxe.json +1 -1
- data/grammars/inline.hbs.json +1 -1
- data/grammars/inline.template.json +1 -1
- data/grammars/markdown.glimmer.codeblock.json +1 -1
- data/grammars/markdown.goose.codeblock.json +1 -0
- data/grammars/markdown.nextflow.codeblock.json +1 -0
- data/grammars/markdown.ocaml.codeblock.json +1 -0
- data/grammars/markdown.reason.codeblock.json +1 -0
- data/grammars/markdown.roc.codeblock.json +1 -0
- data/grammars/nextflow.interpolation.injection.json +1 -0
- data/grammars/nextflow.script.injection.json +1 -0
- data/grammars/source.abl.json +1 -1
- data/grammars/source.abnf.json +1 -1
- data/grammars/source.action.menhir.json +1 -0
- data/grammars/source.ampl.dat.json +1 -0
- data/grammars/source.ampl.json +1 -1
- data/grammars/source.apl.json +1 -1
- data/grammars/source.armasm.json +1 -0
- data/grammars/source.astylerc.json +1 -0
- data/grammars/source.atd.json +1 -0
- data/grammars/source.avisynth.json +1 -0
- data/grammars/source.baml.json +1 -1
- data/grammars/source.bbcbasic.json +1 -0
- data/grammars/source.bend.json +1 -0
- data/grammars/source.c++.json +1 -1
- data/grammars/source.c.json +1 -1
- data/grammars/source.c3.json +1 -1
- data/grammars/source.carbon.json +1 -1
- data/grammars/source.cedar.json +1 -0
- data/grammars/source.cj.json +1 -1
- data/grammars/source.clarion.json +1 -1
- data/grammars/source.cmake.json +1 -1
- data/grammars/source.cmhg.json +1 -0
- data/grammars/source.compact.json +1 -0
- data/grammars/source.cram.json +1 -0
- data/grammars/source.cs.json +1 -1
- data/grammars/source.cue.json +1 -1
- data/grammars/source.dart.json +1 -1
- data/grammars/source.dataflex.json +1 -0
- data/grammars/source.dax.json +1 -0
- data/grammars/source.ditroff.desc.json +1 -1
- data/grammars/source.dm.json +1 -1
- data/grammars/source.dml.json +1 -0
- data/grammars/source.dune-project.json +1 -0
- data/grammars/source.dune-workspace.json +1 -0
- data/grammars/source.dune.json +1 -1
- data/grammars/source.easycrypt.json +1 -0
- data/grammars/source.emacs.lisp.json +1 -1
- data/grammars/source.env-spec.json +1 -0
- data/grammars/source.erlang.json +1 -1
- data/grammars/source.ets.json +1 -0
- data/grammars/source.fpp.json +1 -1
- data/grammars/source.gjs.json +1 -1
- data/grammars/source.goose.json +1 -0
- data/grammars/source.graphql.json +1 -1
- data/grammars/source.gts.json +1 -1
- data/grammars/source.ice.json +1 -1
- data/grammars/source.ifc.json +1 -0
- data/grammars/source.indent-profile.json +1 -0
- data/grammars/source.jac.json +1 -1
- data/grammars/source.julia.console.json +1 -1
- data/grammars/source.kerml.json +1 -0
- data/grammars/source.liquidsoap.json +1 -1
- data/grammars/source.lsf.json +1 -0
- data/grammars/source.luau.json +1 -1
- data/grammars/source.lumscript.json +1 -0
- data/grammars/source.m2.json +1 -1
- data/grammars/source.maple.json +1 -0
- data/grammars/source.metafont.json +1 -0
- data/grammars/source.metapost.json +1 -0
- data/grammars/source.mo.json +1 -1
- data/grammars/source.moonbit.config.json +1 -1
- data/grammars/source.moonbit.json +1 -1
- data/grammars/source.nextflow-config.json +1 -0
- data/grammars/source.nextflow-groovy.json +1 -1
- data/grammars/source.nextflow-log.json +1 -0
- data/grammars/source.nextflow.json +1 -1
- data/grammars/source.nim.json +1 -1
- data/grammars/source.nushell.json +1 -1
- data/grammars/source.ocaml.META.json +1 -0
- data/grammars/source.ocaml.interface.json +1 -0
- data/grammars/source.ocaml.json +1 -1
- data/grammars/source.ocaml.menhir.json +1 -0
- data/grammars/source.ocaml.merlin.json +1 -0
- data/grammars/source.ocaml.mlx.json +1 -0
- data/grammars/source.ocaml.oasis.json +1 -0
- data/grammars/source.ocaml.ocamlbuild.json +1 -0
- data/grammars/source.ocaml.ocamldoc.json +1 -0
- data/grammars/source.ocaml.ocamlformat.json +1 -0
- data/grammars/source.ocaml.ocamllex.json +1 -0
- data/grammars/source.ocaml.opam-install.json +1 -0
- data/grammars/source.ocaml.opam.json +1 -0
- data/grammars/source.pkl.json +1 -1
- data/grammars/source.pl.json +1 -1
- data/grammars/source.prisma.json +1 -1
- data/grammars/source.quint.json +1 -1
- data/grammars/source.rascript.json +1 -1
- data/grammars/source.reason.json +1 -1
- data/grammars/source.roc.json +1 -1
- data/grammars/source.ron.json +1 -1
- data/grammars/source.rpgle.json +1 -1
- data/grammars/source.rpm-spec.json +1 -1
- data/grammars/source.skip.json +1 -0
- data/grammars/source.skript.json +1 -0
- data/grammars/source.slice.json +1 -1
- data/grammars/source.smithy.json +1 -1
- data/grammars/source.stim.json +1 -1
- data/grammars/source.surrealql.json +1 -1
- data/grammars/source.sysml.json +1 -0
- data/grammars/source.tablegen.json +1 -0
- data/grammars/source.tsp.json +1 -1
- data/grammars/source.tsq.json +1 -0
- data/grammars/source.tsrx.json +1 -0
- data/grammars/source.uiua.json +1 -0
- data/grammars/source.veryl.json +1 -0
- data/grammars/source.vespaSchema.json +1 -1
- data/grammars/source.vespaYQL.json +1 -0
- data/grammars/source.vim9.json +1 -0
- data/grammars/source.wdl.json +1 -1
- data/grammars/source.webassembly.json +1 -1
- data/grammars/source.wesl.json +1 -1
- data/grammars/text.html.cobmd.json +1 -0
- data/grammars/text.html.ember-handlebars.json +1 -1
- data/grammars/text.html.jte.json +1 -1
- data/grammars/text.html.markdown.json +1 -0
- data/grammars/text.html.pfm.json +1 -0
- data/grammars/text.html.ss.json +1 -0
- data/grammars/text.html.statamic.json +1 -1
- data/grammars/text.marko.json +1 -1
- data/grammars/text.roff.json +1 -1
- data/grammars/text.valve-cfg.json +1 -1
- data/grammars/text.vtt.json +1 -1
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/blob_helper.rb +2 -2
- data/lib/linguist/documentation.yml +3 -0
- data/lib/linguist/generated.rb +75 -8
- data/lib/linguist/generic.yml +2 -0
- data/lib/linguist/heuristics.yml +159 -57
- data/lib/linguist/languages.yml +382 -6
- data/lib/linguist/languages_data.rb +318 -16
- data/lib/linguist/samples_data.rb +201875 -193977
- data/lib/linguist/strategy/modeline.rb +0 -1
- data/lib/linguist/vendor.yml +3 -0
- metadata +65 -7
- data/grammars/source.camlp4.ocaml.json +0 -1
- data/grammars/source.ocamllex.json +0 -1
- data/grammars/source.ocamlyacc.json +0 -1
- data/grammars/source.reason.hover.type.json +0 -1
- data/grammars/source.scm.json +0 -1
- data/grammars/text.plain.json +0 -1
data/grammars/source.pkl.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"Pkl","scopeName":"source.pkl","patterns":[{"match":"(?x:\n \\b\n (module)\n \\s+\n (\n [\\p{L}_$][\\p{L}0-9_$]*(?:\\.[\\p{L}_$][\\p{L}0-9_$]*)*\n )\n)","captures":{"1":{"name":"variable.language.pkl"},"2":{"name":"variable.other.module.pkl"}}},{"match":"(?x:\n (typealias)\n \\s+\n ([\\p{L}_$][\\p{L}0-9_$]*)\n \\s*(=)\\s*\n ((?x:\n (?x:\n [\\p{L}_$][\\p{L}0-9_$]* # ident\n \\s*\n (?:\u003c[^\u003e]*\u003e)? # optional type parameters\n \\s*\n (?:\\([^)]*\\))? # optional constraint (this is an approximation)\n \\s*\n \\?? # optional nulability indicator\n)\n \\s*\n (\\|\\s*(?x:\n [\\p{L}_$][\\p{L}0-9_$]* # ident\n \\s*\n (?:\u003c[^\u003e]*\u003e)? # optional type parameters\n \\s*\n (?:\\([^)]*\\))? # optional constraint (this is an approximation)\n \\s*\n \\?? # optional nulability indicator\n))*\n))\n)","captures":{"1":{"name":"keyword.class.pkl"},"2":{"name":"entity.name.type.pkl"},"3":{"name":"punctuation.pkl"},"4":{"name":"entity.name.type.pkl"}}},{"name":"entity.name.type.pkl","match":"\\b(class)\\s+[\\p{L}_$][\\p{L}0-9_$]*","captures":{"1":{"name":"keyword.class.pkl"}}},{"match":"(?x:\n \\b(for)\n \\s*\\(\n ([\\p{L}_$][\\p{L}0-9_$]*)(?:\\s*,\\s*([\\p{L}_$][\\p{L}0-9_$]*))* # bindings\n \\s+\n (in)\n)","captures":{"1":{"name":"keyword.control.pkl"},"2":{"name":"variable.other.property.pkl"},"3":{"name":"variable.other.property.pkl"},"4":{"name":"storage.modifier.pkl"}}},{"match":"\\b(new)\\s+((?x:\n (?x:\n [\\p{L}_$][\\p{L}0-9_$]* # ident\n \\s*\n (?:\u003c[^\u003e]*\u003e)? # optional type parameters\n \\s*\n (?:\\([^)]*\\))? # optional constraint (this is an approximation)\n \\s*\n \\?? # optional nulability indicator\n)\n \\s*\n (\\|\\s*(?x:\n [\\p{L}_$][\\p{L}0-9_$]* # ident\n \\s*\n (?:\u003c[^\u003e]*\u003e)? # optional type parameters\n \\s*\n (?:\\([^)]*\\))? # optional constraint (this is an approximation)\n \\s*\n \\?? # optional nulability indicator\n))*\n))","captures":{"1":{"name":"keyword.control.pkl"},"2":{"name":"entity.name.type.pkl"}}},{"match":"\\b(function)\\s+([\\p{L}_$][\\p{L}0-9_$]*)","captures":{"1":{"name":"keyword.pkl"},"2":{"name":"variable.other.property.pkl"}}},{"match":"\\b(as)\\s+((?x:\n (?x:\n [\\p{L}_$][\\p{L}0-9_$]* # ident\n \\s*\n (?:\u003c[^\u003e]*\u003e)? # optional type parameters\n \\s*\n (?:\\([^)]*\\))? # optional constraint (this is an approximation)\n \\s*\n \\?? # optional nulability indicator\n)\n \\s*\n (\\|\\s*(?x:\n [\\p{L}_$][\\p{L}0-9_$]* # ident\n \\s*\n (?:\u003c[^\u003e]*\u003e)? # optional type parameters\n \\s*\n (?:\\([^)]*\\))? # optional constraint (this is an approximation)\n \\s*\n \\?? # optional nulability indicator\n))*\n))","captures":{"1":{"name":"keyword.pkl"},"2":{"name":"entity.name.type.pkl"}}},{"name":"constant.character.language.pkl","match":"\\b(true|false|null)\\b"},{"name":"comment.line.pkl","match":"//.*"},{"name":"comment.block.pkl","begin":"/\\*","end":"\\*/"},{"begin":"(?x:\n (\n (?:\\b|\\s*)[\\p{L}_$][\\p{L}0-9_$]* # variable name\n |\n `[^`]+` # quoted variable name\n )\n \\s*\n (:)\n \\s*\n ((?x:\n (?x:\n [\\p{L}_$][\\p{L}0-9_$]* # ident\n \\s*\n (?:\u003c[^\u003e]*\u003e)? # optional type parameters\n \\s*\n (?:\\([^)]*\\))? # optional constraint (this is an approximation)\n \\s*\n \\?? # optional nulability indicator\n)\n \\s*\n (\\|\\s*(?x:\n [\\p{L}_$][\\p{L}0-9_$]* # ident\n \\s*\n (?:\u003c[^\u003e]*\u003e)? # optional type parameters\n \\s*\n (?:\\([^)]*\\))? # optional constraint (this is an approximation)\n \\s*\n \\?? # optional nulability indicator\n))*\n)) # type\n)","end":"\\s*=|,|\\)|^[ \\t]*$","captures":{"1":{"name":"variable.other.property.pkl"},"2":{"name":"punctuation.pkl"},"3":{"name":"entity.name.type.pkl"}}},{"match":"(?x:\n (\n \\b[\\p{L}_$][\\p{L}0-9_$]* # variable name\n |\n `[^`]+` # quoted variable name\n )\n \\s*\n (=)(?!=)\n)","captures":{"1":{"name":"variable.other.property.pkl"},"2":{"name":"punctuation.pkl"}}},{"match":"(:)\\s*((?x:\n (?x:\n [\\p{L}_$][\\p{L}0-9_$]* # ident\n \\s*\n (?:\u003c[^\u003e]*\u003e)? # optional type parameters\n \\s*\n (?:\\([^)]*\\))? # optional constraint (this is an approximation)\n \\s*\n \\?? # optional nulability indicator\n)\n \\s*\n (\\|\\s*(?x:\n [\\p{L}_$][\\p{L}0-9_$]* # ident\n \\s*\n (?:\u003c[^\u003e]*\u003e)? # optional type parameters\n \\s*\n (?:\\([^)]*\\))? # optional constraint (this is an approximation)\n \\s*\n \\?? # optional nulability indicator\n))*\n))","captures":{"1":{"name":"punctuation.pkl"},"2":{"name":"entity.name.type.pkl"}}},{"match":"^\\s*([\\p{L}_$][\\p{L}0-9_$]*)\\s*\\{","captures":{"1":{"name":"variable.other.property.pkl"}}},{"name":"storage.modifier.pkl","match":"\\b(hidden|local|abstract|external|open|in|out|amends|extends|fixed|const)\\b"},{"name":"keyword.pkl","match":"\\b(amends|as|extends|function|is|let|read|read\\?|import|throw|trace)\\b"},{"name":"keyword.control.pkl","match":"\\b(if|else|when|for|import|new)\\b"},{"name":"constant.numeric.hex.pkl","match":"(?x:\n \\b\n 0x(?:[\\da-fA-F][\\da-fA-F_]*[\\da-fA-F]|[\\da-fA-F_])\n \\b\n)"},{"name":"constant.numeric.binary.pkl","match":"(?x:\n \\b\n 0b(?:[0-1][0-1_]*[0-1]|[0-1])\n \\b\n)"},{"name":"constant.numeric.octal.pkl","match":"(?x:\n \\b\n 0o(?:[0-7][0-7_]*[0-7]|[0-7])\n \\b\n)"},{"name":"constant.numeric.decimal.pkl","match":"(?x:\n \\b\n (?:\\d[0-9_]*\\d|\\d)\n \\b\n)"},{"name":"constant.numeric.pkl","match":"(?x:\n \\b\n (?:\n (?:\\d[0-9_]*\\d|\\d)? # 0 or more digits\n \\. # dot literal\n (?:\\d[0-9_]*\\d|\\d) # 1 or more digits\n (?:[eE][+-]?(?:\\d[0-9_]*\\d|\\d))? # optional exponent\n | # OR\n (?:\\d[0-9_]*\\d|\\d) # 1 or more digits\n [eE][+-]?(?:\\d[0-9_]*\\d|\\d) # exponent\n )\n \\b\n)"},{"name":"keyword.operator.pkl","match":"(?x:\n # MATH\n \\+ # add\n |\n - # minus\n |\n \\* # multiply\n |\n / # divide\n |\n ~/ # integer divide\n |\n % # modulo\n |\n \\*\\* # power\n |\n \u003e # greater than\n |\n \u003e= # greater than or equals\n |\n \u003c # less than\n |\n \u003c= # less than or equals\n |\n == # equals\n |\n != # not equals\n\n # LOGICAL\n |\n ! # unary not\n |\n \u0026\u0026 # and\n |\n \\|\\| # or\n |\n\n # MISCELLANEOUS\n \\|\u003e # function pipe\n |\n \\?\\? # nullish coalesce\n |\n !! # non-null assertion\n |\n = # assignment\n |\n -\u003e # lambda arrow\n |\n \\| # type union\n)"},{"name":"variable.language.pkl","match":"\\b(this|module|outer|super)\\b"},{"name":"support.type.pkl","match":"\\b(unknown|never)\\b"},{"name":"meta.brace.pkl","match":"[(){}\\[\\]]"},{"name":"keyword.class.pkl","match":"\\b(class|typealias)\\b"},{"name":"punctuation.pkl","match":"(?x:\n \\.\\? # optional chain\n |\n \\. # member access\n |\n ; # semicolon\n |\n : # colon\n)"},{"name":"entity.name.type.pkl","match":"@[\\p{L}_$][\\p{L}0-9_$]*"},{"name":"string.quoted.triple.0.pkl","begin":"(\"\"\")","end":"(\"\"\")","patterns":[{"name":"constant.character.escape.0.pkl","match":"(?x: # turn on extended mode\n \\\\\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n | # OR\n \\( # interpolation start\n .+? # one or more characters lazily (correct syntax highlighting within here should be provided by semantic tokens)\n \\) # interpolation end\n )\n | # OR\n ( # capture group: invalid escape\n \\\\ # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"captures":{"1":{"name":"punctuation.delimiter.pkl"}}},{"name":"string.quoted.double.0.pkl","begin":"(\")","end":"(?x:\n (\") # string end\n | # OR\n (.?$) # error; unterminated string (flag last character as an error)\n)","patterns":[{"name":"constant.character.escape.0.pkl","match":"(?x: # turn on extended mode\n \\\\\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n | # OR\n \\( # interpolation start\n .+? # one or more characters lazily (correct syntax highlighting within here should be provided by semantic tokens)\n \\) # interpolation end\n )\n | # OR\n ( # capture group: invalid escape\n \\\\ # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"beginCaptures":{"1":{"name":"punctuation.delimiter.pkl"}},"endCaptures":{"1":{"name":"punctuation.delimimter.pkl"},"2":{"name":"invalid.illegal.newline.pkl"}}},{"name":"string.quoted.triple.1.pkl","begin":"(#\"\"\")","end":"(\"\"\"#)","patterns":[{"name":"constant.character.escape.1.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n | # OR\n \\( # interpolation start\n .+? # one or more characters lazily (correct syntax highlighting within here should be provided by semantic tokens)\n \\) # interpolation end\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"captures":{"1":{"name":"punctuation.delimiter.pkl"}}},{"name":"string.quoted.double.1.pkl","begin":"(#\")","end":"(?x:\n (\"\\#) # string end\n | # OR\n (.?$) # error; unterminated string (flag last character as an error)\n)","patterns":[{"name":"constant.character.escape.1.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n | # OR\n \\( # interpolation start\n .+? # one or more characters lazily (correct syntax highlighting within here should be provided by semantic tokens)\n \\) # interpolation end\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"beginCaptures":{"1":{"name":"punctuation.delimiter.pkl"}},"endCaptures":{"1":{"name":"punctuation.delimimter.pkl"},"2":{"name":"invalid.illegal.newline.pkl"}}},{"name":"string.quoted.triple.2.pkl","begin":"(##\"\"\")","end":"(\"\"\"##)","patterns":[{"name":"constant.character.escape.2.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n | # OR\n \\( # interpolation start\n .+? # one or more characters lazily (correct syntax highlighting within here should be provided by semantic tokens)\n \\) # interpolation end\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"captures":{"1":{"name":"punctuation.delimiter.pkl"}}},{"name":"string.quoted.double.2.pkl","begin":"(##\")","end":"(?x:\n (\"\\#\\#) # string end\n | # OR\n (.?$) # error; unterminated string (flag last character as an error)\n)","patterns":[{"name":"constant.character.escape.2.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n | # OR\n \\( # interpolation start\n .+? # one or more characters lazily (correct syntax highlighting within here should be provided by semantic tokens)\n \\) # interpolation end\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"beginCaptures":{"1":{"name":"punctuation.delimiter.pkl"}},"endCaptures":{"1":{"name":"punctuation.delimimter.pkl"},"2":{"name":"invalid.illegal.newline.pkl"}}},{"name":"string.quoted.triple.3.pkl","begin":"(###\"\"\")","end":"(\"\"\"###)","patterns":[{"name":"constant.character.escape.3.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n | # OR\n \\( # interpolation start\n .+? # one or more characters lazily (correct syntax highlighting within here should be provided by semantic tokens)\n \\) # interpolation end\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"captures":{"1":{"name":"punctuation.delimiter.pkl"}}},{"name":"string.quoted.double.3.pkl","begin":"(###\")","end":"(?x:\n (\"\\#\\#\\#) # string end\n | # OR\n (.?$) # error; unterminated string (flag last character as an error)\n)","patterns":[{"name":"constant.character.escape.3.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n | # OR\n \\( # interpolation start\n .+? # one or more characters lazily (correct syntax highlighting within here should be provided by semantic tokens)\n \\) # interpolation end\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"beginCaptures":{"1":{"name":"punctuation.delimiter.pkl"}},"endCaptures":{"1":{"name":"punctuation.delimimter.pkl"},"2":{"name":"invalid.illegal.newline.pkl"}}},{"name":"string.quoted.triple.4.pkl","begin":"(####\"\"\")","end":"(\"\"\"####)","patterns":[{"name":"constant.character.escape.4.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n | # OR\n \\( # interpolation start\n .+? # one or more characters lazily (correct syntax highlighting within here should be provided by semantic tokens)\n \\) # interpolation end\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\#\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"captures":{"1":{"name":"punctuation.delimiter.pkl"}}},{"name":"string.quoted.double.4.pkl","begin":"(####\")","end":"(?x:\n (\"\\#\\#\\#\\#) # string end\n | # OR\n (.?$) # error; unterminated string (flag last character as an error)\n)","patterns":[{"name":"constant.character.escape.4.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n | # OR\n \\( # interpolation start\n .+? # one or more characters lazily (correct syntax highlighting within here should be provided by semantic tokens)\n \\) # interpolation end\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\#\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"beginCaptures":{"1":{"name":"punctuation.delimiter.pkl"}},"endCaptures":{"1":{"name":"punctuation.delimimter.pkl"},"2":{"name":"invalid.illegal.newline.pkl"}}},{"name":"string.quoted.triple.5.pkl","begin":"(#####\"\"\")","end":"(\"\"\"#####)","patterns":[{"name":"constant.character.escape.5.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\\#\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n | # OR\n \\( # interpolation start\n .+? # one or more characters lazily (correct syntax highlighting within here should be provided by semantic tokens)\n \\) # interpolation end\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\#\\#\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"captures":{"1":{"name":"punctuation.delimiter.pkl"}}},{"name":"string.quoted.double.5.pkl","begin":"(#####\")","end":"(?x:\n (\"\\#\\#\\#\\#\\#) # string end\n | # OR\n (.?$) # error; unterminated string (flag last character as an error)\n)","patterns":[{"name":"constant.character.escape.5.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\\#\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n | # OR\n \\( # interpolation start\n .+? # one or more characters lazily (correct syntax highlighting within here should be provided by semantic tokens)\n \\) # interpolation end\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\#\\#\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"beginCaptures":{"1":{"name":"punctuation.delimiter.pkl"}},"endCaptures":{"1":{"name":"punctuation.delimimter.pkl"},"2":{"name":"invalid.illegal.newline.pkl"}}},{"name":"string.quoted.triple.6.pkl","begin":"(######\"\"\")","end":"(\"\"\"######)","patterns":[{"name":"constant.character.escape.6.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\\#\\#\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n | # OR\n \\( # interpolation start\n .+? # one or more characters lazily (correct syntax highlighting within here should be provided by semantic tokens)\n \\) # interpolation end\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\#\\#\\#\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"captures":{"1":{"name":"punctuation.delimiter.pkl"}}},{"name":"string.quoted.double.6.pkl","begin":"(######\")","end":"(?x:\n (\"\\#\\#\\#\\#\\#\\#) # string end\n | # OR\n (.?$) # error; unterminated string (flag last character as an error)\n)","patterns":[{"name":"constant.character.escape.6.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\\#\\#\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n | # OR\n \\( # interpolation start\n .+? # one or more characters lazily (correct syntax highlighting within here should be provided by semantic tokens)\n \\) # interpolation end\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\#\\#\\#\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"beginCaptures":{"1":{"name":"punctuation.delimiter.pkl"}},"endCaptures":{"1":{"name":"punctuation.delimimter.pkl"},"2":{"name":"invalid.illegal.newline.pkl"}}}]}
|
|
1
|
+
{"name":"Pkl","scopeName":"source.pkl","patterns":[{"match":"(?x:\n \\b\n (module)\n \\s+\n (\n (?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`)(?:\\.(?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`))*\n )\n)","captures":{"1":{"name":"variable.language.pkl"},"2":{"name":"variable.other.module.pkl"}}},{"begin":"(?x:\n (typealias)\n \\s+\n ((?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`))\n \\s*(\u003c[^\u003e]*\u003e)? # type parameters\n \\s*(=)\\s*\n)","end":"(?\u003c=[\\p{L}0-9_$\u003e?)\"`])(?\u003c!-\u003e)(?=\\s*(?:[^\\s|\u003c(\\-?]|\\?\\?|-(?!\u003e)|$))|^[ \\t]*$","patterns":[{"include":"#type"}],"beginCaptures":{"1":{"name":"keyword.class.pkl"},"2":{"name":"entity.name.type.pkl"},"3":{"patterns":[{"name":"storage.modifier.pkl","match":"\\b(?:in|out)(?=\\s+(?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`))"},{"name":"entity.name.type.pkl","match":"(?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`)|[\u003c\u003e]"}]},"4":{"name":"keyword.operator.pkl"}}},{"match":"\\b(class)\\s+((?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`))\\s*(\u003c[^\u003e]*\u003e)?","captures":{"1":{"name":"keyword.class.pkl"},"2":{"name":"entity.name.type.pkl"},"3":{"patterns":[{"name":"storage.modifier.pkl","match":"\\b(?:in|out)(?=\\s+(?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`))"},{"name":"entity.name.type.pkl","match":"(?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`)|[\u003c\u003e]"}]}}},{"match":"(?x:\n \\b(for)\n \\s*\\(\n ((?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`))(?:\\s*,\\s*((?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`)))* # bindings\n \\s+\n (in)\n)","captures":{"1":{"name":"keyword.control.pkl"},"2":{"name":"variable.other.property.pkl"},"3":{"name":"variable.other.property.pkl"},"4":{"name":"storage.modifier.pkl"}}},{"begin":"\\b(new)\\s+(?=(?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`))","end":"(?\u003c=[\\p{L}0-9_$\u003e?)\"`])(?\u003c!-\u003e)(?=\\s*(?:[^\\s|\u003c(\\-?]|\\?\\?|-(?!\u003e)|$))|^[ \\t]*$","patterns":[{"include":"#type"}],"beginCaptures":{"1":{"name":"keyword.control.pkl"}}},{"match":"\\b(function)\\s+((?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`))\\s*(\u003c[^\u003e]*\u003e)?","captures":{"1":{"name":"keyword.pkl"},"2":{"name":"variable.function.pkl"},"3":{"patterns":[{"name":"storage.modifier.pkl","match":"\\b(?:in|out)(?=\\s+(?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`))"},{"name":"entity.name.type.pkl","match":"(?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`)|[\u003c\u003e]"}]}}},{"begin":"\\b(as|is)\\s+(?=(?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`))","end":"(?\u003c=[\\p{L}0-9_$\u003e?)\"`])(?\u003c!-\u003e)(?=\\s*(?:[^\\s|\u003c(\\-?]|\\?\\?|-(?!\u003e)|$))|^[ \\t]*$","patterns":[{"include":"#type"}],"beginCaptures":{"1":{"name":"keyword.pkl"}}},{"begin":"\\b(extends)\\s+(?=(?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`))","end":"(?\u003c=[\\p{L}0-9_$\u003e?)\"`])(?\u003c!-\u003e)(?=\\s*(?:[^\\s|\u003c(\\-?]|\\?\\?|-(?!\u003e)|$))|^[ \\t]*$","patterns":[{"include":"#type"}],"beginCaptures":{"1":{"name":"storage.modifier.pkl"}}},{"name":"constant.character.language.pkl","match":"\\b(false|true|null)(?!\\w)"},{"name":"comment.line.pkl","match":"//.*"},{"name":"comment.block.pkl","begin":"/\\*","end":"\\*/"},{"begin":"(?x:\n ((?:\\b|\\s*)(?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`)) # variable name\n \\s*\n (:)\n \\s*\n (?=[\\p{L}_$\"`(]) # start of a type\n)","end":"\\s*(=)|,|\\)|(?\u003c=[\\p{L}0-9_$\u003e?)\"`])(?\u003c!-\u003e)(?=\\s*(?:[^\\s|\u003c(\\-?]|\\?\\?|-(?!\u003e)|$))|^[ \\t]*$","patterns":[{"include":"#type"}],"beginCaptures":{"1":{"name":"variable.other.property.pkl"},"2":{"name":"punctuation.pkl"}},"endCaptures":{"1":{"name":"keyword.operator.pkl"}}},{"match":"(?x:\n (?\u003c![\\p{L}0-9_$])\n ((?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`)) # variable name\n \\s*\n (=)(?!=)\n)","captures":{"1":{"name":"variable.other.property.pkl"},"2":{"name":"keyword.operator.pkl"}}},{"begin":"(:)\\s*(?=[\\p{L}_$\"`(])","end":"(?\u003c=[\\p{L}0-9_$\u003e?)\"`])(?\u003c!-\u003e)(?=\\s*(?:[^\\s|\u003c(\\-?]|\\?\\?|-(?!\u003e)|$))|^[ \\t]*$","patterns":[{"include":"#type"}],"beginCaptures":{"1":{"name":"punctuation.pkl"}}},{"name":"meta.function-call.pkl","begin":"(?x:\n ((?:(?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`)\\s*(?:\\?\\.|\\.)\\s*)*) # receiver, e.g. `qux.`\n (?!(?:if|else|when|for|let|in|is|as|throw|trace|read|import|new|function)(?![\\p{L}0-9_$])) # keywords that look like calls\n ((?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`)) # method name\n (?=\\s*(?:\u003c(?:[\\p{L}0-9_$,\\s\u003c\u003e?|.]|\"[^\"]*\"|`[^`]+`)*\u003e\\s*)?\\() # type arguments, followed by call arguments\n)","end":"(?\u003c=\\))","patterns":[{"begin":"\u003c","end":"\u003e|(?=[{}=])|^[ \\t]*$","patterns":[{"include":"#type"}],"captures":{"0":{"name":"entity.name.type.pkl"}}},{"include":"#parentheses"}],"beginCaptures":{"1":{"patterns":[{"include":"$self"}]},"2":{"name":"variable.function.pkl"}}},{"match":"^\\s*((?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`))\\s*\\{","captures":{"1":{"name":"variable.other.property.pkl"}}},{"name":"storage.modifier.pkl","match":"\\b(abstract|external|extends|hidden|amends|local|fixed|const|open|out|in)(?!\\w)"},{"name":"keyword.pkl","match":"\\b(function|import\\*|extends|amends|read\\*|read\\?|import|throw|trace|read|let|as|is)(?!\\w)"},{"name":"keyword.control.pkl","match":"\\b(import|else|when|for|new|if)(?!\\w)"},{"name":"constant.numeric.hex.pkl","match":"(?x:\n \\b\n 0x(?:[\\da-fA-F][\\da-fA-F_]*[\\da-fA-F]|[\\da-fA-F_])\n \\b\n)"},{"name":"constant.numeric.binary.pkl","match":"(?x:\n \\b\n 0b(?:[0-1][0-1_]*[0-1]|[0-1])\n \\b\n)"},{"name":"constant.numeric.octal.pkl","match":"(?x:\n \\b\n 0o(?:[0-7][0-7_]*[0-7]|[0-7])\n \\b\n)"},{"name":"constant.numeric.decimal.pkl","match":"(?x:\n \\b\n (?:\\d[0-9_]*\\d|\\d)\n \\b\n)"},{"name":"constant.numeric.pkl","match":"(?x:\n \\b\n (?:\n (?:\\d[0-9_]*\\d|\\d)? # 0 or more digits\n \\. # dot literal\n (?:\\d[0-9_]*\\d|\\d) # 1 or more digits\n (?:[eE][+-]?(?:\\d[0-9_]*\\d|\\d))? # optional exponent\n | # OR\n (?:\\d[0-9_]*\\d|\\d) # 1 or more digits\n [eE][+-]?(?:\\d[0-9_]*\\d|\\d) # exponent\n )\n \\b\n)"},{"name":"keyword.operator.pkl","match":"(?x:\n # MATH\n \\+ # add\n |\n - # minus\n |\n \\* # multiply\n |\n / # divide\n |\n ~/ # integer divide\n |\n % # modulo\n |\n \\*\\* # power\n |\n \u003e # greater than\n |\n \u003e= # greater than or equals\n |\n \u003c # less than\n |\n \u003c= # less than or equals\n |\n == # equals\n |\n != # not equals\n\n # LOGICAL\n |\n ! # unary not\n |\n \u0026\u0026 # and\n |\n \\|\\| # or\n |\n\n # MISCELLANEOUS\n \\|\u003e # function pipe\n |\n \\?\\? # nullish coalesce\n |\n !! # non-null assertion\n |\n = # assignments\n |\n -\u003e # lambda arrow\n |\n \\| # type union\n)"},{"name":"variable.language.pkl","match":"\\b(module|outer|super|this)(?!\\w)"},{"name":"support.type.pkl","match":"\\b(unknown|never)(?!\\w)"},{"name":"meta.brace.pkl","match":"[(){}\\[\\]]"},{"name":"keyword.class.pkl","match":"\\b(typealias|class)(?!\\w)"},{"name":"punctuation.pkl","match":"(?x:\n \\?\\. # optional chain\n |\n \\. # member access\n |\n ; # semicolon\n |\n : # colon\n)"},{"name":"entity.name.type.pkl","match":"@(?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`)"},{"include":"#strings"},{"name":"variable.other.property.pkl","match":"(?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`)"}],"repository":{"generic-type":{"begin":"(?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`)\\s*\u003c","end":"\u003e\\??|(?=[{}=])|^[ \\t]*$","patterns":[{"include":"#type"}],"captures":{"0":{"name":"entity.name.type.pkl"}}},"parentheses":{"begin":"\\(","end":"\\)","patterns":[{"include":"#parentheses"},{"include":"$self"}],"captures":{"0":{"name":"meta.brace.pkl"}}},"strings":{"patterns":[{"name":"string.quoted.triple.0.pkl","begin":"(\"\"\")","end":"(\"\"\")","patterns":[{"name":"constant.character.escape.0.pkl","match":"\\\\(?=\\r?$)"},{"contentName":"meta.interpolation.pkl","begin":"\\\\\\(","end":"\\)","patterns":[{"include":"#parentheses"},{"include":"$self"}],"captures":{"0":{"name":"constant.character.escape.0.pkl"}}},{"name":"constant.character.escape.0.pkl","match":"(?x: # turn on extended mode\n \\\\\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n )\n | # OR\n ( # capture group: invalid escape\n \\\\ # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"captures":{"1":{"name":"punctuation.delimiter.pkl"}}},{"name":"string.quoted.double.0.pkl","begin":"(\")","end":"(?x:\n (\") # string end\n | # OR\n (.?$) # error; unterminated string (flag last character as an error)\n)","patterns":[{"contentName":"meta.interpolation.pkl","begin":"\\\\\\(","end":"\\)","patterns":[{"include":"#parentheses"},{"include":"$self"}],"captures":{"0":{"name":"constant.character.escape.0.pkl"}}},{"name":"constant.character.escape.0.pkl","match":"(?x: # turn on extended mode\n \\\\\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n )\n | # OR\n ( # capture group: invalid escape\n \\\\ # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"beginCaptures":{"1":{"name":"punctuation.delimiter.pkl"}},"endCaptures":{"1":{"name":"punctuation.delimimter.pkl"},"2":{"name":"invalid.illegal.newline.pkl"}}},{"name":"string.quoted.triple.1.pkl","begin":"(#\"\"\")","end":"(\"\"\"#)","patterns":[{"name":"constant.character.escape.1.pkl","match":"\\\\\\#(?=\\r?$)"},{"contentName":"meta.interpolation.pkl","begin":"\\\\\\#\\(","end":"\\)","patterns":[{"include":"#parentheses"},{"include":"$self"}],"captures":{"0":{"name":"constant.character.escape.1.pkl"}}},{"name":"constant.character.escape.1.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"captures":{"1":{"name":"punctuation.delimiter.pkl"}}},{"name":"string.quoted.double.1.pkl","begin":"(#\")","end":"(?x:\n (\"\\#) # string end\n | # OR\n (.?$) # error; unterminated string (flag last character as an error)\n)","patterns":[{"contentName":"meta.interpolation.pkl","begin":"\\\\\\#\\(","end":"\\)","patterns":[{"include":"#parentheses"},{"include":"$self"}],"captures":{"0":{"name":"constant.character.escape.1.pkl"}}},{"name":"constant.character.escape.1.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"beginCaptures":{"1":{"name":"punctuation.delimiter.pkl"}},"endCaptures":{"1":{"name":"punctuation.delimimter.pkl"},"2":{"name":"invalid.illegal.newline.pkl"}}},{"name":"string.quoted.triple.2.pkl","begin":"(##\"\"\")","end":"(\"\"\"##)","patterns":[{"name":"constant.character.escape.2.pkl","match":"\\\\\\#\\#(?=\\r?$)"},{"contentName":"meta.interpolation.pkl","begin":"\\\\\\#\\#\\(","end":"\\)","patterns":[{"include":"#parentheses"},{"include":"$self"}],"captures":{"0":{"name":"constant.character.escape.2.pkl"}}},{"name":"constant.character.escape.2.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"captures":{"1":{"name":"punctuation.delimiter.pkl"}}},{"name":"string.quoted.double.2.pkl","begin":"(##\")","end":"(?x:\n (\"\\#\\#) # string end\n | # OR\n (.?$) # error; unterminated string (flag last character as an error)\n)","patterns":[{"contentName":"meta.interpolation.pkl","begin":"\\\\\\#\\#\\(","end":"\\)","patterns":[{"include":"#parentheses"},{"include":"$self"}],"captures":{"0":{"name":"constant.character.escape.2.pkl"}}},{"name":"constant.character.escape.2.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"beginCaptures":{"1":{"name":"punctuation.delimiter.pkl"}},"endCaptures":{"1":{"name":"punctuation.delimimter.pkl"},"2":{"name":"invalid.illegal.newline.pkl"}}},{"name":"string.quoted.triple.3.pkl","begin":"(###\"\"\")","end":"(\"\"\"###)","patterns":[{"name":"constant.character.escape.3.pkl","match":"\\\\\\#\\#\\#(?=\\r?$)"},{"contentName":"meta.interpolation.pkl","begin":"\\\\\\#\\#\\#\\(","end":"\\)","patterns":[{"include":"#parentheses"},{"include":"$self"}],"captures":{"0":{"name":"constant.character.escape.3.pkl"}}},{"name":"constant.character.escape.3.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"captures":{"1":{"name":"punctuation.delimiter.pkl"}}},{"name":"string.quoted.double.3.pkl","begin":"(###\")","end":"(?x:\n (\"\\#\\#\\#) # string end\n | # OR\n (.?$) # error; unterminated string (flag last character as an error)\n)","patterns":[{"contentName":"meta.interpolation.pkl","begin":"\\\\\\#\\#\\#\\(","end":"\\)","patterns":[{"include":"#parentheses"},{"include":"$self"}],"captures":{"0":{"name":"constant.character.escape.3.pkl"}}},{"name":"constant.character.escape.3.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"beginCaptures":{"1":{"name":"punctuation.delimiter.pkl"}},"endCaptures":{"1":{"name":"punctuation.delimimter.pkl"},"2":{"name":"invalid.illegal.newline.pkl"}}},{"name":"string.quoted.triple.4.pkl","begin":"(####\"\"\")","end":"(\"\"\"####)","patterns":[{"name":"constant.character.escape.4.pkl","match":"\\\\\\#\\#\\#\\#(?=\\r?$)"},{"contentName":"meta.interpolation.pkl","begin":"\\\\\\#\\#\\#\\#\\(","end":"\\)","patterns":[{"include":"#parentheses"},{"include":"$self"}],"captures":{"0":{"name":"constant.character.escape.4.pkl"}}},{"name":"constant.character.escape.4.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\#\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"captures":{"1":{"name":"punctuation.delimiter.pkl"}}},{"name":"string.quoted.double.4.pkl","begin":"(####\")","end":"(?x:\n (\"\\#\\#\\#\\#) # string end\n | # OR\n (.?$) # error; unterminated string (flag last character as an error)\n)","patterns":[{"contentName":"meta.interpolation.pkl","begin":"\\\\\\#\\#\\#\\#\\(","end":"\\)","patterns":[{"include":"#parentheses"},{"include":"$self"}],"captures":{"0":{"name":"constant.character.escape.4.pkl"}}},{"name":"constant.character.escape.4.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\#\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"beginCaptures":{"1":{"name":"punctuation.delimiter.pkl"}},"endCaptures":{"1":{"name":"punctuation.delimimter.pkl"},"2":{"name":"invalid.illegal.newline.pkl"}}},{"name":"string.quoted.triple.5.pkl","begin":"(#####\"\"\")","end":"(\"\"\"#####)","patterns":[{"name":"constant.character.escape.5.pkl","match":"\\\\\\#\\#\\#\\#\\#(?=\\r?$)"},{"contentName":"meta.interpolation.pkl","begin":"\\\\\\#\\#\\#\\#\\#\\(","end":"\\)","patterns":[{"include":"#parentheses"},{"include":"$self"}],"captures":{"0":{"name":"constant.character.escape.5.pkl"}}},{"name":"constant.character.escape.5.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\\#\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\#\\#\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"captures":{"1":{"name":"punctuation.delimiter.pkl"}}},{"name":"string.quoted.double.5.pkl","begin":"(#####\")","end":"(?x:\n (\"\\#\\#\\#\\#\\#) # string end\n | # OR\n (.?$) # error; unterminated string (flag last character as an error)\n)","patterns":[{"contentName":"meta.interpolation.pkl","begin":"\\\\\\#\\#\\#\\#\\#\\(","end":"\\)","patterns":[{"include":"#parentheses"},{"include":"$self"}],"captures":{"0":{"name":"constant.character.escape.5.pkl"}}},{"name":"constant.character.escape.5.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\\#\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\#\\#\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"beginCaptures":{"1":{"name":"punctuation.delimiter.pkl"}},"endCaptures":{"1":{"name":"punctuation.delimimter.pkl"},"2":{"name":"invalid.illegal.newline.pkl"}}},{"name":"string.quoted.triple.6.pkl","begin":"(######\"\"\")","end":"(\"\"\"######)","patterns":[{"name":"constant.character.escape.6.pkl","match":"\\\\\\#\\#\\#\\#\\#\\#(?=\\r?$)"},{"contentName":"meta.interpolation.pkl","begin":"\\\\\\#\\#\\#\\#\\#\\#\\(","end":"\\)","patterns":[{"include":"#parentheses"},{"include":"$self"}],"captures":{"0":{"name":"constant.character.escape.6.pkl"}}},{"name":"constant.character.escape.6.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\\#\\#\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\#\\#\\#\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"captures":{"1":{"name":"punctuation.delimiter.pkl"}}},{"name":"string.quoted.double.6.pkl","begin":"(######\")","end":"(?x:\n (\"\\#\\#\\#\\#\\#\\#) # string end\n | # OR\n (.?$) # error; unterminated string (flag last character as an error)\n)","patterns":[{"contentName":"meta.interpolation.pkl","begin":"\\\\\\#\\#\\#\\#\\#\\#\\(","end":"\\)","patterns":[{"include":"#parentheses"},{"include":"$self"}],"captures":{"0":{"name":"constant.character.escape.6.pkl"}}},{"name":"constant.character.escape.6.pkl","match":"(?x: # turn on extended mode\n \\\\\\#\\#\\#\\#\\#\\#\n (?:\n [trn\"\\\\] # tab, carriage return, newline, quote, backslash\n | # OR\n u # the letter u\n \\{ # curly opening brace literal\n [\\da-fA-F]+ # 1 or more hex number literal\n } # curly end literal\n )\n | # OR\n ( # capture group: invalid escape\n \\\\\\#\\#\\#\\#\\#\\# # the escape char\n . # any character\n )\n)","captures":{"1":{"name":"invalid.illegal.unrecognized-string-escape.pkl"}}}],"beginCaptures":{"1":{"name":"punctuation.delimiter.pkl"}},"endCaptures":{"1":{"name":"punctuation.delimimter.pkl"},"2":{"name":"invalid.illegal.newline.pkl"}}}]},"type":{"patterns":[{"name":"comment.line.pkl","match":"//.*"},{"name":"comment.block.pkl","begin":"/\\*","end":"\\*/"},{"name":"keyword.operator.pkl","match":"\\|"},{"include":"#generic-type"},{"name":"entity.name.type.pkl","match":"(?:[\\p{L}_$][\\p{L}0-9_$]*|`[^`]+`)\\??"},{"begin":"(?\u003c=[\\p{L}0-9_$\u003e?`)])\\(","end":"\\)","patterns":[{"include":"#parentheses"},{"include":"$self"}],"captures":{"0":{"name":"meta.brace.pkl"}}},{"begin":"\\(","end":"\\)","patterns":[{"include":"#type"}],"captures":{"0":{"name":"meta.brace.pkl"}}},{"name":"keyword.operator.pkl","match":"-\u003e"},{"name":"entity.name.type.pkl","match":"\\?(?!\\?)"},{"include":"#strings"}]}}}
|
data/grammars/source.pl.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"pl","scopeName":"source.pl","patterns":[{"include":"#toplevel-statements"},{"include":"#operators"}],"repository":{"attributes":{"name":"meta.attribute.block.pl","begin":"(\\[\\[)","end":"(\\]\\])","patterns":[{"match":"\\b([a-zA-Z_][a-zA-Z0-9_:]*)\\b","captures":{"1":{"name":"entity.name.attribute.pl"}}},{"name":"meta.attribute.arguments.pl","begin":"\\(","end":"\\)","patterns":[{"include":"#statements"},{"name":"punctuation.separator.argument.pl","match":","}]},{"name":"punctuation.separator.attribute.pl","match":","}],"beginCaptures":{"1":{"name":"punctuation.bracket.square.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.square.close.pl"}}},"binary-integer":{"name":"constant.numeric.integer.binary.pl","match":"\\b(0(b|B)[01]+)\\b"},"character-literal":{"name":"string.quoted.single.pl","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.pl","match":"\\\\."}]},"comment":{"name":"comment.block.pl","begin":"\\/\\*","end":"\\*\\/"},"decimal-integer":{"name":"constant.numeric.integer.decimal.pl","match":"\\b(0|[1-9][0-9]*)\\b"},"else-statement":{"name":"keyword.control.else.pl","match":"\\b(else)\\b","captures":{"1":{"name":"keyword.control.else.pl"}}},"enum-definition":{"contentName":"meta.enum.pl","begin":"(enum)\\s+([a-zA-Z0-9_]+)\\s*((\\:)\\s*([a-zA-Z0-9_]+))\\s*(\\{)","end":"(\\})\\s*","patterns":[{"include":"#enum-member"}],"beginCaptures":{"1":{"name":"keyword.control.enum.pl"},"2":{"name":"entity.name.type.enum.pl"},"5":{"name":"entity.name.type.base.pl"},"6":{"name":"punctuation.bracket.curly.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.close.pl"}}},"enum-member":{"match":"([a-zA-Z_][a-zA-Z0-9_]*)\\s*((=)\\s*([a-zA-Z0-9_]+)(\\s*\\.\\.\\.\\s*([a-zA-Z0-9_]+))?)?(,)?","captures":{"1":{"name":"variable.other.enum-member.pl"},"3":{"name":"keyword.operator.assignment.pl"},"4":{"patterns":[{"include":"#literal"}]},"6":{"patterns":[{"include":"#literal"}]},"7":{"name":"punctuation.separator.comma.pl"}}},"floating-point-number":{"name":"constant.numeric.float.pl","match":"\\b([+-]?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+)([eE][+-]?[0-9]+)?)\\b"},"for-statement":{"name":"meta.for.pl","begin":"\\b(for)\\s*(\\()","end":"(\\))","patterns":[{"include":"#type-usage"},{"include":"#literal"},{"include":"#identifier"},{"include":"#operators"}],"beginCaptures":{"1":{"name":"keyword.control.for.pl"},"2":{"name":"punctuation.bracket.round.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.round.close.pl"},"2":{"name":"punctuation.bracket.curly.open.pl"}}},"function-definition":{"name":"meta.function.definition.pl","begin":"\\b(fn)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\s*(\\()","end":"(\\))","patterns":[{"include":"#variable-definition"},{"include":"#statements"}],"beginCaptures":{"1":{"name":"keyword.control.function.pl"},"2":{"name":"entity.name.function.pl"},"3":{"name":"punctuation.bracket.round.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.round.close.pl"},"2":{"name":"punctuation.bracket.curly.open.pl"}}},"hexadecimal-integer":{"name":"constant.numeric.integer.hexadecimal.pl","match":"\\b(0(x|X)[0-9a-fA-F]+)\\b"},"identifier":{"name":"variable.other.identifier.pl","match":"\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b"},"if-statement":{"name":"meta.if.pl","begin":"\\b(if)\\s*(\\()","end":"(\\))","patterns":[{"include":"#literal"},{"include":"#identifier"},{"include":"#operators"}],"beginCaptures":{"1":{"name":"keyword.control.if.pl"},"2":{"name":"punctuation.bracket.round.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.round.close.pl"},"2":{"name":"punctuation.bracket.curly.open.pl"}}},"import-statement":{"match":"\\s*(import)\\s*([a-zA-Z0-9_\\.]+|\\*)\\s*((from)\\s*([a-zA-Z0-9_\\.]+))?\\s*((as)?\\s*([a-zA-Z0-9_\\.]+))","captures":{"1":{"name":"keyword.control.import.pl"},"2":{"name":"variable.other.import.pl"},"4":{"name":"keyword.control.from.pl"},"5":{"name":"variable.other.import.pl"},"7":{"name":"keyword.control.as.pl"},"8":{"name":"variable.other.import.pl"}}},"keywords":{"patterns":[{"name":"keyword.control.pl","match":"\\b(break|continue|return|catch|try|if|else|match)\\b"}]},"line-comment":{"name":"comment.line.double-slash.pl","match":"\\/\\/.*"},"literal":{"patterns":[{"include":"#decimal-integer"},{"include":"#hexadecimal-integer"},{"include":"#binary-integer"},{"include":"#octal-integer"},{"include":"#floating-point-number"},{"include":"#string-literal"},{"include":"#character-literal"},{"name":"constant.language.boolean.pl","match":"\\b(true|false|null)\\b"},{"name":"constant.language.special.pl","match":"\\b(this|parent|\\$)\\b"}]},"match-statement":{"name":"meta.match.pl","begin":"\\b(match)\\s*(\\()","end":"(\\))","patterns":[{"include":"#type-usage"},{"include":"#literal"},{"include":"#identifier"},{"include":"#operators"}],"beginCaptures":{"1":{"name":"keyword.control.match.pl"},"2":{"name":"punctuation.bracket.round.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.round.close.pl"},"2":{"name":"punctuation.bracket.curly.open.pl"}}},"namespace-definition":{"name":"meta.namespace.pl","begin":"\\b(namespace)\\s+((auto)\\s+)?(([a-zA-Z_][a-zA-Z0-9_:]*))+\\s*(\\{)","end":"(\\})","patterns":[{"include":"#toplevel-statements"}],"beginCaptures":{"1":{"name":"keyword.control.namespace.pl"},"3":{"name":"storage.type.builtin.pl"},"5":{"name":"entity.name.namespace.pl"},"6":{"name":"punctuation.bracket.curly.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.close.pl"}}},"octal-integer":{"name":"constant.numeric.integer.octal.pl","match":"\\b(0(o|O)[0-7]+)\\b"},"operators":{"patterns":[{"name":"keyword.operator.arithmetic.addition.pl","match":"\\+"},{"name":"keyword.operator.arithmetic.subtraction.pl","match":"-"},{"name":"keyword.operator.arithmetic.multiplication.pl","match":"\\*"},{"name":"keyword.operator.arithmetic.division.pl","match":"\\/"},{"name":"keyword.operator.arithmetic.modulus.pl","match":"%"},{"name":"keyword.operator.comparison.pl","match":"\u003c=|\u003e=|\u003c|\u003e|==|!=|\u0026\u0026|\\|\\||!"},{"name":"keyword.operator.bitwise.pl","match":"\u0026|\\||\\^"},{"name":"keyword.operator.special.pl","match":"@"},{"name":"keyword.operator.range.pl","match":"\\.\\.\\."},{"name":"punctuation.bracket.round.pl","match":"\\(|\\)"},{"name":"punctuation.bracket.square.pl","match":"\\[|\\]"},{"name":"punctuation.separator.period.pl","match":"\\."},{"name":"punctuation.separator.comma.pl","match":","},{"name":"punctuation.terminator.semicolon.pl","match":";"},{"name":"keyword.operator.ternary.question.pl","match":"\\?"},{"name":"keyword.operator.ternary.colon.pl","match":":"},{"name":"keyword.operator.function.pl","match":"sizeof|addressof|typenameof"},{"name":"keyword.operator.assignment.pl","match":"\\+=|-=|\\*=|/=|%=|\u0026=|\\^=|\\|="}]},"padding-definition":{"name":"keyword.other.padding.pl","match":"padding"},"preprocessor-directive":{"match":"^\\s*(#[a-zA-Z0-9_]+)\\s*(.*)$","captures":{"1":{"name":"keyword.control.import.preprocessor.pl."},"2":{"name":"string.unquoted.directive.pl"}}},"scope":{"name":"meta.scope.pl","begin":"\\s*(\\{)","end":"(\\})","patterns":[{"include":"#statements"}],"beginCaptures":{"1":{"name":"punctuation.bracket.curly.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.close.pl"}}},"statements":{"patterns":[{"include":"#attributes"},{"include":"#variable-definition"},{"include":"#padding-definition"},{"include":"#comment"},{"include":"#line-comment"},{"include":"#literal"},{"include":"#if-statement"},{"include":"#else-statement"},{"include":"#for-statement"},{"include":"#while-statement"},{"include":"#match-statement"},{"include":"#try-catch-statement"},{"include":"#operators"},{"include":"#identifier"},{"include":"#scope"},{"name":"punctuation.terminator.semicolon.pl","match":"\\;"}]},"string-literal":{"name":"string.quoted.double.pl","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.pl","match":"\\\\."}]},"struct-definition":{"contentName":"meta.struct.pl","begin":"(struct|union|bitfield)\\s+([a-zA-Z0-9_]+)(\\s*\u003c([^\\\u003e]*)\u003e)?\\s*((\\:)\\s*([a-zA-Z0-9_]+))?\\s*(\\{)","end":"(\\})\\s*","patterns":[{"include":"#statements"}],"beginCaptures":{"1":{"name":"keyword.control.struct.pl"},"2":{"name":"entity.name.type.struct.pl"},"4":{"patterns":[{"include":"#type-usage"},{"include":"#variable-definition"}]},"7":{"name":"entity.name.type.base.pl"},"8":{"name":"punctuation.bracket.curly.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.close.pl"}}},"toplevel-statements":{"patterns":[{"include":"#namespace-definition"},{"include":"#import-statement"},{"include":"#preprocessor-directive"},{"include":"#using-declaration"},{"include":"#struct-definition"},{"include":"#enum-definition"},{"include":"#function-definition"},{"include":"#statements"}]},"try-catch-statement":{"name":"keyword.control.try-catch.pl","match":"\\b((try)|(catch))\\b","captures":{"2":{"name":"keyword.control.try.pl"},"3":{"name":"keyword.control.catch.pl"}}},"type-usage":{"match":"\\b(const|ref|be|le\\s+)?((u|s)(8|16|24|32|48|64|96|128)|(float|double|str|auto|bool|char|char16|unsigned|signed)|([A-Za-z_][A-Za-z0-9_]*))\\b","captures":{"1":{"name":"keyword.other.ref.pl"},"2":{"name":"storage.type.builtin.pl"},"5":{"name":"storage.type.builtin.pl"}}},"using-declaration":{"match":"\\b(using)\\s+([a-zA-Z0-9_]+)\\s*((=)\\s*([a-zA-Z0-9_]+))?","captures":{"1":{"name":"keyword.control.using.pl"},"2":{"name":"variable.other.using.pl"},"5":{"patterns":[{"include":"#type-usage"}]}}},"variable-definition":{"match":"\\s*(ref\\s+)?((?!else)\\b[a-zA-Z_][a-zA-Z0-9_]*)\\s+([a-zA-Z_][a-zA-Z0-9_]*)(\\s+(in|out))?","captures":{"1":{"patterns":[{"include":"#type-usage"}]},"2":{"patterns":[{"include":"#type-usage"}]},"3":{"name":"variable.other.definition.pl"},"5":{"name":"keyword.other.inout.pl"}}},"while-statement":{"name":"meta.while.pl","begin":"\\b(while)\\s*(\\()","end":"(\\))","patterns":[{"include":"#type-usage"},{"include":"#literal"},{"include":"#identifier"},{"include":"#operators"}],"beginCaptures":{"1":{"name":"keyword.control.while.pl"},"2":{"name":"punctuation.bracket.round.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.round.close.pl"},"2":{"name":"punctuation.bracket.curly.open.pl"}}}}}
|
|
1
|
+
{"name":"pl","scopeName":"source.pl","patterns":[{"include":"#toplevel-statements"},{"include":"#operators"}],"repository":{"attributes":{"name":"meta.attribute.block.pl","begin":"(\\[\\[)","end":"(\\]\\])","patterns":[{"match":"\\b([a-zA-Z_][a-zA-Z0-9_:]*)\\b","captures":{"1":{"name":"entity.name.attribute.pl"}}},{"name":"meta.attribute.arguments.pl","begin":"\\(","end":"\\)","patterns":[{"include":"#statements"},{"name":"punctuation.separator.argument.pl","match":","}]},{"name":"punctuation.separator.attribute.pl","match":","}],"beginCaptures":{"1":{"name":"punctuation.bracket.square.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.square.close.pl"}}},"binary-integer":{"name":"constant.numeric.integer.binary.pl","match":"\\b(0(b|B)[01]+)\\b"},"character-literal":{"name":"string.quoted.single.pl","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.pl","match":"\\\\."}]},"comment":{"name":"comment.block.pl","begin":"\\/\\*","end":"\\*\\/"},"decimal-integer":{"name":"constant.numeric.integer.decimal.pl","match":"\\b(0|[1-9][0-9]*)\\b"},"else-statement":{"name":"keyword.control.pl","match":"\\b(else)\\b","captures":{"1":{"name":"keyword.control.pl"}}},"enum-definition":{"contentName":"meta.enum.pl","begin":"(enum)\\s+([a-zA-Z0-9_]+)\\s*((\\:)\\s*([a-zA-Z_][a-zA-Z0-9_:]*))\\s*(\\{)?","end":"(\\})\\s*","patterns":[{"name":"punctuation.bracket.curly.open.pl","match":"\\{"},{"include":"#comment"},{"include":"#line-comment"},{"include":"#enum-member"}],"beginCaptures":{"1":{"name":"storage.type.pl"},"2":{"name":"entity.name.type.enum.pl"},"5":{"patterns":[{"include":"#type-usage"}]},"6":{"name":"punctuation.bracket.curly.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.close.pl"}}},"enum-member":{"match":"([a-zA-Z_][a-zA-Z0-9_]*)\\s*((=)\\s*([a-zA-Z0-9_]+)(\\s*\\.\\.\\.\\s*([a-zA-Z0-9_]+))?)?(,)?","captures":{"1":{"name":"entity.name.variable.enum-member.pl"},"3":{"name":"keyword.operator.assignment.pl"},"4":{"patterns":[{"include":"#literal"}]},"6":{"patterns":[{"include":"#literal"}]},"7":{"name":"punctuation.separator.comma.pl"}}},"floating-point-number":{"name":"constant.numeric.float.pl","match":"\\b([+-]?([0-9]+\\.[0-9]*|[0-9]*\\.[0-9]+)([eE][+-]?[0-9]+)?)\\b"},"for-statement":{"name":"meta.for.pl","begin":"\\b(for)\\s*(\\()","end":"(\\))","patterns":[{"include":"#variable-definition"},{"include":"#parenthesized-expression"},{"include":"#literal"},{"include":"#identifier"},{"include":"#operators"}],"beginCaptures":{"1":{"name":"keyword.control.pl"},"2":{"name":"punctuation.bracket.round.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.round.close.pl"},"2":{"name":"punctuation.bracket.curly.open.pl"}}},"function-call":{"patterns":[{"match":"\\b((?:[a-zA-Z_][a-zA-Z0-9_]*::)+)([a-zA-Z_][a-zA-Z0-9_]*)(?=\\s*\\()","captures":{"1":{"patterns":[{"name":"entity.name.namespace.pl","match":"[a-zA-Z_][a-zA-Z0-9_]*"},{"name":"punctuation.accessor.double-colon.pl","match":"::"}]},"2":{"name":"entity.name.function.call.pl"}}},{"name":"entity.name.function.call.pl","match":"\\b([a-zA-Z_][a-zA-Z0-9_]*)(?=\\s*\\()"}]},"function-definition":{"name":"meta.function.definition.pl","begin":"\\b(fn)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\s*(\\()","end":"(\\))","patterns":[{"include":"#variable-definition"},{"include":"#statements"}],"beginCaptures":{"1":{"name":"storage.type.pl"},"2":{"name":"entity.name.function.pl"},"3":{"name":"punctuation.bracket.round.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.round.close.pl"},"2":{"name":"punctuation.bracket.curly.open.pl"}}},"hexadecimal-integer":{"name":"constant.numeric.integer.hexadecimal.pl","match":"\\b(0(x|X)[0-9a-fA-F]+)\\b"},"identifier":{"patterns":[{"include":"#function-call"},{"name":"variable.other.identifier.pl","match":"\\b([a-zA-Z_][a-zA-Z0-9_]*)\\b"}]},"if-statement":{"name":"meta.if.pl","begin":"\\b(if)\\s*(\\()","end":"(\\))","patterns":[{"include":"#parenthesized-expression"},{"include":"#literal"},{"include":"#identifier"},{"include":"#operators"}],"beginCaptures":{"1":{"name":"keyword.control.pl"},"2":{"name":"punctuation.bracket.round.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.round.close.pl"},"2":{"name":"punctuation.bracket.curly.open.pl"}}},"import-statement":{"match":"\\s*(import)\\s*([a-zA-Z0-9_\\.]+|\\*)\\s*((from)\\s*([a-zA-Z0-9_\\.]+))?\\s*((as)?\\s*([a-zA-Z0-9_\\.]+))","captures":{"1":{"name":"keyword.control.pl"},"2":{"name":"variable.other.import.pl"},"4":{"name":"keyword.control.pl"},"5":{"name":"variable.other.import.pl"},"7":{"name":"keyword.control.pl"},"8":{"name":"variable.other.import.pl"}}},"keywords":{"patterns":[{"name":"keyword.control.pl","match":"\\b(break|continue|return|catch|try|if|else|match)\\b"}]},"line-comment":{"name":"comment.line.double-slash.pl","match":"\\/\\/.*"},"literal":{"patterns":[{"include":"#decimal-integer"},{"include":"#hexadecimal-integer"},{"include":"#binary-integer"},{"include":"#octal-integer"},{"include":"#floating-point-number"},{"include":"#string-literal"},{"include":"#character-literal"},{"name":"constant.language.boolean.pl","match":"\\b(true|false|null)\\b"},{"name":"constant.language.special.pl","match":"\\b(this|parent|\\$)\\b"}]},"match-statement":{"name":"meta.match.pl","begin":"\\b(match)\\s*(\\()","end":"(\\))","patterns":[{"include":"#parenthesized-expression"},{"include":"#literal"},{"include":"#identifier"},{"include":"#operators"}],"beginCaptures":{"1":{"name":"keyword.control.pl"},"2":{"name":"punctuation.bracket.round.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.round.close.pl"},"2":{"name":"punctuation.bracket.curly.open.pl"}}},"namespace-definition":{"name":"meta.namespace.pl","begin":"\\b(namespace)\\s+((auto)\\s+)?(([a-zA-Z_][a-zA-Z0-9_:]*))+\\s*(\\{)","end":"(\\})","patterns":[{"include":"#toplevel-statements"}],"beginCaptures":{"1":{"name":"keyword.control.pl"},"3":{"name":"storage.type.builtin.pl"},"5":{"name":"entity.name.namespace.pl"},"6":{"name":"punctuation.bracket.curly.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.close.pl"}}},"octal-integer":{"name":"constant.numeric.integer.octal.pl","match":"\\b(0(o|O)[0-7]+)\\b"},"operators":{"patterns":[{"name":"keyword.operator.assignment.pl","match":"\u003c\u003c=|\u003e\u003e=|\\+=|-=|\\*=|/=|%=|\u0026=|\\^=|\\|=|=(?!=)"},{"name":"keyword.operator.arithmetic.addition.pl","match":"\\+"},{"name":"keyword.operator.arithmetic.subtraction.pl","match":"-"},{"name":"keyword.operator.arithmetic.multiplication.pl","match":"\\*"},{"name":"keyword.operator.arithmetic.division.pl","match":"\\/"},{"name":"keyword.operator.arithmetic.modulus.pl","match":"%"},{"name":"keyword.operator.bitwise.shift.pl","match":"\u003c\u003c|\u003e\u003e"},{"name":"keyword.operator.comparison.pl","match":"\u003c=|\u003e=|\u003c|\u003e|==|!=|\u0026\u0026|\\|\\||!"},{"name":"keyword.operator.bitwise.pl","match":"\u0026|\\||\\^"},{"name":"keyword.operator.special.pl","match":"@"},{"name":"keyword.operator.range.pl","match":"\\.\\.\\."},{"name":"punctuation.bracket.round.pl","match":"\\(|\\)"},{"name":"punctuation.bracket.square.pl","match":"\\[|\\]"},{"name":"punctuation.separator.period.pl","match":"\\."},{"name":"punctuation.separator.comma.pl","match":","},{"name":"punctuation.terminator.semicolon.pl","match":";"},{"name":"keyword.operator.ternary.question.pl","match":"\\?"},{"name":"punctuation.accessor.double-colon.pl","match":"::"},{"name":"keyword.operator.ternary.colon.pl","match":":"},{"name":"keyword.operator.function.pl","match":"sizeof|addressof|typenameof"}]},"padding-definition":{"name":"keyword.other.padding.pl","match":"padding"},"parenthesized-expression":{"name":"meta.group.pl","begin":"(\\()","end":"(\\))","patterns":[{"include":"#parenthesized-expression"},{"include":"#literal"},{"include":"#identifier"},{"include":"#operators"}],"beginCaptures":{"1":{"name":"punctuation.bracket.round.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.round.close.pl"}}},"preprocessor-directive":{"match":"^\\s*(#[a-zA-Z0-9_]+)\\s*(.*)$","captures":{"1":{"name":"keyword.control.import.preprocessor.pl."},"2":{"name":"string.unquoted.directive.pl"}}},"scope":{"name":"meta.scope.pl","begin":"\\s*(\\{)","end":"(\\})","patterns":[{"include":"#statements"}],"beginCaptures":{"1":{"name":"punctuation.bracket.curly.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.close.pl"}}},"statements":{"patterns":[{"include":"#attributes"},{"include":"#template-type-usage"},{"include":"#template-variable-definition"},{"include":"#variable-definition"},{"include":"#padding-definition"},{"include":"#comment"},{"include":"#line-comment"},{"include":"#literal"},{"include":"#if-statement"},{"include":"#else-statement"},{"include":"#for-statement"},{"include":"#while-statement"},{"include":"#match-statement"},{"include":"#try-catch-statement"},{"include":"#keywords"},{"include":"#operators"},{"include":"#identifier"},{"include":"#scope"},{"name":"punctuation.terminator.semicolon.pl","match":"\\;"}]},"string-literal":{"name":"string.quoted.double.pl","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.pl","match":"\\\\."}]},"struct-definition":{"contentName":"meta.struct.pl","begin":"(struct|union|bitfield)\\s+([a-zA-Z0-9_]+)(\\s*(\u003c)([^\\\u003e]*)(\u003e))?\\s*((\\:)\\s*([a-zA-Z_][a-zA-Z0-9_:]*))?\\s*(\\{)","end":"(\\})\\s*","patterns":[{"include":"#statements"}],"beginCaptures":{"1":{"name":"storage.type.pl"},"10":{"name":"punctuation.bracket.curly.open.pl"},"2":{"name":"entity.name.type.struct.pl"},"4":{"name":"punctuation.definition.typeparameters.begin.pl"},"5":{"patterns":[{"include":"#type-usage"},{"include":"#variable-definition"}]},"6":{"name":"punctuation.definition.typeparameters.end.pl"},"9":{"patterns":[{"include":"#type-usage"}]}},"endCaptures":{"1":{"name":"punctuation.bracket.curly.close.pl"}}},"template-type-usage":{"name":"meta.type.template.pl","begin":"\\b([A-Za-z_][A-Za-z0-9_:]*)(\u003c)","end":"(\u003e)","patterns":[{"include":"#comment"},{"include":"#line-comment"},{"include":"#template-type-usage"},{"include":"#type-usage"},{"name":"punctuation.separator.comma.pl","match":","}],"beginCaptures":{"1":{"patterns":[{"include":"#type-name"}]},"2":{"name":"punctuation.definition.typeparameters.begin.pl"}},"endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.pl"}}},"template-variable-definition":{"match":"(?\u003c=\u003e)\\s+([A-Za-z_][A-Za-z0-9_]*)(\\s+(in|out))?","captures":{"1":{"name":"variable.other.definition.pl"},"3":{"name":"keyword.other.inout.pl"}}},"toplevel-statements":{"patterns":[{"include":"#namespace-definition"},{"include":"#import-statement"},{"include":"#preprocessor-directive"},{"include":"#using-declaration"},{"include":"#struct-definition"},{"include":"#enum-definition"},{"include":"#function-definition"},{"include":"#statements"}]},"try-catch-statement":{"name":"keyword.control.pl","match":"\\b((try)|(catch))\\b","captures":{"2":{"name":"keyword.control.pl"},"3":{"name":"keyword.control.pl"}}},"type-name":{"patterns":[{"name":"entity.name.namespace.pl","match":"\\b[A-Za-z_][A-Za-z0-9_]*(?=::)"},{"name":"punctuation.accessor.double-colon.pl","match":"::"},{"name":"entity.name.type.pl","match":"\\b[A-Za-z_][A-Za-z0-9_]*\\b"}]},"type-usage":{"match":"\\b(const|ref|be|le\\s+)?((u|s)(8|16|24|32|48|64|96|128)|(float|double|str|auto|bool|char|char16|unsigned|signed)|([A-Za-z_][A-Za-z0-9_:]*))\\b","captures":{"1":{"name":"keyword.other.ref.pl"},"2":{"name":"storage.type.builtin.pl"},"5":{"name":"storage.type.builtin.pl"},"6":{"patterns":[{"include":"#type-name"}]}}},"using-declaration":{"match":"\\b(using)\\s+([a-zA-Z0-9_]+)\\s*((=)\\s*([a-zA-Z_][a-zA-Z0-9_:]*))?","captures":{"1":{"name":"keyword.control.pl"},"2":{"name":"entity.name.type.alias.pl"},"5":{"patterns":[{"include":"#type-usage"}]}}},"variable-definition":{"match":"\\s*(ref\\s+)?((?!else)\\b[a-zA-Z_][a-zA-Z0-9_:]*)\\s+([a-zA-Z_][a-zA-Z0-9_]*)(\\s+(in|out))?","captures":{"1":{"patterns":[{"include":"#type-usage"}]},"2":{"patterns":[{"include":"#type-usage"}]},"3":{"name":"variable.other.definition.pl"},"5":{"name":"keyword.other.inout.pl"}}},"while-statement":{"name":"meta.while.pl","begin":"\\b(while)\\s*(\\()","end":"(\\))","patterns":[{"include":"#parenthesized-expression"},{"include":"#literal"},{"include":"#identifier"},{"include":"#operators"}],"beginCaptures":{"1":{"name":"keyword.control.pl"},"2":{"name":"punctuation.bracket.round.open.pl"}},"endCaptures":{"1":{"name":"punctuation.bracket.round.close.pl"},"2":{"name":"punctuation.bracket.curly.open.pl"}}}}}
|
data/grammars/source.prisma.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"Prisma","scopeName":"source.prisma","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#types_block_definition"},{"include":"#namespace_block_definition"},{"include":"#model_block_definition"},{"include":"#config_block_definition"},{"include":"#enum_block_definition"},{"include":"#type_definition"}],"repository":{"array":{"name":"source.prisma.array","begin":"\\[","end":"\\]","patterns":[{"include":"#value"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.prisma"}}},"assignment":{"patterns":[{"begin":"^\\s*(\\w+)\\s*(=)\\s*","end":"\\n","patterns":[{"include":"#value"},{"include":"#double_comment_inline"}],"beginCaptures":{"1":{"name":"variable.other.assignment.prisma"},"2":{"name":"keyword.operator.terraform"}}}]},"attribute":{"name":"source.prisma.attribute","match":"(@@?[\\w\\.]+)","captures":{"1":{"name":"entity.name.function.attribute.prisma"}}},"attribute_with_arguments":{"name":"source.prisma.attribute.with_arguments","begin":"(@@?[\\w\\.]+)(\\()","end":"\\)","patterns":[{"include":"#named_argument"},{"include":"#value"}],"beginCaptures":{"1":{"name":"entity.name.function.attribute.prisma"},"2":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"boolean":{"name":"constant.language.boolean.prisma","match":"\\b(true|false)\\b"},"config_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(generator|datasource)\\s+([A-Za-z][\\w]*)\\s+({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#assignment"}],"beginCaptures":{"1":{"name":"storage.type.config.prisma"},"2":{"name":"entity.name.type.config.prisma"},"3":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.prisma"}}},"double_comment":{"name":"comment.prisma","begin":"//","end":"$\\n?"},"double_comment_inline":{"name":"comment.prisma","match":"//[^\\n]*"},"double_quoted_string":{"name":"unnamed","begin":"\"","end":"\"","patterns":[{"include":"#string_interpolation"},{"name":"string.quoted.double.prisma","match":"([\\w\\-\\/\\._\\\\%@:\\?=]+)"}],"beginCaptures":{"0":{"name":"string.quoted.double.start.prisma"}},"endCaptures":{"0":{"name":"string.quoted.double.end.prisma"}}},"enum_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(enum)\\s+([A-Za-z][\\w]*)\\s+({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#enum_value_definition"}],"beginCaptures":{"1":{"name":"storage.type.enum.prisma"},"2":{"name":"entity.name.type.enum.prisma"},"3":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"enum_value_definition":{"patterns":[{"match":"^\\s*(\\w+)\\s*","captures":{"1":{"name":"variable.other.assignment.prisma"}}},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"field_definition":{"name":"scalar.field","patterns":[{"match":"^\\s*(\\w+)(\\s*:)?\\s+((?!(?:Int|BigInt|String|DateTime|Bytes|Decimal|Float|Json|Boolean)\\b)\\b\\w+)?(Int|BigInt|String|DateTime|Bytes|Decimal|Float|Json|Boolean)?(\\[\\])?(\\?)?(\\!)?","captures":{"1":{"name":"variable.other.assignment.prisma"},"2":{"name":"invalid.illegal.colon.prisma"},"3":{"name":"variable.language.relations.prisma"},"4":{"name":"support.type.primitive.prisma"},"5":{"name":"keyword.operator.list_type.prisma"},"6":{"name":"keyword.operator.optional_type.prisma"},"7":{"name":"invalid.illegal.required_type.prisma"}}},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"functional":{"name":"source.prisma.functional","begin":"(\\w+)(\\()","end":"\\)","patterns":[{"include":"#value"}],"beginCaptures":{"1":{"name":"support.function.functional.prisma"},"2":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"identifier":{"patterns":[{"name":"support.constant.constant.prisma","match":"\\b(\\w)+\\b"}]},"literal":{"name":"source.prisma.literal","patterns":[{"include":"#boolean"},{"include":"#number"},{"include":"#double_quoted_string"},{"include":"#identifier"}]},"map_key":{"name":"source.prisma.key","patterns":[{"match":"(\\w+)\\s*(:)\\s*","captures":{"1":{"name":"variable.parameter.key.prisma"},"2":{"name":"punctuation.definition.separator.key-value.prisma"}}}]},"model_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(model|type|view)\\s+([A-Za-z][\\w]*)\\s*({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#field_definition"}],"beginCaptures":{"1":{"name":"storage.type.model.prisma"},"2":{"name":"entity.name.type.model.prisma"},"3":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"multi_line_comment":{"name":"comment.prisma","begin":"/\\*","end":"\\*/"},"named_argument":{"name":"source.prisma.named_argument","patterns":[{"include":"#map_key"},{"include":"#value"}]},"namespace_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(namespace)\\s+([A-Za-z][\\w]*)\\s*({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#model_block_definition"},{"include":"#enum_block_definition"},{"include":"#type_definition"}],"beginCaptures":{"1":{"name":"storage.type.namespace.prisma"},"2":{"name":"entity.name.type.namespace.prisma"},"3":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"number":{"name":"constant.numeric.prisma","match":"((0(x|X)[0-9a-fA-F]*)|(\\+|-)?\\b(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)([LlFfUuDdg]|UL|ul)?\\b"},"string_interpolation":{"patterns":[{"name":"source.tag.embedded.source.prisma","begin":"\\$\\{","end":"\\s*\\}","patterns":[{"include":"#value"}],"beginCaptures":{"0":{"name":"keyword.control.interpolation.start.prisma"}},"endCaptures":{"0":{"name":"keyword.control.interpolation.end.prisma"}}}]},"triple_comment":{"name":"comment.prisma","begin":"///","end":"$\\n?"},"type_alias_definition":{"patterns":[{"match":"^\\s*(\\w+)\\s*(=)\\s*(\\w+)","captures":{"1":{"name":"entity.name.type.alias.prisma"},"2":{"name":"keyword.operator.assignment.prisma"},"3":{"name":"support.type.primitive.prisma"}}},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"type_definition":{"patterns":[{"match":"^\\s*(type)\\s+(\\w+)\\s*=\\s*(\\w+)","captures":{"1":{"name":"storage.type.type.prisma"},"2":{"name":"entity.name.type.type.prisma"},"3":{"name":"support.type.primitive.prisma"}}},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"types_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(types)\\s*({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#type_alias_definition"}],"beginCaptures":{"1":{"name":"storage.type.types.prisma"},"2":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"value":{"name":"source.prisma.value","patterns":[{"include":"#array"},{"include":"#functional"},{"include":"#literal"}]}}}
|
|
1
|
+
{"name":"Prisma","scopeName":"source.prisma","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#types_block_definition"},{"include":"#namespace_block_definition"},{"include":"#model_block_definition"},{"include":"#config_block_definition"},{"include":"#enum_block_definition"},{"include":"#generic_mixin_block_definition"},{"include":"#type_definition"}],"repository":{"array":{"name":"source.prisma.array","begin":"\\[","end":"\\]","patterns":[{"include":"#double_comment_inline"},{"include":"#value"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.prisma"}}},"assignment":{"patterns":[{"begin":"^\\s*(\\w+)\\s*(=)\\s*","end":"\\n","patterns":[{"include":"#value"},{"include":"#double_comment_inline"}],"beginCaptures":{"1":{"name":"variable.other.assignment.prisma"},"2":{"name":"keyword.operator.terraform"}}}]},"attribute":{"name":"source.prisma.attribute","match":"(@@?[\\w\\.]+)","captures":{"1":{"name":"entity.name.function.attribute.prisma"}}},"attribute_with_arguments":{"name":"source.prisma.attribute.with_arguments","begin":"(@@?[\\w\\.]+)(\\()","end":"\\)","patterns":[{"include":"#double_comment_inline"},{"include":"#named_argument"},{"include":"#value"}],"beginCaptures":{"1":{"name":"entity.name.function.attribute.prisma"},"2":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"backtick_escape":{"name":"constant.character.escape.prisma","match":"\\\\[`\\\\]"},"backtick_string":{"name":"string.quoted.backtick.prisma","begin":"`","end":"`","patterns":[{"include":"#backtick_escape"}],"beginCaptures":{"0":{"name":"string.quoted.backtick.start.prisma"}},"endCaptures":{"0":{"name":"string.quoted.backtick.end.prisma"}}},"boolean":{"name":"constant.language.boolean.prisma","match":"\\b(true|false)\\b"},"config_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(generator|datasource)\\s+([A-Za-z][\\w]*)\\s+({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#mixin_inclusion"},{"include":"#assignment"}],"beginCaptures":{"1":{"name":"storage.type.config.prisma"},"2":{"name":"entity.name.type.config.prisma"},"3":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.prisma"}}},"double_comment":{"name":"comment.prisma","begin":"//","end":"$\\n?"},"double_comment_inline":{"name":"comment.prisma","match":"//[^\\n]*"},"double_quoted_string":{"name":"unnamed","begin":"\"","end":"\"|$","patterns":[{"include":"#string_interpolation"},{"name":"constant.character.escape.prisma","match":"\\\\."},{"name":"string.quoted.double.prisma","match":"([\\w\\-\\/\\._%@:\\?=]+)"}],"beginCaptures":{"0":{"name":"string.quoted.double.start.prisma"}},"endCaptures":{"0":{"name":"string.quoted.double.end.prisma"}}},"enum_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(enum)\\s+(?:(mixin)\\s+)?([A-Za-z][\\w]*)\\s*({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#mixin_inclusion"},{"include":"#enum_value_definition"}],"beginCaptures":{"1":{"name":"storage.type.enum.prisma"},"2":{"name":"storage.modifier.mixin.prisma"},"3":{"name":"entity.name.type.enum.prisma"},"4":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"enum_value_definition":{"patterns":[{"match":"^\\s*(\\w+)\\s*","captures":{"1":{"name":"variable.other.assignment.prisma"}}},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"field_definition":{"name":"scalar.field","patterns":[{"match":"^\\s*(\\w+)(\\s*:)?\\s+((?!(?:Int|BigInt|String|DateTime|Bytes|Decimal|Float|Json|Boolean)\\b)\\b\\w+)?(Int|BigInt|String|DateTime|Bytes|Decimal|Float|Json|Boolean)?(\\[\\])?(\\?)?(\\!)?","captures":{"1":{"name":"variable.other.assignment.prisma"},"2":{"name":"invalid.illegal.colon.prisma"},"3":{"name":"variable.language.relations.prisma"},"4":{"name":"support.type.primitive.prisma"},"5":{"name":"keyword.operator.list_type.prisma"},"6":{"name":"keyword.operator.optional_type.prisma"},"7":{"name":"invalid.illegal.required_type.prisma"}}},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"functional":{"name":"source.prisma.functional","begin":"(\\w+)(\\()","end":"\\)","patterns":[{"include":"#double_comment_inline"},{"include":"#value"}],"beginCaptures":{"1":{"name":"support.function.functional.prisma"},"2":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"generic_mixin_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*((?!namespace\\b|types\\b)[A-Za-z_]\\w*)\\s+(mixin)\\s+([A-Za-z_]\\w*)\\s*({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#mixin_inclusion"},{"include":"#assignment"},{"include":"#attribute_with_arguments"},{"include":"#attribute"}],"beginCaptures":{"1":{"name":"storage.type.config.prisma"},"2":{"name":"storage.modifier.mixin.prisma"},"3":{"name":"entity.name.type.mixin.prisma"},"4":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"identifier":{"patterns":[{"name":"support.constant.constant.prisma","match":"\\b(\\w)+\\b"}]},"literal":{"name":"source.prisma.literal","patterns":[{"include":"#boolean"},{"include":"#number"},{"include":"#double_quoted_string"},{"include":"#single_quoted_string"},{"include":"#backtick_string"},{"include":"#identifier"}]},"map_key":{"name":"source.prisma.key","patterns":[{"match":"(\\w+)\\s*(:)\\s*","captures":{"1":{"name":"variable.parameter.key.prisma"},"2":{"name":"punctuation.definition.separator.key-value.prisma"}}}]},"mixin_inclusion":{"match":"(\\+)[ \\t]*([A-Za-z_]\\w*(?:[ \\t]*\\.[ \\t]*[A-Za-z_]\\w*)*)","captures":{"1":{"name":"keyword.operator.mixin.prisma"},"2":{"name":"entity.name.type.mixin.prisma"}}},"model_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(model|type|view)\\s+(?:(mixin)\\s+)?([A-Za-z][\\w]*)\\s*({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#mixin_inclusion"},{"include":"#field_definition"}],"beginCaptures":{"1":{"name":"storage.type.model.prisma"},"2":{"name":"storage.modifier.mixin.prisma"},"3":{"name":"entity.name.type.model.prisma"},"4":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"multi_line_comment":{"name":"comment.prisma","begin":"/\\*","end":"\\*/"},"named_argument":{"name":"source.prisma.named_argument","patterns":[{"include":"#map_key"},{"include":"#value"}]},"namespace_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(namespace)\\s+([A-Za-z][\\w]*)\\s*({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#model_block_definition"},{"include":"#enum_block_definition"},{"include":"#generic_mixin_block_definition"},{"include":"#type_definition"}],"beginCaptures":{"1":{"name":"storage.type.namespace.prisma"},"2":{"name":"entity.name.type.namespace.prisma"},"3":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"number":{"name":"constant.numeric.prisma","match":"((0(x|X)[0-9a-fA-F]*)|(\\+|-)?\\b(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)([LlFfUuDdg]|UL|ul)?\\b"},"single_quoted_string":{"name":"string.quoted.single.prisma","begin":"'","end":"'|$","patterns":[{"name":"constant.character.escape.prisma","match":"\\\\."}],"beginCaptures":{"0":{"name":"string.quoted.single.start.prisma"}},"endCaptures":{"0":{"name":"string.quoted.single.end.prisma"}}},"string_interpolation":{"patterns":[{"name":"source.tag.embedded.source.prisma","begin":"\\$\\{","end":"\\s*\\}","patterns":[{"include":"#value"}],"beginCaptures":{"0":{"name":"keyword.control.interpolation.start.prisma"}},"endCaptures":{"0":{"name":"keyword.control.interpolation.end.prisma"}}}]},"tagged_literal":{"patterns":[{"include":"#tagged_literal_sql_backtick"},{"include":"#tagged_literal_json_backtick"},{"include":"#tagged_literal_sql_quoted"},{"include":"#tagged_literal_json_single_quoted"},{"include":"#tagged_literal_other"}]},"tagged_literal_json_backtick":{"contentName":"meta.embedded.block.json","begin":"\\b((?:[A-Za-z_]\\w*\\.)?(?:jsonb|json))\\b([ \\t]*)(`)","end":"`","patterns":[{"include":"#backtick_escape"},{"include":"source.json"}],"beginCaptures":{"1":{"name":"entity.name.function.tagged-template.prisma"},"3":{"name":"punctuation.definition.string.begin.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.prisma"}}},"tagged_literal_json_single_quoted":{"match":"\\b((?:[A-Za-z_]\\w*\\.)?(?:jsonb|json))\\b([ \\t]*)(')((?:\\\\.|[^'])*)(')","captures":{"1":{"name":"entity.name.function.tagged-template.prisma"},"3":{"name":"punctuation.definition.string.begin.prisma"},"4":{"name":"meta.embedded.block.json","patterns":[{"name":"constant.character.escape.prisma","match":"\\\\."},{"include":"source.json"}]},"5":{"name":"punctuation.definition.string.end.prisma"}}},"tagged_literal_other":{"match":"\\b([A-Za-z_]\\w*(?:\\.[A-Za-z_]\\w*)?)\\b(?=[ \\t]*[`'\"])","captures":{"1":{"name":"entity.name.function.tagged-template.prisma"}}},"tagged_literal_sql_backtick":{"contentName":"meta.embedded.block.sql","begin":"\\b((?:[A-Za-z_]\\w*\\.)?sql)\\b([ \\t]*)(`)","end":"`","patterns":[{"include":"#backtick_escape"},{"name":"comment.line.double-dash.sql","match":"(--)(?:\\\\.|[^`\\\\])*","captures":{"1":{"name":"punctuation.definition.comment.sql"}}},{"name":"string.quoted.other.sql","begin":"\\$(\\w*)\\$","end":"\\$\\1\\$"},{"name":"string.quoted.single.sql","match":"[Ee]'(?:\\\\.|''|[^'\\\\])*'"},{"include":"source.sql"}],"beginCaptures":{"1":{"name":"entity.name.function.tagged-template.prisma"},"3":{"name":"punctuation.definition.string.begin.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.prisma"}}},"tagged_literal_sql_quoted":{"match":"\\b((?:[A-Za-z_]\\w*\\.)?sql)\\b([ \\t]*)(['\"])((?:\\\\.|(?!\\3).)*)(\\3)","captures":{"1":{"name":"entity.name.function.tagged-template.prisma"},"3":{"name":"punctuation.definition.string.begin.prisma"},"4":{"name":"meta.embedded.block.sql","patterns":[{"name":"constant.character.escape.prisma","match":"\\\\."},{"include":"source.sql"}]},"5":{"name":"punctuation.definition.string.end.prisma"}}},"triple_comment":{"name":"comment.prisma","begin":"///","end":"$\\n?"},"type_alias_definition":{"patterns":[{"match":"^\\s*(\\w+)\\s*(=)\\s*(\\w+)","captures":{"1":{"name":"entity.name.type.alias.prisma"},"2":{"name":"keyword.operator.assignment.prisma"},"3":{"name":"support.type.primitive.prisma"}}},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"type_definition":{"patterns":[{"match":"^\\s*(type)\\s+(\\w+)\\s*=\\s*(\\w+)","captures":{"1":{"name":"storage.type.type.prisma"},"2":{"name":"entity.name.type.type.prisma"},"3":{"name":"support.type.primitive.prisma"}}},{"include":"#attribute_with_arguments"},{"include":"#attribute"}]},"types_block_definition":{"name":"source.prisma.embedded.source","begin":"^\\s*(types)\\s*({)","end":"\\s*\\}","patterns":[{"include":"#triple_comment"},{"include":"#double_comment"},{"include":"#multi_line_comment"},{"include":"#type_alias_definition"}],"beginCaptures":{"1":{"name":"storage.type.types.prisma"},"2":{"name":"punctuation.definition.tag.prisma"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.prisma"}}},"value":{"name":"source.prisma.value","patterns":[{"include":"#tagged_literal"},{"include":"#array"},{"include":"#functional"},{"include":"#literal"}]}}}
|
data/grammars/source.quint.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"Quint","scopeName":"source.quint","patterns":[{"include":"#hashbangLine"},{"include":"#docComments"},{"include":"#lineComments"},{"include":"#blockComments"},{"include":"#keywords"},{"include":"#storage"},{"include":"#constants"},{"include":"#punctuation"},{"include":"#operators"},{"include":"#identifiers"},{"include":"#strings"},{"include":"#numbers"}],"repository":{"blockComments":{"name":"comment.block.quint","begin":"/\\*","end":"\\*/"},"constants":{"patterns":[{"name":"constant.language.quint","match":"\\b(false|true|Bool|Int|Nat)\\b"}]},"docComments":{"patterns":[{"name":"comment.block.documentation.quint","match":"///.*$"}]},"hashbangLine":{"patterns":[{"name":"comment.line.hashbang.quint","match":"\\A#!.*$"}]},"identifiers":{"patterns":[{"name":"meta.quint","match":"[a-zA-Z_]([a-zA-Z0-9_])*"}]},"keywords":{"patterns":[{"name":"keyword.control.quint","match":"\\b(module|import|from|export|as|if|else|match|not|or|and|implies|iff|all|any|leadsTo|strongFair|weakFair)\\b"}]},"lineComments":{"patterns":[{"name":"comment.line.double-slash.quint","match":"//.*$"}]},"numbers":{"patterns":[{"name":"constant.numeric.quint","match":"-?(0x[0-9a-fA-F]([0-9a-fA-F]|_[0-9a-fA-F])*|0|[1-9]([0-9]|_[0-9])*)"}]},"operators":{"patterns":[{"name":"keyword.operator.quint","match":"(=\u003e|-\u003e|\u003c=|\u003e|\u003c|=|!=|'|\\.|\\*|\\+|-|/|%|\\^)"}]},"punctuation":{"patterns":[{"name":"keyword.operator.spread.quint","match":"\\.\\.\\."},{"name":"punctuation.accessor.quint","match":"::"},{"name":"punctuation.separator.quint","match":"\\|"}]},"storage":{"patterns":[{"name":"storage.modifier.quint","match":"\\b(type|assume|const|var|val|nondet|def|pure|action|temporal|run)\\b"},{"name":"storage.type.quint","match":"\\b(Set|List|int|str|bool)\\b"},{"name":"support.type.quint","match":"\\b(Map|Tup|Rec)\\b"}]},"strings":{"name":"string.quoted.double.quint","begin":"\"","end":"\""}}}
|
|
1
|
+
{"name":"Quint","scopeName":"source.quint","patterns":[{"include":"#hashbangLine"},{"include":"#docComments"},{"include":"#lineComments"},{"include":"#blockComments"},{"include":"#keywords"},{"include":"#storage"},{"include":"#constants"},{"include":"#punctuation"},{"include":"#operators"},{"include":"#identifiers"},{"include":"#strings"},{"include":"#numbers"}],"repository":{"blockComments":{"name":"comment.block.quint","begin":"/\\*","end":"\\*/"},"constants":{"patterns":[{"name":"constant.language.quint","match":"\\b(false|true|Bool|Int|Nat)\\b"}]},"docComments":{"patterns":[{"name":"comment.block.documentation.quint","match":"///.*$"}]},"hashbangLine":{"patterns":[{"name":"comment.line.hashbang.quint","match":"\\A#!.*$"}]},"identifiers":{"patterns":[{"name":"meta.quint","match":"[a-zA-Z_]([a-zA-Z0-9_])*"}]},"keywords":{"patterns":[{"name":"keyword.control.quint","match":"\\b(module|import|from|export|as|if|else|match|not|or|and|implies|iff|all|any|leadsTo|strongFair|weakFair)\\b"}]},"lineComments":{"patterns":[{"name":"comment.line.double-slash.quint","match":"//.*$"}]},"numbers":{"patterns":[{"name":"constant.numeric.quint","match":"-?(0x[0-9a-fA-F]([0-9a-fA-F]|_[0-9a-fA-F])*|0|[1-9]([0-9]|_[0-9])*)"}]},"operators":{"patterns":[{"name":"keyword.operator.quint","match":"(=\u003e|-\u003e|\u003c=|\u003e|\u003c|=|!=|'|\\.|\\*|\\+|-|/|%|\\^)"}]},"punctuation":{"patterns":[{"name":"keyword.operator.spread.quint","match":"\\.\\.\\."},{"name":"punctuation.accessor.quint","match":"::"},{"name":"punctuation.separator.quint","match":"\\|"}]},"storage":{"patterns":[{"name":"storage.modifier.quint","match":"\\b(type|assume|const|var|val|nondet|def|pure|action|temporal|run|invariant|observation)\\b"},{"name":"storage.type.quint","match":"\\b(Set|List|int|str|bool)\\b"},{"name":"support.type.quint","match":"\\b(Map|Tup|Rec)\\b"}]},"strings":{"name":"string.quoted.double.quint","begin":"\"","end":"\""}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"RAScript","scopeName":"source.rascript","patterns":[{"include":"#statements"}],"repository":{"
|
|
1
|
+
{"name":"RAScript","scopeName":"source.rascript","patterns":[{"include":"#statements"}],"repository":{"blocks":{"begin":"\\{","end":"\\}","patterns":[{"include":"$self"}]},"booleans":{"name":"constant.language.boolean.rascript","match":"\\b(?:true|false)\\b"},"brackets":{"begin":"\\[","end":"\\]","patterns":[{"include":"$self"}]},"call-arguments":{"patterns":[{"name":"variable.parameter.function-call.rascript","match":"\\b(?!\\d)\\w+(?=[\\t ]*=(?![=\u003e]))"},{"include":"$self"}]},"class-definitions":{"match":"(\\bclass\\b)[\\t ]*(\\b(?!\\d)\\w+)","captures":{"1":{"name":"keyword.class.rascript"},"2":{"name":"entity.name.class.rascript"}}},"comments":{"patterns":[{"name":"comment.block.rascript","begin":"/\\*","end":"\\*/","captures":{"0":{"name":"punctuation.definition.comment.block.rascript"}}},{"name":"comment.line.double-slash.rascript","begin":"//","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.single.rascript"}}}]},"controls":{"patterns":[{"begin":"\\b(if)[\\t ]*\\(","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"1":{"name":"keyword.control.rascript"}}},{"match":"\\b(for)[\\t ]+(\\b(?!\\d)\\w+)[\\t ]+(in)\\b","captures":{"1":{"name":"keyword.control.rascript"},"2":{"name":"variable.other.rascript"},"3":{"name":"keyword.control.rascript"}}},{"name":"keyword.control.rascript","match":"\\b(if|else|for|return)\\b"}]},"function-definitions":{"begin":"(\\bfunction\\b)\\s*(\\w+)\\s*\\(","end":"\\)","patterns":[{"include":"#comments"},{"begin":"=(?!=)","end":"(?=[,)])","patterns":[{"include":"$self"}]},{"name":"variable.parameter.rascript","match":"\\b(?!\\d)\\w+"}],"beginCaptures":{"1":{"name":"keyword.function.rascript"},"2":{"name":"entity.name.function.rascript"}}},"function-names":{"patterns":[{"begin":"(?\u003c!\\.)\\b(byte|word|tbyte|dword|bit0|bit1|bit2|bit3|bit4|bit5|bit6|bit7|bit|low4|high4|bitcount|word_be|tbyte_be|dword_be|float|float_be|mbf32|mbf32_le|double32|double32_be|prev|prior|bcd|identity_transform|ascii_string_equals|unicode_string_equals|remembered|repeated|once|tally|deduct|never|unless|measured|trigger_when|disable_when|always_true|always_false|format|substring|length|range|array_push|array_pop|array_map|array_contains|array_reduce|array_filter|field_map|dictionary_contains_key|any_of|all_of|none_of|sum_of|tally_of|max_of|assert|achievement|achievement_set|rich_presence_display|rich_presence_value|rich_presence_lookup|rich_presence_ascii_string_lookup|rich_presence_macro|rich_presence_conditional_display|leaderboard|__ornext)\\b\\s*\\(","end":"\\)","patterns":[{"include":"#call-arguments"}],"beginCaptures":{"1":{"name":"support.function.rascript"}}},{"begin":"\\b(\\w+)\\s*\\(","end":"\\)","patterns":[{"include":"#call-arguments"}],"beginCaptures":{"1":{"name":"entity.name.function.call.rascript"}}},{"begin":"\\b(?!(?:if|else|for|in|return|function|class|this|true|false)\\b)((?!\\d)\\w+)\\b(?=[\\t ]*(?://.*)?$)","end":"(?=[^\\s(/])","patterns":[{"include":"#comments"},{"begin":"\\(","end":"\\)","patterns":[{"include":"#call-arguments"}]}],"beginCaptures":{"1":{"name":"variable.other.rascript"}}}]},"header":{"patterns":[{"name":"comment.line.double-slash.rascript","match":"^//[\\t ]*(#ID)[\\t ]*=[\\t ]*(\\d+)$","captures":{"1":{"name":"keyword.other.id.rascript"},"2":{"name":"constant.numeric.id.rascript"}}},{"name":"comment.line.double-slash.rascript","match":"^//[\\t ]*(#MinimumVersion)[\\t ]*=[\\t ]*((?:0\\.7[3-9]|1\\.[0-4])(?:\\.0){0,2}|(?:1\\.3\\.1|1\\.4\\.[12])(?:\\.0)?)$","captures":{"1":{"name":"keyword.other.version.rascript"},"2":{"name":"constant.numeric.version.rascript"}}}]},"lambdas":{"patterns":[{"begin":"\\((?=(?:\\w|[\\t ,])*\\)[\\t ]*(?:=\u003e|\\{))","end":"\\)","patterns":[{"name":"variable.parameter.rascript","match":"\\b(?!\\d)\\w+"}]},{"name":"variable.parameter.rascript","match":"\\b(?!\\d)\\w+(?=[\\t ]*=\u003e)"}]},"numbers":{"patterns":[{"name":"constant.numeric.decimal.rascript","match":"\\b[0-9]+(\\.[0-9]+)?\\b"},{"name":"constant.numeric.hexadecimal.rascript","match":"\\b0x[[:xdigit:]]+\\b"}]},"parentheses":{"begin":"\\(","end":"\\)","patterns":[{"include":"$self"}]},"statements":{"patterns":[{"include":"#header"},{"include":"#comments"},{"include":"#controls"},{"include":"#function-definitions"},{"include":"#booleans"},{"include":"#strings"},{"include":"#numbers"},{"include":"#function-names"},{"include":"#class-definitions"},{"include":"#lambdas"},{"include":"#parentheses"},{"include":"#blocks"},{"include":"#brackets"},{"include":"#variable-language-this"},{"include":"#variable-assignment"},{"include":"#variable-other"}]},"strings":{"patterns":[{"name":"string.quoted.double.rascript","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.rascript","match":"\\\\u[[:xdigit:]]{4}"},{"name":"constant.character.escape.rascript","match":"\\\\."},{"match":"(\\{)([0-9]+)(\\})","captures":{"1":{"name":"punctuation.definition.template-expression.begin.rascript"},"2":{"name":"variable.other.rascript"},"3":{"name":"punctuation.definition.template-expression.end.rascript"}}}]}]},"variable-assignment":{"name":"variable.other.assignment.rascript","match":"\\b(?!\\d)\\w+(?=[\\t ]*=(?!=))"},"variable-language-this":{"name":"variable.language.this.rascript","match":"\\bthis\\b"},"variable-other":{"name":"variable.other.rascript","match":"\\b(?!\\d)\\w+"}}}
|