github-linguist 9.0.0 → 9.1.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/liquid.injection.json +1 -1
- data/grammars/source.abap.json +1 -1
- data/grammars/source.abl.json +1 -1
- data/grammars/source.answersetprogramming.json +1 -0
- data/grammars/source.apacheconf.json +1 -0
- data/grammars/source.assembly.json +1 -1
- data/grammars/source.ats.json +1 -1
- data/grammars/source.brs.json +1 -1
- data/grammars/source.bst.json +1 -0
- data/grammars/source.c.linker.json +1 -0
- data/grammars/source.cairo0.json +1 -1
- data/grammars/source.cobol.json +1 -1
- data/grammars/source.cs.json +1 -1
- data/grammars/source.curry.json +1 -1
- data/grammars/source.dds.dspf.json +1 -1
- data/grammars/source.erlang.json +1 -1
- data/grammars/source.gdscript.json +1 -1
- data/grammars/source.git-revlist.json +1 -1
- data/grammars/source.gleam.json +1 -1
- data/grammars/source.hack.json +1 -1
- data/grammars/source.hcl.json +1 -1
- data/grammars/source.ice.json +1 -1
- data/grammars/source.ispc.json +1 -0
- data/grammars/source.jai.json +1 -0
- data/grammars/source.json.comments.json +1 -0
- data/grammars/source.just.json +1 -1
- data/grammars/source.kdl.json +1 -0
- data/grammars/source.lean.markdown.json +1 -1
- data/grammars/source.lean4.markdown.json +1 -1
- data/grammars/source.matlab.json +1 -1
- data/grammars/source.mo.json +1 -1
- data/grammars/source.moonbit.json +1 -1
- data/grammars/source.mzn.json +1 -0
- data/grammars/source.nr.json +1 -1
- data/grammars/source.openesql.json +1 -1
- data/grammars/source.overpassql.json +1 -0
- data/grammars/source.polar.json +1 -1
- data/grammars/source.prisma.json +1 -1
- data/grammars/source.purescript.json +1 -1
- data/grammars/source.ql.json +1 -1
- data/grammars/source.qsharp.json +1 -1
- data/grammars/source.rascal.json +1 -1
- data/grammars/source.rpgle.json +1 -1
- data/grammars/source.scala.json +1 -1
- data/grammars/source.scm.json +1 -0
- data/grammars/source.slang.json +1 -0
- data/grammars/source.slice.json +1 -1
- data/grammars/source.sourcepawn.json +1 -1
- data/grammars/source.stan.json +1 -1
- data/grammars/source.swift.json +1 -1
- data/grammars/source.tact.json +1 -1
- data/grammars/source.talon.json +1 -1
- data/grammars/source.templ.json +1 -1
- data/grammars/source.textgrid.json +1 -1
- data/grammars/source.toc.json +1 -1
- data/grammars/source.ts.prismaClientRawSQL.json +1 -1
- data/grammars/source.tsp.json +1 -1
- data/grammars/source.typst.json +1 -1
- data/grammars/source.vue.json +1 -1
- data/grammars/source.wdl.json +1 -1
- data/grammars/source.xmake.json +1 -0
- data/grammars/text.html.liquid.json +1 -1
- data/grammars/text.html.markdown.d2.json +1 -1
- data/grammars/text.rtf.json +1 -1
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/generated.rb +1 -1
- data/lib/linguist/heuristics.yml +57 -17
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +155 -23
- data/lib/linguist/samples.json +1 -1
- data/lib/linguist/shebang.rb +1 -1
- metadata +16 -6
- data/grammars/source.apache-config.json +0 -1
- data/grammars/source.apache-config.mod_perl.json +0 -1
- data/grammars/text.html.erlang.yaws.json +0 -1
data/grammars/source.slice.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"Slice","scopeName":"source.slice","patterns":[{"include":"#slice"}],"repository":{"attribute":{"patterns":[{"include":"#attribute.file"},{"include":"#attribute.local"}]},"attribute.directive":{"begin":"[\\w]+(?:(::)\\w+)*","end":"(?=\\])|$","patterns":[{"include":"#comment"},{"name":"meta.attribute.arguments.slice","begin":"\\(","end":"(?=\\])|$","patterns":[{"include":"#comment"},{"include":"#string-literal"},{"name":"variable.other.constant.attribute.slice","match":"\\b\\w+\\b"},{"name":"punctuation.separator.comma.slice","match":","},{"begin":"\\)","end":"(?=\\])|$","patterns":[{"include":"#comment"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.parenthesis.close.attribute.slice"}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.parenthesis.open.attribute.slice"}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"entity.name.function.attribute.slice"},"1":{"name":"punctuation.separator.double-colon.slice"}}},"attribute.file":{"name":"meta.attribute.file.slice","begin":"\\[\\[","end":"(\\]\\])|$","patterns":[{"include":"#comment"},{"include":"#attribute.directive"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.double-bracket.open.attribute.slice"}},"endCaptures":{"1":{"name":"punctuation.double-bracket.close.attribute.slice"}}},"attribute.local":{"name":"meta.attribute.local.slice","begin":"\\[","end":"(\\]|$)","patterns":[{"include":"#comment"},{"include":"#attribute.directive"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.bracket.open.attribute.slice"}},"endCaptures":{"1":{"name":"punctuation.bracket.close.attribute.slice"}}},"class":{"name":"meta.class.slice","begin":"(?\u003c!\\\\)\\bclass\\b","end":"}","patterns":[{"include":"#standard"},{"begin":"\\\\?\\b\\w+\\b","end":"(?=})","patterns":[{"include":"#standard"},{"include":"#id-value"},{"include":"#field-container-inheritance"},{"include":"#field-container"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#storage.identifier"}]}}},{"include":"#field-container"},{"include":"#error"}],"beginCaptures":{"0":{"name":"storage.type.class.slice"}},"endCaptures":{"0":{"name":"punctuation.brace.close.slice"}}},"comment":{"patterns":[{"include":"#doc-comment.line"},{"include":"#comment.line"},{"include":"#comment.block"}]},"comment.block":{"name":"comment.block.slice","contentName":"text.slice","begin":"\\/\\*","end":"\\*\\/","beginCaptures":{"0":{"name":"punctuation.definition.comment.block.begin.slice"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.block.end.slice"}}},"comment.line":{"name":"comment.line.double-slash.slice","contentName":"text.slice","begin":"\\/\\/","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.line.double-slash.begin.slice"}}},"compilation-mode":{"name":"meta.mode.slice","begin":"(?\u003c!\\\\)\\bmode\\b","end":"$","patterns":[{"include":"#standard"},{"begin":"=","end":"$","patterns":[{"include":"#standard"},{"begin":"\\\\?(\\w+)","end":"$","patterns":[{"include":"#standard"}],"beginCaptures":{"1":{"patterns":[{"name":"variable.other.constant.mode.slice","match":"Slice1|Slice2"},{"include":"#error"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.slice"}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.other.mode.slice"}}},"custom-type":{"name":"meta.custom.slice","begin":"(?\u003c!\\\\)\\bcustom\\b","end":"$","patterns":[{"include":"#standard"},{"begin":"\\\\?\\b\\w+\\b","end":"$","patterns":[{"include":"#standard"}],"beginCaptures":{"0":{"patterns":[{"include":"#storage.identifier"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"storage.type.custom.slice"}}},"doc-comment.line":{"name":"comment.line.documentation.slice","begin":"\\/\\/\\/","end":"$","patterns":[{"include":"#documentation.param-tag"},{"include":"#documentation.returns-tag"},{"include":"#documentation.throws-tag"},{"include":"#documentation.see-tag"},{"include":"#documentation.text"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.line.documentation.begin.slice"}}},"documentation.identifier":{"patterns":[{"name":"variable.link.slice","match":"(?:\\b|(::))(?:[a-zA-Z_]\\w*(::)?)+\\b","captures":{"1":{"name":"punctuation.separator.double-colon.slice"},"2":{"name":"punctuation.separator.double-colon.slice"}}},{"include":"#error"}]},"documentation.identifier-with-section":{"begin":"\\b\\w+\\b","end":"$","patterns":[{"include":"#documentation.section"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#documentation.identifier"}]}}},"documentation.inline-tags":{"begin":"{(?=\\s*@)","end":"}","patterns":[{"include":"#documentation.link-tag"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.brace.open.documentation.slice"}},"endCaptures":{"0":{"name":"punctuation.brace.close.documentation.slice"}}},"documentation.link-tag":{"name":"meta.documentation.link.slice","begin":"(@)link\\b","end":"(?=})","patterns":[{"begin":"(?:\\b|::)(?:\\w+(?:::)?)+\\b","end":"(?=})","patterns":[{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#documentation.identifier"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.other.documentation.link.slice"},"1":{"name":"punctuation.definition.annotation.documentation.slice"}}},"documentation.param-tag":{"name":"meta.documentation.param.slice","begin":"(@)param\\b","end":"$","patterns":[{"include":"#documentation.identifier-with-section"},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.other.documentation.param.slice"},"1":{"name":"punctuation.definition.annotation.documentation.slice"}}},"documentation.returns-tag":{"name":"meta.documentation.returns.slice","begin":"(@)returns\\b","end":"$","patterns":[{"include":"#documentation.identifier-with-section"},{"include":"#documentation.section"},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.other.documentation.returns.slice"},"1":{"name":"punctuation.definition.annotation.documentation.slice"}}},"documentation.section":{"begin":":","end":"$","patterns":[{"include":"#documentation.text"}],"beginCaptures":{"0":{"name":"punctuation.separator.colon.documentation.slice"}}},"documentation.see-tag":{"name":"meta.documentation.see.slice","begin":"(@)see\\b","end":"$","patterns":[{"begin":"(?:\\b|::)(?:\\w+(?:::)?)+\\b","end":"$","patterns":[{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#documentation.identifier"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.other.documentation.see.slice"},"1":{"name":"punctuation.definition.annotation.documentation.slice"}}},"documentation.text":{"begin":"(?=\\S)","end":"$","patterns":[{"include":"#documentation.inline-tags"},{"name":"text.slice","match":"."}]},"documentation.throws-tag":{"name":"meta.documentation.throws.slice","begin":"(@)throws\\b","end":"$","patterns":[{"begin":"(?:\\b|::)(?:\\w+(?:::)?)+\\b","end":"$","patterns":[{"include":"#documentation.section"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#documentation.identifier"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.other.documentation.throws.slice"},"1":{"name":"punctuation.definition.annotation.documentation.slice"}}},"enum":{"name":"meta.enum.slice","begin":"(?\u003c!\\\\)\\benum\\b","end":"}","patterns":[{"include":"#standard"},{"begin":"\\\\?\\b\\w+\\b","end":"(?=})","patterns":[{"include":"#standard"},{"begin":":","end":"(?=})","patterns":[{"include":"#standard"},{"include":"#enumerator-container"},{"include":"#type.identifier"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.separator.colon.slice"}}},{"include":"#enumerator-container"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#storage.identifier"}]}}},{"include":"#enumerator-container"},{"include":"#error"}],"beginCaptures":{"0":{"name":"storage.type.enum.slice"}},"endCaptures":{"0":{"name":"punctuation.brace.close.slice"}}},"enumerator":{"name":"meta.enumerator.slice","begin":"\\\\?\\w+","end":"(?=[,}])|$","patterns":[{"include":"#standard"},{"begin":"\\(","end":"\\)","patterns":[{"include":"#tag"},{"include":"#field"},{"name":"punctuation.separator.comma.slice","match":","},{"include":"#slice"}],"beginCaptures":{"0":{"name":"punctuation.parenthesis.open.slice"}},"endCaptures":{"0":{"name":"punctuation.parenthesis.close.slice"}}},{"include":"#enumerator-value"}],"beginCaptures":{"0":{"name":"variable.other.constant.enum.slice","patterns":[{"include":"#field.identifier"}]}}},"enumerator-container":{"begin":"{","end":"(?=})","patterns":[{"include":"#enumerator"},{"name":"punctuation.separator.comma.slice","match":","},{"include":"#slice"}],"beginCaptures":{"0":{"name":"punctuation.brace.open.slice"}}},"enumerator-value":{"begin":"=","end":"(?=[,}])|$","patterns":[{"include":"#standard"},{"begin":"(?=-|\\b)[\\w-]+\\b","end":"(?=[,}])|$","patterns":[{"include":"#standard"}],"beginCaptures":{"0":{"patterns":[{"include":"#integer-literal"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.slice"}}},"error":{"name":"invalid","match":"\\S"},"exception":{"name":"meta.exception.slice","begin":"(?\u003c!\\\\)\\bexception\\b","end":"}","patterns":[{"include":"#standard"},{"begin":"\\\\?\\b\\w+\\b","end":"(?=})","patterns":[{"include":"#standard"},{"include":"#field-container-inheritance"},{"include":"#field-container"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#storage.identifier"}]}}},{"include":"#field-container"},{"include":"#error"}],"beginCaptures":{"0":{"name":"storage.type.exception.slice"}},"endCaptures":{"0":{"name":"punctuation.brace.close.slice"}}},"field":{"name":"meta.field.slice","begin":"\\\\?\\w+","end":"(?=[,}\\)])|$","patterns":[{"include":"#standard"},{"begin":":","end":"(?=[,}\\)])|$","patterns":[{"include":"#standard"},{"include":"#type.identifier"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.separator.colon.slice"}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"entity.name.variable.slice","patterns":[{"include":"#field.identifier"}]}}},"field-container":{"begin":"{","end":"(?=})","patterns":[{"include":"#tag"},{"include":"#field"},{"name":"punctuation.separator.comma.slice","match":","},{"include":"#slice"}],"beginCaptures":{"0":{"name":"punctuation.brace.open.slice"}}},"field-container-inheritance":{"begin":":","end":"(?=})","patterns":[{"include":"#standard"},{"include":"#field-container"},{"include":"#type.identifier"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.separator.colon.slice"}}},"field.identifier":{"patterns":[{"match":"(\\\\?)\\b([a-zA-Z_]\\w*)\\b","captures":{"1":{"name":"punctuation.definition.identifier.escape.slice"},"2":{"patterns":[{"include":"#reserved-identifiers"}]}}},{"include":"#error"}]},"id-value":{"begin":"\\(","end":"\\)","patterns":[{"include":"#standard"},{"begin":"[^\\s\\)]+","end":"(?=\\))","patterns":[{"include":"#standard"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#integer-literal"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.parenthesis.open.slice"}},"endCaptures":{"0":{"name":"punctuation.parenthesis.close.slice"}}},"integer-literal":{"patterns":[{"name":"constant.numeric.bin.slice","match":"(-)?\\b(0b)(?:[0-1_]+)\\b","captures":{"1":{"name":"punctuation.definition.numeric.negative.slice"},"2":{"name":"punctuation.definition.numeric.bin.slice"}}},{"name":"constant.numeric.dec.slice","match":"(-)?\\b(?:[\\d_]+)\\b","captures":{"1":{"name":"punctuation.definition.numeric.negative.slice"}}},{"name":"constant.numeric.hex.slice","match":"(-)?\\b(0x)(?:[\\da-fA-F_]+)\\b","captures":{"1":{"name":"punctuation.definition.numeric.negative.slice"},"2":{"name":"punctuation.definition.numeric.hex.slice"}}},{"include":"#error"}]},"interface":{"name":"meta.interface.slice","begin":"(?\u003c!\\\\)\\binterface\\b","end":"}","patterns":[{"include":"#standard"},{"begin":"\\\\?\\b\\w+\\b","end":"(?=})","patterns":[{"include":"#standard"},{"begin":":","end":"(?=})","patterns":[{"include":"#standard"},{"include":"#operation-container"},{"name":"punctuation.separator.comma.slice","match":","},{"include":"#type.identifier"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.separator.colon.slice"}}},{"include":"#operation-container"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#storage.identifier"}]}}},{"include":"#operation-container"},{"include":"#error"}],"beginCaptures":{"0":{"name":"storage.type.interface.slice"}},"endCaptures":{"0":{"name":"punctuation.brace.close.slice"}}},"modifier-keywords":{"match":"(?\u003c!\\\\)\\b(?:(compact)|(idempotent)|(stream)|(tag\\([-\\w]+\\))|(throws)|(unchecked))(\\b|(?\u003c=\\W))","captures":{"1":{"name":"storage.modifier.compact.slice"},"2":{"name":"storage.modifier.idempotent.slice"},"3":{"name":"storage.modifier.stream.slice"},"4":{"name":"meta.tag.slice","patterns":[{"include":"#tag"}]},"5":{"name":"storage.modifier.throws.slice"},"6":{"name":"storage.modifier.unchecked.slice"}}},"module-declaration":{"name":"meta.module.slice","begin":"(?\u003c!\\\\)\\bmodule\\b","end":"$","patterns":[{"include":"#standard"},{"begin":"(?=\\b|\\\\)[\\\\\\w:]+(?\u003c=\\b|\\W)","end":"$","patterns":[{"include":"#standard"}],"beginCaptures":{"0":{"patterns":[{"include":"#storage.identifier"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.other.module.slice"}}},"operation-container":{"begin":"{","end":"(?=})","patterns":[{"include":"#tag"},{"name":"storage.modifier.stream.slice","match":"\\bstream\\b"},{"contentName":"meta.exception-list.slice","begin":"\\b(throws)\\b\\s*(\\()","end":"\\)","patterns":[{"include":"#standard"},{"name":"punctuation.separator.comma.slice","match":","},{"include":"#storage.identifier"},{"include":"#slice"}],"beginCaptures":{"1":{"name":"storage.modifier.throws.slice"},"2":{"name":"punctuation.parenthesis.open.slice"}},"endCaptures":{"0":{"name":"punctuation.parenthesis.close.slice"}}},{"name":"storage.modifier.throws.slice","match":"\\bthrows\\b"},{"name":"punctuation.definition.returns.slice","match":"-\u003e"},{"name":"punctuation.separator.comma.slice","match":","},{"name":"meta.parameter-list.slice","begin":"\\(","end":"\\)","patterns":[{"include":"#tag"},{"include":"#parameter"},{"name":"punctuation.separator.comma.slice","match":","},{"include":"#slice"}],"beginCaptures":{"0":{"name":"punctuation.parenthesis.open.slice"}},"endCaptures":{"0":{"name":"punctuation.parenthesis.close.slice"}}},{"match":"\\\\?\\w+(?=\\s*\\()","captures":{"0":{"name":"entity.name.function.slice","patterns":[{"include":"#field.identifier"}]}}},{"include":"#slice"}],"beginCaptures":{"0":{"name":"punctuation.brace.open.slice"}}},"parameter":{"name":"meta.parameter.slice","begin":"\\\\?\\w+","end":"(?=[,\\)])|$","patterns":[{"include":"#standard"},{"begin":":","end":"(?=[,\\)])|$","patterns":[{"include":"#standard"},{"name":"storage.modifier.stream.slice","match":"\\bstream\\b"},{"include":"#type.identifier"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.separator.colon.slice"}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"entity.name.variable.slice","patterns":[{"include":"#field.identifier"}]}}},"preprocessor":{"patterns":[{"include":"#preprocessor.define"},{"include":"#preprocessor.undef"},{"include":"#preprocessor.if"},{"include":"#preprocessor.elif"},{"include":"#preprocessor.else"},{"include":"#preprocessor.endif"},{"include":"#preprocessor.unknown"},{"include":"#preprocessor.unknown"}]},"preprocessor.define":{"name":"meta.preprocessor.define.slice","begin":"^\\s*((#)\\s*define)\\b","end":"$","patterns":[{"include":"#comment.line"},{"include":"#preprocessor.single-identifier"},{"include":"#error"}],"beginCaptures":{"1":{"name":"keyword.control.preprocessor.undef.slice"},"2":{"name":"punctuation.definition.preprocessor.slice"}}},"preprocessor.elif":{"name":"meta.preprocessor.elif.slice","begin":"^\\s*((#)\\s*elif)\\b","end":"$","patterns":[{"include":"#preprocessor.expression"}],"beginCaptures":{"1":{"name":"keyword.control.preprocessor.elif.slice"},"2":{"name":"punctuation.definition.preprocessor.slice"}}},"preprocessor.else":{"name":"meta.preprocessor.else.slice","begin":"^\\s*((#)\\s*else)\\b","end":"$","patterns":[{"include":"#comment.line"},{"include":"#error"}],"beginCaptures":{"1":{"name":"keyword.control.preprocessor.else.slice"},"2":{"name":"punctuation.definition.preprocessor.slice"}}},"preprocessor.endif":{"name":"meta.preprocessor.endif.slice","begin":"^\\s*((#)\\s*endif)\\b","end":"$","patterns":[{"include":"#comment.line"},{"include":"#error"}],"beginCaptures":{"1":{"name":"keyword.control.preprocessor.endif.slice"},"2":{"name":"punctuation.definition.preprocessor.slice"}}},"preprocessor.expression":{"patterns":[{"include":"#comment.line"},{"match":"(!)|(\u0026\u0026)|(\\|\\|)|(\\()|(\\))","captures":{"1":{"name":"keyword.operator.logical.not.slice"},"2":{"name":"keyword.operator.logical.and.slice"},"3":{"name":"keyword.operator.logical.or.slice"},"4":{"name":"punctuation.parenthesis.open.slice"},"5":{"name":"punctuation.parenthesis.close.slice"}}},{"include":"#preprocessor.identifier"},{"include":"#error"}]},"preprocessor.identifier":{"patterns":[{"name":"constant.other.symbol.preprocessor.slice","match":"\\b[a-zA-Z_]\\w*\\b"},{"include":"#error"}]},"preprocessor.if":{"name":"meta.preprocessor.if.slice","begin":"^\\s*((#)\\s*if)\\b","end":"$","patterns":[{"include":"#preprocessor.expression"}],"beginCaptures":{"1":{"name":"keyword.control.preprocessor.if.slice"},"2":{"name":"punctuation.definition.preprocessor.slice"}}},"preprocessor.single-identifier":{"begin":"\\b\\w+\\b","end":"$","patterns":[{"include":"#comment.line"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#preprocessor.identifier"}]}}},"preprocessor.undef":{"name":"meta.preprocessor.undef.slice","begin":"^\\s*((#)\\s*undef)\\b","end":"$","patterns":[{"include":"#comment.line"},{"include":"#preprocessor.single-identifier"},{"include":"#error"}],"beginCaptures":{"1":{"name":"keyword.control.preprocessor.undef.slice"},"2":{"name":"punctuation.definition.preprocessor.slice"}}},"preprocessor.unknown":{"name":"meta.preprocessor.unknown.slice","begin":"^\\s*((#)\\s*\\w*)\\b","end":"$","patterns":[{"include":"#comment.line"},{"include":"#error"}],"beginCaptures":{"1":{"name":"invalid.illegal.slice"},"2":{"name":"punctuation.definition.preprocessor.slice"}}},"reserved-identifiers":{"name":"invalid.illegal.identifier.slice","match":"(?\u003c!\\\\)\\b(?:module|struct|exception|class|interface|enum|custom|typealias|Sequence|Dictionary|Result|bool|int8|uint8|int16|uint16|int32|uint32|varint32|varuint32|int64|uint64|varint62|varuint62|float32|float64|string|AnyClass|compact|idempotent|mode|stream|tag|throws|unchecked)\\b"},"slice":{"patterns":[{"include":"#standard"},{"include":"#compilation-mode"},{"include":"#module-declaration"},{"include":"#struct"},{"include":"#class"},{"include":"#exception"},{"include":"#enum"},{"include":"#interface"},{"include":"#custom-type"},{"include":"#type-alias"},{"include":"#modifier-keywords"},{"include":"#type.identifier"}]},"standard":{"patterns":[{"include":"#comment"},{"include":"#preprocessor"},{"include":"#attribute"}]},"storage.identifier":{"patterns":[{"name":"entity.name.class.slice","match":"(?:\\b|(::)|(?=\\\\))(?:(\\\\?)([a-zA-Z_]\\w*)(::)?)+\\b","captures":{"1":{"name":"punctuation.separator.double-colon.slice"},"2":{"name":"punctuation.definition.identifier.escape.slice"},"3":{"patterns":[{"include":"#reserved-identifiers"}]},"4":{"name":"punctuation.separator.double-colon.slice"}}},{"include":"#error"}]},"string-literal":{"name":"string.quoted.double.slice","begin":"\"","end":"(\")|$","patterns":[{"name":"constant.character.escape.slice","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.slice"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.slice"}}},"struct":{"name":"meta.struct.slice","begin":"(?\u003c!\\\\)\\bstruct\\b","end":"}","patterns":[{"include":"#standard"},{"begin":"\\\\?\\b\\w+\\b","end":"(?=})","patterns":[{"include":"#standard"},{"include":"#field-container"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#storage.identifier"}]}}},{"include":"#field-container"},{"include":"#error"}],"beginCaptures":{"0":{"name":"storage.type.struct.slice"}},"endCaptures":{"0":{"name":"punctuation.brace.close.slice"}}},"tag":{"begin":"\\b(tag)\\s*(?=\\()","end":"(?\u003c=\\))","patterns":[{"include":"#id-value"}],"beginCaptures":{"1":{"name":"storage.modifier.tag.slice"}}},"type-alias":{"name":"meta.typealias.slice","begin":"(?\u003c!\\\\)\\btypealias\\b","end":"$","patterns":[{"include":"#standard"},{"begin":"\\\\?\\b\\w+\\b","end":"$","patterns":[{"include":"#standard"},{"begin":"=","end":"$","patterns":[{"include":"#standard"},{"include":"#type.identifier"},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.slice"}}},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#storage.identifier"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"storage.type.alias.slice"}}},"type-keywords":{"match":"(?\u003c!\\\\)\\b(?:(bool)|(int8)|(uint8)|(int16)|(uint16)|(int32)|(uint32)|(varint32)|(varuint32)|(int64)|(uint64)|(varint62)|(varuint62)|(float32)|(float64)|(string)|(AnyClass)|(Sequence)|(Dictionary)|(Result))\\b","captures":{"1":{"name":"storage.type.bool.slice"},"10":{"name":"storage.type.int64.slice"},"11":{"name":"storage.type.uint64.slice"},"12":{"name":"storage.type.varint62.slice"},"13":{"name":"storage.type.varuint62.slice"},"14":{"name":"storage.type.float32.slice"},"15":{"name":"storage.type.float64.slice"},"16":{"name":"storage.type.string.slice"},"17":{"name":"storage.type.AnyClass.slice"},"18":{"name":"storage.type.sequence.slice"},"19":{"name":"storage.type.dictionary.slice"},"2":{"name":"storage.type.int8.slice"},"20":{"name":"storage.type.result.slice"},"3":{"name":"storage.type.uint8.slice"},"4":{"name":"storage.type.int16.slice"},"5":{"name":"storage.type.uint16.slice"},"6":{"name":"storage.type.int32.slice"},"7":{"name":"storage.type.uint32.slice"},"8":{"name":"storage.type.varint32.slice"},"9":{"name":"storage.type.varuint32.slice"}}},"type-name":{"patterns":[{"include":"#type-keywords"},{"include":"#storage.identifier"}]},"type.identifier":{"patterns":[{"name":"meta.generic.parameters.slice","begin":"(?=\\b|\\W)([\\\\\\w:]+)\\s*(\\\u003c)","end":"(\\\u003e)\\s*(\\?)?","patterns":[{"include":"#standard"},{"name":"punctuation.separator.comma.slice","match":","},{"include":"#type.identifier"},{"include":"#error"}],"beginCaptures":{"1":{"patterns":[{"include":"#type-name"}]},"2":{"name":"punctuation.angle.open.slice"}},"endCaptures":{"1":{"name":"punctuation.angle.close.slice"},"2":{"name":"punctuation.definition.optional.slice"}}},{"match":"(?=\\b|\\W)([\\\\\\w:]+)\\s*(\\?)?(?\u003c=\\b|\\W)","captures":{"1":{"patterns":[{"include":"#type-name"}]},"2":{"name":"punctuation.definition.optional.slice"}}}]}}}
|
1
|
+
{"name":"Slice","scopeName":"source.slice","patterns":[{"include":"#slice"}],"repository":{"attribute":{"patterns":[{"include":"#attribute.file"},{"include":"#attribute.local"}]},"attribute.directive":{"begin":"[\\w]+(?:(::)\\w+)*","end":"(?=\\])|$","patterns":[{"include":"#comment"},{"name":"meta.attribute.arguments.slice","begin":"\\(","end":"(?=\\])|$","patterns":[{"include":"#comment"},{"include":"#string-literal"},{"name":"variable.other.constant.attribute.slice","match":"\\b\\w+\\b"},{"name":"punctuation.separator.comma.slice","match":","},{"begin":"\\)","end":"(?=\\])|$","patterns":[{"include":"#comment"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.parenthesis.close.attribute.slice"}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.parenthesis.open.attribute.slice"}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"entity.name.function.attribute.slice"},"1":{"name":"punctuation.separator.double-colon.slice"}}},"attribute.file":{"name":"meta.attribute.file.slice","begin":"\\[\\[","end":"(\\]\\])|$","patterns":[{"include":"#comment"},{"include":"#attribute.directive"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.double-bracket.open.attribute.slice"}},"endCaptures":{"1":{"name":"punctuation.double-bracket.close.attribute.slice"}}},"attribute.local":{"name":"meta.attribute.local.slice","begin":"\\[","end":"(\\]|$)","patterns":[{"include":"#comment"},{"include":"#attribute.directive"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.bracket.open.attribute.slice"}},"endCaptures":{"1":{"name":"punctuation.bracket.close.attribute.slice"}}},"class":{"name":"meta.class.slice","begin":"(?\u003c!\\\\)\\bclass\\b","end":"}","patterns":[{"include":"#standard"},{"begin":"\\\\?\\b\\w+\\b","end":"(?=})","patterns":[{"include":"#standard"},{"include":"#id-value"},{"include":"#field-container-inheritance"},{"include":"#field-container"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#storage.identifier"}]}}},{"include":"#field-container"},{"include":"#error"}],"beginCaptures":{"0":{"name":"storage.type.class.slice"}},"endCaptures":{"0":{"name":"punctuation.brace.close.slice"}}},"comment":{"patterns":[{"include":"#doc-comment.line"},{"include":"#comment.line"},{"include":"#comment.block"}]},"comment.block":{"name":"comment.block.slice","contentName":"text.slice","begin":"\\/\\*","end":"\\*\\/","beginCaptures":{"0":{"name":"punctuation.definition.comment.block.begin.slice"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.block.end.slice"}}},"comment.line":{"name":"comment.line.double-slash.slice","contentName":"text.slice","begin":"\\/\\/","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.line.double-slash.begin.slice"}}},"compilation-mode":{"name":"meta.mode.slice","begin":"(?\u003c!\\\\)\\bmode\\b","end":"$","patterns":[{"include":"#standard"},{"begin":"=","end":"$","patterns":[{"include":"#standard"},{"begin":"\\\\?(\\w+)","end":"$","patterns":[{"include":"#standard"}],"beginCaptures":{"1":{"patterns":[{"name":"variable.other.constant.mode.slice","match":"Slice1|Slice2"},{"include":"#error"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.slice"}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.other.mode.slice"}}},"custom-type":{"name":"meta.custom.slice","begin":"(?\u003c!\\\\)\\bcustom\\b","end":"$","patterns":[{"include":"#standard"},{"begin":"\\\\?\\b\\w+\\b","end":"$","patterns":[{"include":"#standard"}],"beginCaptures":{"0":{"patterns":[{"include":"#storage.identifier"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"storage.type.custom.slice"}}},"doc-comment.line":{"name":"comment.line.documentation.slice","begin":"\\/\\/\\/","end":"$","patterns":[{"include":"#documentation.param-tag"},{"include":"#documentation.returns-tag"},{"include":"#documentation.throws-tag"},{"include":"#documentation.see-tag"},{"include":"#documentation.text"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.line.documentation.begin.slice"}}},"documentation.identifier":{"patterns":[{"name":"variable.link.slice","match":"(?:\\b|(::))(?:[a-zA-Z_]\\w*(::)?)+\\b","captures":{"1":{"name":"punctuation.separator.double-colon.slice"},"2":{"name":"punctuation.separator.double-colon.slice"}}},{"include":"#error"}]},"documentation.identifier-with-section":{"begin":"\\b\\w+\\b","end":"$","patterns":[{"include":"#documentation.section"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#documentation.identifier"}]}}},"documentation.inline-tags":{"begin":"{(?=\\s*@)","end":"}","patterns":[{"include":"#documentation.link-tag"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.brace.open.documentation.slice"}},"endCaptures":{"0":{"name":"punctuation.brace.close.documentation.slice"}}},"documentation.link-tag":{"name":"meta.documentation.link.slice","begin":"(@)link\\b","end":"(?=})","patterns":[{"begin":"(?:\\b|::)(?:\\w+(?:::)?)+\\b","end":"(?=})","patterns":[{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#documentation.identifier"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.other.documentation.link.slice"},"1":{"name":"punctuation.definition.annotation.documentation.slice"}}},"documentation.param-tag":{"name":"meta.documentation.param.slice","begin":"(@)param\\b","end":"$","patterns":[{"include":"#documentation.identifier-with-section"},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.other.documentation.param.slice"},"1":{"name":"punctuation.definition.annotation.documentation.slice"}}},"documentation.returns-tag":{"name":"meta.documentation.returns.slice","begin":"(@)returns\\b","end":"$","patterns":[{"include":"#documentation.identifier-with-section"},{"include":"#documentation.section"},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.other.documentation.returns.slice"},"1":{"name":"punctuation.definition.annotation.documentation.slice"}}},"documentation.section":{"begin":":","end":"$","patterns":[{"include":"#documentation.text"}],"beginCaptures":{"0":{"name":"punctuation.separator.colon.documentation.slice"}}},"documentation.see-tag":{"name":"meta.documentation.see.slice","begin":"(@)see\\b","end":"$","patterns":[{"begin":"(?:\\b|::)(?:\\w+(?:::)?)+\\b","end":"$","patterns":[{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#documentation.identifier"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.other.documentation.see.slice"},"1":{"name":"punctuation.definition.annotation.documentation.slice"}}},"documentation.text":{"begin":"(?=\\S)","end":"$","patterns":[{"include":"#documentation.inline-tags"},{"name":"text.slice","match":"."}]},"documentation.throws-tag":{"name":"meta.documentation.throws.slice","begin":"(@)throws\\b","end":"$","patterns":[{"begin":"(?:\\b|::)(?:\\w+(?:::)?)+\\b","end":"$","patterns":[{"include":"#documentation.section"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#documentation.identifier"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.other.documentation.throws.slice"},"1":{"name":"punctuation.definition.annotation.documentation.slice"}}},"enum":{"name":"meta.enum.slice","begin":"(?\u003c!\\\\)\\benum\\b","end":"}","patterns":[{"include":"#standard"},{"begin":"\\\\?\\b\\w+\\b","end":"(?=})","patterns":[{"include":"#standard"},{"begin":":","end":"(?=})","patterns":[{"include":"#standard"},{"include":"#enumerator-container"},{"include":"#type.identifier"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.separator.colon.slice"}}},{"include":"#enumerator-container"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#storage.identifier"}]}}},{"include":"#enumerator-container"},{"include":"#error"}],"beginCaptures":{"0":{"name":"storage.type.enum.slice"}},"endCaptures":{"0":{"name":"punctuation.brace.close.slice"}}},"enumerator":{"name":"meta.enumerator.slice","begin":"\\\\?\\w+","end":"(?=[,}])|$","patterns":[{"include":"#standard"},{"begin":"\\(","end":"\\)","patterns":[{"include":"#tag"},{"include":"#field"},{"name":"punctuation.separator.comma.slice","match":","},{"include":"#slice"}],"beginCaptures":{"0":{"name":"punctuation.parenthesis.open.slice"}},"endCaptures":{"0":{"name":"punctuation.parenthesis.close.slice"}}},{"include":"#enumerator-value"}],"beginCaptures":{"0":{"name":"variable.other.constant.enum.slice","patterns":[{"include":"#field.identifier"}]}}},"enumerator-container":{"begin":"{","end":"(?=})","patterns":[{"include":"#enumerator"},{"name":"punctuation.separator.comma.slice","match":","},{"include":"#slice"}],"beginCaptures":{"0":{"name":"punctuation.brace.open.slice"}}},"enumerator-value":{"begin":"=","end":"(?=[,}])|$","patterns":[{"include":"#standard"},{"begin":"(?=-|\\b)[\\w-]+\\b","end":"(?=[,}])|$","patterns":[{"include":"#standard"}],"beginCaptures":{"0":{"patterns":[{"include":"#integer-literal"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.slice"}}},"error":{"name":"invalid","match":"\\S"},"exception":{"name":"meta.exception.slice","begin":"(?\u003c!\\\\)\\bexception\\b","end":"}","patterns":[{"include":"#standard"},{"begin":"\\\\?\\b\\w+\\b","end":"(?=})","patterns":[{"include":"#standard"},{"include":"#field-container-inheritance"},{"include":"#field-container"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#storage.identifier"}]}}},{"include":"#field-container"},{"include":"#error"}],"beginCaptures":{"0":{"name":"storage.type.exception.slice"}},"endCaptures":{"0":{"name":"punctuation.brace.close.slice"}}},"field":{"name":"meta.field.slice","begin":"\\\\?\\w+","end":"(?=[,}\\)])|$","patterns":[{"include":"#standard"},{"begin":":","end":"(?=[,}\\)])|$","patterns":[{"include":"#standard"},{"include":"#type.identifier"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.separator.colon.slice"}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"entity.name.variable.slice","patterns":[{"include":"#field.identifier"}]}}},"field-container":{"begin":"{","end":"(?=})","patterns":[{"include":"#tag"},{"include":"#field"},{"name":"punctuation.separator.comma.slice","match":","},{"include":"#slice"}],"beginCaptures":{"0":{"name":"punctuation.brace.open.slice"}}},"field-container-inheritance":{"begin":":","end":"(?=})","patterns":[{"include":"#standard"},{"include":"#field-container"},{"include":"#type.identifier"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.separator.colon.slice"}}},"field.identifier":{"patterns":[{"match":"(\\\\?)\\b([a-zA-Z_]\\w*)\\b","captures":{"1":{"name":"punctuation.definition.identifier.escape.slice"},"2":{"patterns":[{"include":"#reserved-identifiers"}]}}},{"include":"#error"}]},"id-value":{"begin":"\\(","end":"\\)","patterns":[{"include":"#standard"},{"begin":"[^\\s\\)]+","end":"(?=\\))","patterns":[{"include":"#standard"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#integer-literal"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.parenthesis.open.slice"}},"endCaptures":{"0":{"name":"punctuation.parenthesis.close.slice"}}},"integer-literal":{"patterns":[{"name":"constant.numeric.bin.slice","match":"(-)?\\b(0b)(?:[0-1_]+)\\b","captures":{"1":{"name":"punctuation.definition.numeric.negative.slice"},"2":{"name":"punctuation.definition.numeric.bin.slice"}}},{"name":"constant.numeric.dec.slice","match":"(-)?\\b(?:[\\d_]+)\\b","captures":{"1":{"name":"punctuation.definition.numeric.negative.slice"}}},{"name":"constant.numeric.hex.slice","match":"(-)?\\b(0x)(?:[\\da-fA-F_]+)\\b","captures":{"1":{"name":"punctuation.definition.numeric.negative.slice"},"2":{"name":"punctuation.definition.numeric.hex.slice"}}},{"include":"#error"}]},"interface":{"name":"meta.interface.slice","begin":"(?\u003c!\\\\)\\binterface\\b","end":"}","patterns":[{"include":"#standard"},{"begin":"\\\\?\\b\\w+\\b","end":"(?=})","patterns":[{"include":"#standard"},{"begin":":","end":"(?=})","patterns":[{"include":"#standard"},{"include":"#operation-container"},{"name":"punctuation.separator.comma.slice","match":","},{"include":"#type.identifier"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.separator.colon.slice"}}},{"include":"#operation-container"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#storage.identifier"}]}}},{"include":"#operation-container"},{"include":"#error"}],"beginCaptures":{"0":{"name":"storage.type.interface.slice"}},"endCaptures":{"0":{"name":"punctuation.brace.close.slice"}}},"modifier-keywords":{"match":"(?\u003c!\\\\)\\b(?:(compact)|(idempotent)|(stream)|(tag\\([-\\w]+\\))|(throws)|(unchecked))(\\b|(?\u003c=\\W))","captures":{"1":{"name":"storage.modifier.compact.slice"},"2":{"name":"storage.modifier.idempotent.slice"},"3":{"name":"storage.modifier.stream.slice"},"4":{"name":"meta.tag.slice","patterns":[{"include":"#tag"}]},"5":{"name":"storage.modifier.throws.slice"},"6":{"name":"storage.modifier.unchecked.slice"}}},"module-declaration":{"name":"meta.module.slice","begin":"(?\u003c!\\\\)\\bmodule\\b","end":"$","patterns":[{"include":"#standard"},{"begin":"(?=\\b|\\\\)[\\\\\\w:]+(?\u003c=\\b|\\W)","end":"$","patterns":[{"include":"#standard"}],"beginCaptures":{"0":{"patterns":[{"include":"#storage.identifier"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.other.module.slice"}}},"operation":{"patterns":[{"include":"#tag"},{"name":"storage.modifier.stream.slice","match":"\\bstream\\b"},{"contentName":"meta.exception-list.slice","begin":"\\b(throws)\\b\\s*(\\()","end":"\\)","patterns":[{"include":"#standard"},{"name":"punctuation.separator.comma.slice","match":","},{"include":"#storage.identifier"},{"include":"#slice"}],"beginCaptures":{"1":{"name":"storage.modifier.throws.slice"},"2":{"name":"punctuation.parenthesis.open.slice"}},"endCaptures":{"0":{"name":"punctuation.parenthesis.close.slice"}}},{"name":"storage.modifier.throws.slice","match":"\\bthrows\\b"},{"name":"punctuation.definition.returns.slice","match":"-\u003e"},{"name":"punctuation.separator.comma.slice","match":","},{"name":"meta.parameter-list.slice","begin":"\\(","end":"\\)","patterns":[{"include":"#tag"},{"include":"#parameter"},{"name":"punctuation.separator.comma.slice","match":","},{"include":"#slice"}],"beginCaptures":{"0":{"name":"punctuation.parenthesis.open.slice"}},"endCaptures":{"0":{"name":"punctuation.parenthesis.close.slice"}}},{"match":"\\\\?\\w+(?=\\s*\\()","captures":{"0":{"name":"entity.name.function.slice","patterns":[{"include":"#field.identifier"}]}}}]},"operation-container":{"begin":"{","end":"(?=})","patterns":[{"include":"#slice"}],"beginCaptures":{"0":{"name":"punctuation.brace.open.slice"}}},"parameter":{"name":"meta.parameter.slice","begin":"\\\\?\\w+","end":"(?=[,\\)])|$","patterns":[{"include":"#standard"},{"begin":":","end":"(?=[,\\)])|$","patterns":[{"include":"#standard"},{"name":"storage.modifier.stream.slice","match":"\\bstream\\b"},{"include":"#type.identifier"},{"include":"#error"}],"beginCaptures":{"0":{"name":"punctuation.separator.colon.slice"}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"entity.name.variable.slice","patterns":[{"include":"#field.identifier"}]}}},"preprocessor":{"patterns":[{"include":"#preprocessor.define"},{"include":"#preprocessor.undef"},{"include":"#preprocessor.if"},{"include":"#preprocessor.elif"},{"include":"#preprocessor.else"},{"include":"#preprocessor.endif"},{"include":"#preprocessor.unknown"},{"include":"#preprocessor.unknown"}]},"preprocessor.define":{"name":"meta.preprocessor.define.slice","begin":"^\\s*((#)\\s*define)\\b","end":"$","patterns":[{"include":"#comment.line"},{"include":"#preprocessor.single-identifier"},{"include":"#error"}],"beginCaptures":{"1":{"name":"keyword.control.preprocessor.undef.slice"},"2":{"name":"punctuation.definition.preprocessor.slice"}}},"preprocessor.elif":{"name":"meta.preprocessor.elif.slice","begin":"^\\s*((#)\\s*elif)\\b","end":"$","patterns":[{"include":"#preprocessor.expression"}],"beginCaptures":{"1":{"name":"keyword.control.preprocessor.elif.slice"},"2":{"name":"punctuation.definition.preprocessor.slice"}}},"preprocessor.else":{"name":"meta.preprocessor.else.slice","begin":"^\\s*((#)\\s*else)\\b","end":"$","patterns":[{"include":"#comment.line"},{"include":"#error"}],"beginCaptures":{"1":{"name":"keyword.control.preprocessor.else.slice"},"2":{"name":"punctuation.definition.preprocessor.slice"}}},"preprocessor.endif":{"name":"meta.preprocessor.endif.slice","begin":"^\\s*((#)\\s*endif)\\b","end":"$","patterns":[{"include":"#comment.line"},{"include":"#error"}],"beginCaptures":{"1":{"name":"keyword.control.preprocessor.endif.slice"},"2":{"name":"punctuation.definition.preprocessor.slice"}}},"preprocessor.expression":{"patterns":[{"include":"#comment.line"},{"match":"(!)|(\u0026\u0026)|(\\|\\|)|(\\()|(\\))","captures":{"1":{"name":"keyword.operator.logical.not.slice"},"2":{"name":"keyword.operator.logical.and.slice"},"3":{"name":"keyword.operator.logical.or.slice"},"4":{"name":"punctuation.parenthesis.open.slice"},"5":{"name":"punctuation.parenthesis.close.slice"}}},{"include":"#preprocessor.identifier"},{"include":"#error"}]},"preprocessor.identifier":{"patterns":[{"name":"constant.other.symbol.preprocessor.slice","match":"\\b[a-zA-Z_]\\w*\\b"},{"include":"#error"}]},"preprocessor.if":{"name":"meta.preprocessor.if.slice","begin":"^\\s*((#)\\s*if)\\b","end":"$","patterns":[{"include":"#preprocessor.expression"}],"beginCaptures":{"1":{"name":"keyword.control.preprocessor.if.slice"},"2":{"name":"punctuation.definition.preprocessor.slice"}}},"preprocessor.single-identifier":{"begin":"\\b\\w+\\b","end":"$","patterns":[{"include":"#comment.line"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#preprocessor.identifier"}]}}},"preprocessor.undef":{"name":"meta.preprocessor.undef.slice","begin":"^\\s*((#)\\s*undef)\\b","end":"$","patterns":[{"include":"#comment.line"},{"include":"#preprocessor.single-identifier"},{"include":"#error"}],"beginCaptures":{"1":{"name":"keyword.control.preprocessor.undef.slice"},"2":{"name":"punctuation.definition.preprocessor.slice"}}},"preprocessor.unknown":{"name":"meta.preprocessor.unknown.slice","begin":"^\\s*((#)\\s*\\w*)\\b","end":"$","patterns":[{"include":"#comment.line"},{"include":"#error"}],"beginCaptures":{"1":{"name":"invalid.illegal.slice"},"2":{"name":"punctuation.definition.preprocessor.slice"}}},"reserved-identifiers":{"name":"invalid.illegal.identifier.slice","match":"(?\u003c!\\\\)\\b(?:module|struct|exception|class|interface|enum|custom|typealias|Sequence|Dictionary|Result|bool|int8|uint8|int16|uint16|int32|uint32|varint32|varuint32|int64|uint64|varint62|varuint62|float32|float64|string|AnyClass|compact|idempotent|mode|stream|tag|throws|unchecked)\\b"},"slice":{"patterns":[{"include":"#standard"},{"include":"#string-literal"},{"include":"#compilation-mode"},{"include":"#module-declaration"},{"include":"#struct"},{"include":"#class"},{"include":"#exception"},{"include":"#enum"},{"include":"#interface"},{"include":"#custom-type"},{"include":"#type-alias"},{"include":"#modifier-keywords"},{"include":"#operation"},{"include":"#type.identifier"}]},"standard":{"patterns":[{"include":"#comment"},{"include":"#preprocessor"},{"include":"#attribute"}]},"storage.identifier":{"patterns":[{"name":"entity.name.class.slice","match":"(?:\\b|(::)|(?=\\\\))(?:(\\\\?)([a-zA-Z_]\\w*)(::)?)+\\b","captures":{"1":{"name":"punctuation.separator.double-colon.slice"},"2":{"name":"punctuation.definition.identifier.escape.slice"},"3":{"patterns":[{"include":"#reserved-identifiers"}]},"4":{"name":"punctuation.separator.double-colon.slice"}}},{"include":"#error"}]},"string-literal":{"name":"string.quoted.double.slice","begin":"\"","end":"(\")|$","patterns":[{"name":"constant.character.escape.slice","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.slice"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.slice"}}},"struct":{"name":"meta.struct.slice","begin":"(?\u003c!\\\\)\\bstruct\\b","end":"}","patterns":[{"include":"#standard"},{"begin":"\\\\?\\b\\w+\\b","end":"(?=})","patterns":[{"include":"#standard"},{"include":"#field-container"},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#storage.identifier"}]}}},{"include":"#field-container"},{"include":"#error"}],"beginCaptures":{"0":{"name":"storage.type.struct.slice"}},"endCaptures":{"0":{"name":"punctuation.brace.close.slice"}}},"tag":{"begin":"\\b(tag)\\s*(?=\\()","end":"(?\u003c=\\))","patterns":[{"include":"#id-value"}],"beginCaptures":{"1":{"name":"storage.modifier.tag.slice"}}},"type-alias":{"name":"meta.typealias.slice","begin":"(?\u003c!\\\\)\\btypealias\\b","end":"$","patterns":[{"include":"#standard"},{"begin":"\\\\?\\b\\w+\\b","end":"$","patterns":[{"include":"#standard"},{"begin":"=","end":"$","patterns":[{"include":"#standard"},{"include":"#type.identifier"},{"include":"#error"}],"beginCaptures":{"0":{"name":"keyword.operator.assignment.slice"}}},{"include":"#error"}],"beginCaptures":{"0":{"patterns":[{"include":"#storage.identifier"}]}}},{"include":"#error"}],"beginCaptures":{"0":{"name":"storage.type.alias.slice"}}},"type-keywords":{"match":"(?\u003c!\\\\)\\b(?:(bool)|(int8)|(uint8)|(int16)|(uint16)|(int32)|(uint32)|(varint32)|(varuint32)|(int64)|(uint64)|(varint62)|(varuint62)|(float32)|(float64)|(string)|(AnyClass)|(Sequence)|(Dictionary)|(Result))\\b","captures":{"1":{"name":"storage.type.bool.slice"},"10":{"name":"storage.type.int64.slice"},"11":{"name":"storage.type.uint64.slice"},"12":{"name":"storage.type.varint62.slice"},"13":{"name":"storage.type.varuint62.slice"},"14":{"name":"storage.type.float32.slice"},"15":{"name":"storage.type.float64.slice"},"16":{"name":"storage.type.string.slice"},"17":{"name":"storage.type.AnyClass.slice"},"18":{"name":"storage.type.sequence.slice"},"19":{"name":"storage.type.dictionary.slice"},"2":{"name":"storage.type.int8.slice"},"20":{"name":"storage.type.result.slice"},"3":{"name":"storage.type.uint8.slice"},"4":{"name":"storage.type.int16.slice"},"5":{"name":"storage.type.uint16.slice"},"6":{"name":"storage.type.int32.slice"},"7":{"name":"storage.type.uint32.slice"},"8":{"name":"storage.type.varint32.slice"},"9":{"name":"storage.type.varuint32.slice"}}},"type-name":{"patterns":[{"include":"#type-keywords"},{"include":"#storage.identifier"}]},"type.identifier":{"patterns":[{"name":"meta.generic.parameters.slice","begin":"(?=\\b|\\W)([\\\\\\w:]+)\\s*(\\\u003c)","end":"(\\\u003e)\\s*(\\?)?","patterns":[{"include":"#standard"},{"name":"punctuation.separator.comma.slice","match":","},{"include":"#type.identifier"},{"include":"#error"}],"beginCaptures":{"1":{"patterns":[{"include":"#type-name"}]},"2":{"name":"punctuation.angle.open.slice"}},"endCaptures":{"1":{"name":"punctuation.angle.close.slice"},"2":{"name":"punctuation.definition.optional.slice"}}},{"match":"(?=\\b|\\W)([\\\\\\w:]+)\\s*(\\?)?(?\u003c=\\b|\\W)","captures":{"1":{"patterns":[{"include":"#type-name"}]},"2":{"name":"punctuation.definition.optional.slice"}}}]}}}
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"SourcePawn","scopeName":"source.sourcepawn","patterns":[{"include":"#line_continuation_character"},{"include":"#literals"},{"include":"#comments"},{"include":"#operators"},{"include":"#preproc"},{"match":"(new)\\s+(\\w+)\\s*\\(","captures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type"}]}}},{"match":"(view_as)\\s*\u003c\\s*(\\w+)\\s*\u003e","captures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type"},{"include":"#old-type"}]}}},{"match":"(\\w+)\\:\\s*(\\w+)","captures":{"1":{"patterns":[{"include":"#old-type"}]},"2":{"patterns":[{"include":"#literals"},{"include":"#variable_name"}]}}},{"match":"(\\w+)\\:\\:(\\w*)","captures":{"1":{"patterns":[{"include":"#type_name"}]},"2":{"patterns":[{"include":"#variable_name"}]}}},{"name":"keyword.control.statement.sourcepawn","match":"\\b(?:if|else|for|while|do|switch|case|default|return|break|continue)\\b"},{"include":"#other-keywords"},{"include":"#methodmap"},{"include":"#typedef"},{"include":"#typeset"},{"include":"#functag"},{"include":"#funcenum"},{"include":"#enum_struct"},{"include":"#enum"},{"include":"#struct"},{"include":"#old-function-declaration"},{"include":"#function-declaration"},{"include":"#old-variable-declaration"},{"include":"#variable-declaration"},{"include":"#function-call"},{"name":"variable.language.sourcepawn","match":"\\bthis\\b"},{"match":"\\b(\\w+)\\b","captures":{"1":{"patterns":[{"include":"#variable_name"}]}}}],"repository":{"array-indexed-access":{"patterns":[{"match":"\\[([^\\]]+)\\]","captures":{"1":{"patterns":[{"include":"#literals"},{"include":"#other-keywords"},{"include":"#function-call"},{"include":"#variable_name"}]}}}]},"boolean-literal":{"patterns":[{"name":"constant.language.boolean.sourcepawn","match":"\\b(?:true|false)\\b"}]},"comments":{"patterns":[{"match":"(\\/\\/)\\s*(@param)\\s+([\\w\\.]+)\\s+(.*)","captures":{"1":{"name":"comment.sourcepawn"},"2":{"name":"storage.type.class.single-line.spdoc"},"3":{"name":"support.variable.single-line.spdoc"},"4":{"name":"comment.sourcepawn"}}},{"match":"(\\/\\/)\\s*(@return|@noreturn)\\s+(.*)","captures":{"1":{"name":"comment.sourcepawn"},"2":{"name":"keyword.control.single-line.spdoc"},"3":{"name":"comment.sourcepawn"}}},{"match":"(\\/\\/)\\s*(@error)\\s+(.*)","captures":{"1":{"name":"comment.sourcepawn"},"2":{"name":"string.regexp.single-line.spdoc"},"3":{"name":"comment.sourcepawn"}}},{"match":"(\\/\\/)\\s*(@(?:note|deprecated))\\s+(.*)","captures":{"1":{"name":"comment.sourcepawn"},"2":{"name":"support.function.single-line.spdoc"},"3":{"name":"comment.sourcepawn"}}},{"name":"comment.sourcepawn","match":"\\/\\/.*"},{"name":"comment.block.sourcepawn","begin":"/\\*","end":"\\*/","captures":{"0":{"name":"comment.sourcepawn"}}}]},"enum":{"begin":"(enum)\\s+(?:(\\w+(?:\\:)?)?(?:\\s*(\\([^\\(]*\\)))?)?","end":"(?\u003c=\\})","patterns":[{"include":"#literals"},{"include":"#comments"},{"include":"#preproc"},{"match":"(\\w+)","captures":{"1":{"patterns":[{"include":"#variable_name"}]}}}],"beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type_name"}]},"3":{"patterns":[{"include":"#literals"}]}}},"enum_struct":{"match":"(enum\\s+struct\\s+)(\\w+)","captures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type_name"}]}}},"funcenum":{"begin":"(funcenum)\\s+(\\w+)","end":"(?\u003c=\\})","patterns":[{"begin":"(?:(\\w+)\\:)?\\s*(public)\\s*\\(","end":"\\)","patterns":[{"include":"#parameters"}],"beginCaptures":{"1":{"patterns":[{"include":"#old-type"}]},"2":{"patterns":[{"include":"#keywords"}]}}},{"include":"#comments"},{"include":"#preproc"}],"beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"name":"support.type.core.funcenum.sourcepawn"}}},"functag":{"begin":"(functag)\\s+(\\w+)\\s+(?:([a-zA-Z_]\\w*)\\:\\s*)?(?:(public|stock)\\s*)?\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#preproc"},{"include":"#parameters"}],"beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type_name"}]},"3":{"patterns":[{"include":"#old-type"}]},"4":{"patterns":[{"include":"#keywords"}]}}},"function-call":{"match":"\\b([A-Za-z_][A-Za-z0-9_]*)\\s*\\(","captures":{"1":{"name":"entity.name.function.function_call.sourcepawn"}}},"function-declaration":{"patterns":[{"begin":"(?:(stock|public|static)\\s+)?(?:(native|forward)\\s+)?(\\w+)(\\s*(?:\\[[^\\]]*\\]\\s*)*)\\s+([a-zA-Z_]\\w*)\\(","end":"\\)","patterns":[{"include":"#parameters"},{"include":"#comments"},{"include":"#preproc"}],"beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#keywords"}]},"3":{"patterns":[{"include":"#type"}]},"4":{"patterns":[{"include":"#array-indexed-access"}]},"5":{"name":"entity.name.function.sourcepawn"}}}]},"keywords":{"patterns":[{"name":"keyword.visibility.sourcepawn","match":"\\b(public|stock)\\b"},{"name":"keyword.storage_class.sourcepawn","match":"\\b(const|static)\\b"},{"name":"keyword.type_declarator.sourcepawn","match":"\\b(typeset|typedef|funcenum|functag)\\b"},{"name":"keyword.view_as.sourcepawn","match":"\\b(view_as)\\b"},{"name":"keyword.variable_declarator.sourcepawn","match":"\\b(new|decl)\\b"},{"name":"keyword.function.sourcepawn","match":"\\b(function)\\b"},{"name":"keyword.enum.sourcepawn","match":"\\b(enum)\\b"},{"name":"keyword.struct.sourcepawn","match":"\\b(struct)\\b"},{"name":"keyword.methodmap.sourcepawn","match":"\\b(methodmap)\\b"}]},"line_continuation_character":{"patterns":[{"match":"(\\\\)\\n","captures":{"1":{"name":"constant.character.escape.line-continuation.sourcepawn"}}}]},"literals":{"patterns":[{"include":"#boolean-literal"},{"include":"#null-literal"},{"include":"#numeric-literal"},{"include":"#string-literal"}]},"methodmap":{"match":"(methodmap)\\s+([a-zA-Z_]\\w*)\\s*(?:(?:\\\u003c\\s*([a-zA-Z_]\\w*)|(__nullable__)))?","captures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"name":"support.type.core.sourcepawn","match":"[A-Z]\\w*"},{"match":"([^A-Z])(\\w*)","captures":{"1":{"name":"invalid.illegal.constant.sourcepawn"},"2":{"name":"support.type.core.sourcepawn"}}}]},"3":{"patterns":[{"name":"support.type.core.sourcepawn","match":"[A-Z]\\w*"},{"match":"([^A-Z])(\\w*)","captures":{"1":{"name":"invalid.illegal.constant.sourcepawn"},"2":{"name":"support.type.core.sourcepawn"}}}]},"4":{"name":"keyword.__nullable__.sourcepawn"}}},"null-literal":{"patterns":[{"name":"constant.language.sourcepawn","match":"\\bnull\\b"}]},"numeric-literal":{"patterns":[{"name":"constant.numeric.float.sourcepawn","match":"[0-9]+\\.[0-9]+"},{"name":"constant.numeric.sourcepawn","match":"\\b0b[0-1]+\\b"},{"name":"constant.numeric.sourcepawn","match":"\\b0o[0-7]+\\b"},{"name":"constant.numeric.sourcepawn","match":"\\b(0x(?:(?:(?:[0-9a-fA-F]{2}_?)+)|(?:[0-9a-fA-F]+)))\\b"},{"name":"constant.numeric.integer.sourcepawn","match":"\\b((?:\\d|_)+)\\b"},{"name":"invalid.illegal.constant.sourcepawn","match":"\\b\\d+\\w+\\b"}]},"old-function-declaration":{"patterns":[{"begin":"(?:(stock|public|static)\\s+)?(?:(native|forward)\\s+)?(\\w+)\\:\\s*([a-zA-Z_]\\w*)\\(","end":"\\)","patterns":[{"include":"#parameters"},{"include":"#comments"},{"include":"#preproc"}],"beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#keywords"}]},"3":{"patterns":[{"include":"#old-type"}]},"4":{"name":"entity.name.function.sourcepawn"}}}]},"old-parameter-declaration":{"patterns":[{"match":"(?:(\\w+)\\:\\s*)?(\\w+)\\s*((?:\\[[^\\]]*\\]\\s*)+)?","captures":{"1":{"patterns":[{"include":"#old-type"}]},"2":{"patterns":[{"include":"#variable_name"}]},"3":{"patterns":[{"include":"#array-indexed-access"}]}}}]},"old-type":{"patterns":[{"match":"(bool|any|String|Float)|(\\w+)","captures":{"1":{"name":"storage.type.old.built-in.primitive.sourcepawn"},"2":{"patterns":[{"include":"#type_name"}]}}}]},"old-variable-declaration":{"patterns":[{"match":"(?:(stock|public)\\s+)?((?:(?:const|static)\\s+)*)(new|decl)\\s+(?:(\\w+)\\:\\s*)?(\\w+)(\\s*(?:\\[[^\\]]*\\]\\s*)*)","captures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#keywords"}]},"3":{"patterns":[{"include":"#keywords"}]},"4":{"patterns":[{"include":"#old-type"}]},"5":{"patterns":[{"include":"#variable_name"}]},"6":{"patterns":[{"include":"#array-indexed-access"}]}}}]},"operators":{"patterns":[{"name":"keyword.operator.sourcepawn","match":"%|\u0026|\\*|/(?!\\*|/)|\\+|\\-|~|=|\u003c|\u003e|!|\\||\\?|:|\\^"}]},"other-keywords":{"name":"keyword.sourcepawn","match":"\\b(?:decl|delete|forward|native|public|const|stock|this|sizeof|static|property)\\b"},"parameter-declaration":{"patterns":[{"match":"(\\w+)(?:\\s+|(?:\\s*(?:\u0026|(?:\\[\\s*\\])+)\\s*))(\\w+)(?:\\s*((?:\\[[^\\]]*\\]\\s*)+))?","captures":{"1":{"patterns":[{"include":"#type"}]},"2":{"patterns":[{"include":"#variable_name"}]},"3":{"patterns":[{"include":"#array-indexed-access"}]}}}]},"parameters":{"patterns":[{"include":"#keywords"},{"include":"#literals"},{"include":"#parameter-declaration"},{"include":"#old-parameter-declaration"}]},"preproc":{"patterns":[{"name":"meta.include.sourcepawn","match":"(\\#include|\\#tryinclude)\\s*((?:\\\u003c|\").+(?:\\\u003e|\"))","captures":{"1":{"name":"keyword.control.sourcepawn"},"2":{"name":"string.sourcepawn"}}},{"name":"meta.pragma.line-comment.sourcepawn","match":"(\\#pragma)\\s+(.+?(?=//))","captures":{"1":{"name":"keyword.control.pragma.sourcepawn"},"2":{"name":"entity.other.attribute-name.sourcepawn"}}},{"name":"meta.pragma.deprecated.sourcepawn","match":"(\\#pragma)\\s+(deprecated)(.*)","captures":{"1":{"name":"keyword.control.pragma.sourcepawn"},"2":{"name":"entity.other.attribute-name.sourcepawn"},"3":{"name":"string.deprecated.sourcepawn"}}},{"name":"meta.pragma.block-comment.sourcepawn","match":"(\\#pragma)\\s+([A-Za-z _0-9]+)","captures":{"1":{"name":"keyword.control.pragma.sourcepawn"},"2":{"name":"entity.other.attribute-name.sourcepawn"}}},{"name":"meta.define.sourcepawn","match":"(\\#define)\\s*(\\w*)","captures":{"1":{"name":"keyword.control.define.sourcepawn"},"2":{"name":"meta.preprocessor.macro.sourcepawn"}}},{"name":"meta.undef.sourcepawn","match":"(\\#undef)\\s*(\\w*)","captures":{"1":{"name":"keyword.control.undef.sourcepawn"},"2":{"name":"meta.preprocessor.macro.sourcepawn"}}},{"name":"meta.undef.sourcepawn","match":"(#\\b(?:warning|error)\\b)\\s*(.+?)(?=/(?:/|\\*))","captures":{"1":{"name":"keyword.control.misc.sourcepawn"},"2":{"name":"string.warning.sourcepawn"}}},{"name":"meta.undef.sourcepawn","match":"(#\\b(?:warning|error)\\b)\\s*(.*)","captures":{"1":{"name":"keyword.control.misc.sourcepawn"},"2":{"name":"string.warning.sourcepawn"}}},{"name":"keyword.control.misc.sourcepawn","match":"#\\b(if|else|endif|emit|deprecated|undef|endinput|endscript|assert|define|file)\\b\\s*"},{"match":"(defined)\\s+([A-Za-z_]\\w*)","captures":{"1":{"name":"meta.preprocessor.conditional.sourcepawn"},"2":{"name":"meta.preprocessor.macro.sourcepawn"}}}]},"string-literal":{"patterns":[{"name":"string.quoted.double.sourcepawn","begin":"\"","end":"(\")|((?:[^\\\\\\n])$)","patterns":[{"include":"#string_escaped_char"},{"include":"#string_format_char"},{"include":"#string_placeholder"},{"include":"#line_continuation_character"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sourcepawn"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.sourcepawn"},"2":{"name":"invalid.illegal.newline.sourcepawn"}}},{"name":"string.quoted.single.c","begin":"'","end":"(\\')|((?:[^\\\\\\n])$)","patterns":[{"include":"#string_escaped_char"},{"include":"#string_format_char"},{"include":"#string_placeholder"},{"include":"#line_continuation_character"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sourcepawn"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.sourcepawn"},"2":{"name":"invalid.illegal.newline.sourcepawn"}}}]},"string_escaped_char":{"patterns":[{"name":"constant.character.escape.sourcepawn","match":"\\\\(?:[abefnrt'\"\\\\]|(?:x[a-zA-Z0-9]{0,2}|\\d+);?)"},{"name":"invalid.illegal.unknown-escape.sourcepawn","match":"\\\\."}]},"string_format_char":{"name":"constant.character.format.sourcepawn","match":"%(?:a|A|b|B|c|C|d|D|e|F|g|G|h|H|I|j|m|M|n|i|p|r|R|S|t|T|u|U|V|u|w|W|x|X|y|Y|z|Z|f|L|N|s|T|t|%|(?:\\d+)?\\.?\\d*(?:b|d|i|u|f|s|X|x))"},"string_placeholder":{"name":"constant.character.sp-translations","match":"\\{(\\w+)\\}","captures":{"1":{"name":"constant.character.escape.sp-translations"}}},"struct":{"match":"(struct)\\s+(\\w+)","captures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type_name"}]}}},"type":{"patterns":[{"match":"(bool|float|int|char|any|void)|(\\w+)","captures":{"1":{"name":"storage.type.built-in.primitive.sourcepawn"},"2":{"patterns":[{"include":"#type_name"}]}}}]},"type_name":{"patterns":[{"name":"constant.numeric.integer.sourcepawn","match":"\\b\\d\\b"},{"name":"support.type.core.sourcepawn","match":"[a-zA-Z_]\\w*"},{"match":"([0-9])(\\w*)","captures":{"1":{"name":"invalid.illegal.constant.sourcepawn"},"2":{"name":"support.type.core.sourcepawn"}}}]},"typedef":{"begin":"(typedef)\\s+(\\w+)\\s*\\=\\s*(function)\\s*(\\w+)\\s*((?:\\[[^\\]]*\\]\\s*)*)\\(","end":"\\)","patterns":[{"include":"#parameters"},{"include":"#comments"},{"include":"#preproc"}],"beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type_name"}]},"3":{"patterns":[{"include":"#keywords"}]},"4":{"patterns":[{"include":"#type"}]},"5":{"patterns":[{"include":"#array-indexed-access"}]}}},"typeset":{"begin":"(typeset)\\s+(\\w+)","end":"(?\u003c=\\})","patterns":[{"begin":"(function)\\s+(\\w+)\\s*((?:\\[[^\\]]*\\]\\s*)*)\\(","end":"\\)","patterns":[{"include":"#parameters"}],"beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type"}]},"3":{"patterns":[{"include":"#array-indexed-access"}]}}},{"include":"#comments"},{"include":"#preproc"}],"beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type_name"}]}}},"variable-declaration":{"patterns":[{"match":"(?:(stock|public)\\s+)?((?:(?:const|static)\\s+)*)(\\w+)(\\s*(?:\\[[^\\]]*\\]\\s*)*)(?:(?:\\s*\u0026\\s*)|\\s+)(\\w+)\\s*(\\s*(?:\\[[^\\]]*\\]\\s*)*)","captures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#keywords"}]},"3":{"patterns":[{"include":"#type"}]},"4":{"patterns":[{"include":"#array-indexed-access"}]},"5":{"patterns":[{"include":"#variable_name"}]},"6":{"patterns":[{"include":"#array-indexed-access"}]}}}]},"variable_name":{"patterns":[{"name":"constant.numeric.integer.sourcepawn","match":"\\b\\d\\b"},{"name":"variable.sourcepawn","match":"[a-zA-Z_]\\w*"},{"match":"([0-9])(\\w*)","captures":{"1":{"name":"invalid.illegal.constant.sourcepawn"},"2":{"name":"variable.sourcepawn"}}}]}}}
|
1
|
+
{"name":"SourcePawn","scopeName":"source.sourcepawn","patterns":[{"include":"#line_continuation_character"},{"include":"#literals"},{"include":"#comments"},{"include":"#operators"},{"include":"#preproc"},{"name":"keyword.control.statement.sourcepawn","match":"\\b(?:if|else|for|while|do|switch|case|default|return|break|continue)\\b"},{"match":"(new)\\s+(\\w+)\\s*\\(","captures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type"}]}}},{"match":"(view_as)\\s*\u003c\\s*(\\w+)\\s*\u003e","captures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type"},{"include":"#old-type"}]}}},{"match":"(\\w+)\\:\\s*(\\w+)","captures":{"1":{"patterns":[{"include":"#old-type"}]},"2":{"patterns":[{"include":"#literals"},{"include":"#variable_name"}]}}},{"match":"(\\w+)\\:\\:(\\w*)","captures":{"1":{"patterns":[{"include":"#type_name"}]},"2":{"patterns":[{"include":"#variable_name"}]}}},{"include":"#other-keywords"},{"include":"#methodmap"},{"include":"#typedef"},{"include":"#typeset"},{"include":"#functag"},{"include":"#funcenum"},{"include":"#enum_struct"},{"include":"#enum"},{"include":"#struct"},{"include":"#old-function-declaration"},{"include":"#function-declaration"},{"include":"#old-variable-declaration"},{"include":"#variable-declaration"},{"include":"#function-call"},{"name":"variable.language.sourcepawn","match":"\\bthis\\b"},{"match":"\\b(\\w+)\\b","captures":{"1":{"patterns":[{"include":"#variable_name"}]}}}],"repository":{"array-indexed-access":{"patterns":[{"match":"\\[([^\\]]+)\\]","captures":{"1":{"patterns":[{"include":"#literals"},{"include":"#other-keywords"},{"include":"#function-call"},{"include":"#variable_name"}]}}}]},"boolean-literal":{"patterns":[{"name":"constant.language.boolean.sourcepawn","match":"\\b(?:true|false)\\b"}]},"comments":{"patterns":[{"match":"(\\/\\/)\\s*(@param)\\s+([\\w\\.]+)\\s+(.*)","captures":{"1":{"name":"comment.sourcepawn"},"2":{"name":"storage.type.class.single-line.spdoc"},"3":{"name":"support.variable.single-line.spdoc"},"4":{"name":"comment.sourcepawn"}}},{"match":"(\\/\\/)\\s*(@return|@noreturn)\\s+(.*)","captures":{"1":{"name":"comment.sourcepawn"},"2":{"name":"keyword.control.single-line.spdoc"},"3":{"name":"comment.sourcepawn"}}},{"match":"(\\/\\/)\\s*(@error)\\s+(.*)","captures":{"1":{"name":"comment.sourcepawn"},"2":{"name":"string.regexp.single-line.spdoc"},"3":{"name":"comment.sourcepawn"}}},{"match":"(\\/\\/)\\s*(@(?:note|deprecated))\\s+(.*)","captures":{"1":{"name":"comment.sourcepawn"},"2":{"name":"support.function.single-line.spdoc"},"3":{"name":"comment.sourcepawn"}}},{"name":"comment.sourcepawn","match":"\\/\\/.*"},{"name":"comment.block.sourcepawn","begin":"/\\*","end":"\\*/","captures":{"0":{"name":"comment.sourcepawn"}}}]},"enum":{"begin":"(enum)\\s+(?:(\\w+(?:\\:)?)?(?:\\s*(\\([^\\(]*\\)))?)?","end":"(?\u003c=\\})","patterns":[{"include":"#literals"},{"include":"#comments"},{"include":"#preproc"},{"match":"(\\w+)","captures":{"1":{"patterns":[{"include":"#variable_name"}]}}}],"beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type_name"}]},"3":{"patterns":[{"include":"#literals"}]}}},"enum_struct":{"match":"(enum\\s+struct\\s+)(\\w+)","captures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type_name"}]}}},"funcenum":{"begin":"(funcenum)\\s+(\\w+)","end":"(?\u003c=\\})","patterns":[{"begin":"(?:(\\w+)\\:)?\\s*(public)\\s*\\(","end":"\\)","patterns":[{"include":"#parameters"}],"beginCaptures":{"1":{"patterns":[{"include":"#old-type"}]},"2":{"patterns":[{"include":"#keywords"}]}}},{"include":"#comments"},{"include":"#preproc"}],"beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"name":"support.type.core.funcenum.sourcepawn"}}},"functag":{"begin":"(functag)\\s+(\\w+)\\s+(?:([a-zA-Z_]\\w*)\\:\\s*)?(?:(public|stock)\\s*)?\\(","end":"\\)","patterns":[{"include":"#comments"},{"include":"#preproc"},{"include":"#parameters"}],"beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type_name"}]},"3":{"patterns":[{"include":"#old-type"}]},"4":{"patterns":[{"include":"#keywords"}]}}},"function-call":{"match":"\\b([A-Za-z_][A-Za-z0-9_]*)\\s*\\(","captures":{"1":{"name":"entity.name.function.function_call.sourcepawn"}}},"function-declaration":{"patterns":[{"begin":"(?:(stock|public|static)\\s+)?(?:(native|forward)\\s+)?(\\w+)(\\s*(?:\\[[^\\]]*\\]\\s*)*)\\s+([a-zA-Z_]\\w*)\\(","end":"\\)","patterns":[{"include":"#parameters"},{"include":"#comments"},{"include":"#preproc"}],"beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#keywords"}]},"3":{"patterns":[{"include":"#type"}]},"4":{"patterns":[{"include":"#array-indexed-access"}]},"5":{"name":"entity.name.function.sourcepawn"}}}]},"keywords":{"patterns":[{"name":"keyword.visibility.sourcepawn","match":"\\b(public|stock)\\b"},{"name":"keyword.storage_class.sourcepawn","match":"\\b(const|static)\\b"},{"name":"keyword.type_declarator.sourcepawn","match":"\\b(typeset|typedef|funcenum|functag)\\b"},{"name":"keyword.view_as.sourcepawn","match":"\\b(view_as)\\b"},{"name":"keyword.variable_declarator.sourcepawn","match":"\\b(new|decl)\\b"},{"name":"keyword.function.sourcepawn","match":"\\b(function)\\b"},{"name":"keyword.enum.sourcepawn","match":"\\b(enum)\\b"},{"name":"keyword.struct.sourcepawn","match":"\\b(struct)\\b"},{"name":"keyword.methodmap.sourcepawn","match":"\\b(methodmap)\\b"}]},"line_continuation_character":{"patterns":[{"match":"(\\\\)\\n","captures":{"1":{"name":"constant.character.escape.line-continuation.sourcepawn"}}}]},"literals":{"patterns":[{"include":"#boolean-literal"},{"include":"#null-literal"},{"include":"#numeric-literal"},{"include":"#string-literal"}]},"methodmap":{"match":"(methodmap)\\s+([a-zA-Z_]\\w*)\\s*(?:(?:\\\u003c\\s*([a-zA-Z_]\\w*)|(__nullable__)))?","captures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"name":"support.type.core.sourcepawn","match":"[A-Z]\\w*"},{"match":"([^A-Z])(\\w*)","captures":{"1":{"name":"invalid.illegal.constant.sourcepawn"},"2":{"name":"support.type.core.sourcepawn"}}}]},"3":{"patterns":[{"name":"support.type.core.sourcepawn","match":"[A-Z]\\w*"},{"match":"([^A-Z])(\\w*)","captures":{"1":{"name":"invalid.illegal.constant.sourcepawn"},"2":{"name":"support.type.core.sourcepawn"}}}]},"4":{"name":"keyword.__nullable__.sourcepawn"}}},"null-literal":{"patterns":[{"name":"constant.language.sourcepawn","match":"\\bnull\\b"}]},"numeric-literal":{"patterns":[{"name":"constant.numeric.float.sourcepawn","match":"[0-9]+\\.[0-9]+"},{"name":"constant.numeric.sourcepawn","match":"\\b0b[0-1]+\\b"},{"name":"constant.numeric.sourcepawn","match":"\\b0o[0-7]+\\b"},{"name":"constant.numeric.sourcepawn","match":"\\b(0x(?:(?:(?:[0-9a-fA-F]{2}_?)+)|(?:[0-9a-fA-F]+)))\\b"},{"name":"constant.numeric.integer.sourcepawn","match":"\\b((?:\\d|_)+)\\b"},{"name":"invalid.illegal.constant.sourcepawn","match":"\\b\\d+\\w+\\b"}]},"old-function-declaration":{"patterns":[{"begin":"(?:(stock|public|static)\\s+)?(?:(native|forward)\\s+)?(\\w+)\\:\\s*([a-zA-Z_]\\w*)\\(","end":"\\)","patterns":[{"include":"#parameters"},{"include":"#comments"},{"include":"#preproc"}],"beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#keywords"}]},"3":{"patterns":[{"include":"#old-type"}]},"4":{"name":"entity.name.function.sourcepawn"}}}]},"old-parameter-declaration":{"patterns":[{"match":"(?:(\\w+)\\:\\s*)?(\\w+)\\s*((?:\\[[^\\]]*\\]\\s*)+)?","captures":{"1":{"patterns":[{"include":"#old-type"}]},"2":{"patterns":[{"include":"#variable_name"}]},"3":{"patterns":[{"include":"#array-indexed-access"}]}}}]},"old-type":{"patterns":[{"match":"(bool|any|String|Float)|(\\w+)","captures":{"1":{"name":"storage.type.old.built-in.primitive.sourcepawn"},"2":{"patterns":[{"include":"#type_name"}]}}}]},"old-variable-declaration":{"patterns":[{"match":"(?:(stock|public)\\s+)?((?:(?:const|static)\\s+)*)(new|decl)\\s+(?:(\\w+)\\:\\s*)?(\\w+)(\\s*(?:\\[[^\\]]*\\]\\s*)*)","captures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#keywords"}]},"3":{"patterns":[{"include":"#keywords"}]},"4":{"patterns":[{"include":"#old-type"}]},"5":{"patterns":[{"include":"#variable_name"}]},"6":{"patterns":[{"include":"#array-indexed-access"}]}}}]},"operators":{"patterns":[{"name":"keyword.operator.sourcepawn","match":"%|\u0026|\\*|/(?!\\*|/)|\\+|\\-|~|=|\u003c|\u003e|!|\\||\\?|:|\\^"}]},"other-keywords":{"name":"keyword.sourcepawn","match":"\\b(?:decl|delete|forward|native|public|const|stock|this|sizeof|static|property)\\b"},"parameter-declaration":{"patterns":[{"match":"(\\w+)(?:\\s+|(?:\\s*(?:\u0026|(?:\\[\\s*\\])+)\\s*))(\\w+)(?:\\s*((?:\\[[^\\]]*\\]\\s*)+))?","captures":{"1":{"patterns":[{"include":"#type"}]},"2":{"patterns":[{"include":"#variable_name"}]},"3":{"patterns":[{"include":"#array-indexed-access"}]}}}]},"parameters":{"patterns":[{"include":"#keywords"},{"include":"#literals"},{"include":"#parameter-declaration"},{"include":"#old-parameter-declaration"}]},"preproc":{"patterns":[{"name":"meta.include.sourcepawn","match":"(\\#include|\\#tryinclude)\\s*((?:\\\u003c|\").+(?:\\\u003e|\"))","captures":{"1":{"name":"keyword.control.sourcepawn"},"2":{"name":"string.sourcepawn"}}},{"name":"meta.pragma.line-comment.sourcepawn","match":"(\\#pragma)\\s+(.+?(?=//))","captures":{"1":{"name":"keyword.control.pragma.sourcepawn"},"2":{"name":"entity.other.attribute-name.sourcepawn"}}},{"name":"meta.pragma.deprecated.sourcepawn","match":"(\\#pragma)\\s+(deprecated)(.*)","captures":{"1":{"name":"keyword.control.pragma.sourcepawn"},"2":{"name":"entity.other.attribute-name.sourcepawn"},"3":{"name":"string.deprecated.sourcepawn"}}},{"name":"meta.pragma.block-comment.sourcepawn","match":"(\\#pragma)\\s+([A-Za-z _0-9]+)","captures":{"1":{"name":"keyword.control.pragma.sourcepawn"},"2":{"name":"entity.other.attribute-name.sourcepawn"}}},{"name":"meta.define.sourcepawn","match":"(\\#define)\\s*(\\w*)","captures":{"1":{"name":"keyword.control.define.sourcepawn"},"2":{"name":"meta.preprocessor.macro.sourcepawn"}}},{"name":"meta.undef.sourcepawn","match":"(\\#undef)\\s*(\\w*)","captures":{"1":{"name":"keyword.control.undef.sourcepawn"},"2":{"name":"meta.preprocessor.macro.sourcepawn"}}},{"name":"meta.undef.sourcepawn","match":"(#\\b(?:warning|error)\\b)\\s*(.+?)(?=/(?:/|\\*))","captures":{"1":{"name":"keyword.control.misc.sourcepawn"},"2":{"name":"string.warning.sourcepawn"}}},{"name":"meta.undef.sourcepawn","match":"(#\\b(?:warning|error)\\b)\\s*(.*)","captures":{"1":{"name":"keyword.control.misc.sourcepawn"},"2":{"name":"string.warning.sourcepawn"}}},{"name":"keyword.control.misc.sourcepawn","match":"#\\b(if|else|endif|emit|deprecated|undef|endinput|endscript|assert|define|file)\\b\\s*"},{"match":"(defined)\\s+([A-Za-z_]\\w*)","captures":{"1":{"name":"meta.preprocessor.conditional.sourcepawn"},"2":{"name":"meta.preprocessor.macro.sourcepawn"}}}]},"string-literal":{"patterns":[{"name":"string.quoted.double.sourcepawn","begin":"\"","end":"(\")|((?:[^\\\\\\n])$)","patterns":[{"include":"#string_escaped_char"},{"include":"#string_format_char"},{"include":"#string_placeholder"},{"include":"#line_continuation_character"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sourcepawn"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.sourcepawn"},"2":{"name":"invalid.illegal.newline.sourcepawn"}}},{"name":"string.quoted.single.c","begin":"'","end":"(\\')|((?:[^\\\\\\n])$)","patterns":[{"include":"#string_escaped_char"},{"include":"#string_format_char"},{"include":"#string_placeholder"},{"include":"#line_continuation_character"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sourcepawn"}},"endCaptures":{"1":{"name":"punctuation.definition.string.end.sourcepawn"},"2":{"name":"invalid.illegal.newline.sourcepawn"}}}]},"string_escaped_char":{"patterns":[{"name":"constant.character.escape.sourcepawn","match":"\\\\(?:[abefnrt'\"\\\\]|(?:x[a-zA-Z0-9]{0,2}|\\d+);?)"},{"name":"invalid.illegal.unknown-escape.sourcepawn","match":"\\\\."}]},"string_format_char":{"name":"constant.character.format.sourcepawn","match":"%(?:a|A|b|B|c|C|d|D|e|F|g|G|h|H|I|j|m|M|n|i|p|r|R|S|t|T|u|U|V|u|w|W|x|X|y|Y|z|Z|f|L|N|s|T|t|%|(?:\\d+)?\\.?\\d*(?:b|d|i|u|f|s|X|x))"},"string_placeholder":{"name":"constant.character.sp-translations","match":"\\{(\\w+)\\}","captures":{"1":{"name":"constant.character.escape.sp-translations"}}},"struct":{"match":"(struct)\\s+(\\w+)","captures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type_name"}]}}},"type":{"patterns":[{"match":"(bool|float|int|char|any|void)|(\\w+)","captures":{"1":{"name":"storage.type.built-in.primitive.sourcepawn"},"2":{"patterns":[{"include":"#type_name"}]}}}]},"type_name":{"patterns":[{"name":"constant.numeric.integer.sourcepawn","match":"\\b\\d\\b"},{"name":"support.type.core.sourcepawn","match":"[a-zA-Z_]\\w*"},{"match":"([0-9])(\\w*)","captures":{"1":{"name":"invalid.illegal.constant.sourcepawn"},"2":{"name":"support.type.core.sourcepawn"}}}]},"typedef":{"begin":"(typedef)\\s+(\\w+)\\s*\\=\\s*(function)\\s*(\\w+)\\s*((?:\\[[^\\]]*\\]\\s*)*)\\(","end":"\\)","patterns":[{"include":"#parameters"},{"include":"#comments"},{"include":"#preproc"}],"beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type_name"}]},"3":{"patterns":[{"include":"#keywords"}]},"4":{"patterns":[{"include":"#type"}]},"5":{"patterns":[{"include":"#array-indexed-access"}]}}},"typeset":{"begin":"(typeset)\\s+(\\w+)","end":"(?\u003c=\\})","patterns":[{"begin":"(function)\\s+(\\w+)\\s*((?:\\[[^\\]]*\\]\\s*)*)\\(","end":"\\)","patterns":[{"include":"#parameters"}],"beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type"}]},"3":{"patterns":[{"include":"#array-indexed-access"}]}}},{"include":"#comments"},{"include":"#preproc"}],"beginCaptures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#type_name"}]}}},"variable-declaration":{"patterns":[{"match":"(?:(stock|public)\\s+)?((?:(?:const|static)\\s+)*)(\\w+)(\\s*(?:\\[[^\\]]*\\]\\s*)*)\\s+(\\w+)\\s*(\\s*(?:\\[[^\\]]*\\]\\s*)*)","captures":{"1":{"patterns":[{"include":"#keywords"}]},"2":{"patterns":[{"include":"#keywords"}]},"3":{"patterns":[{"include":"#type"}]},"4":{"patterns":[{"include":"#array-indexed-access"}]},"5":{"patterns":[{"include":"#variable_name"}]},"6":{"patterns":[{"include":"#array-indexed-access"}]}}}]},"variable_name":{"patterns":[{"name":"constant.numeric.integer.sourcepawn","match":"\\b\\d\\b"},{"name":"variable.sourcepawn","match":"[a-zA-Z_]\\w*"},{"match":"([0-9])(\\w*)","captures":{"1":{"name":"invalid.illegal.constant.sourcepawn"},"2":{"name":"variable.sourcepawn"}}}]}}}
|
data/grammars/source.stan.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"Stan","scopeName":"source.stan","patterns":[{"match":"\\b(functions|data|transformed\\s+data|parameters|transformed\\s+parameters|model|generated\\s+quantities)\\b\\s*\\{","captures":{"1":{"name":"entity.name.type.stan"}}},{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"include":"#types"},{"include":"#keywords"},{"include":"#distributions"},{"include":"#functions"},{"include":"#variables"},{"include":"#operators"},{"include":"#punctuation"}],"repository":{"comments":{"patterns":[{"name":"meta.preprocessor.include.stan","begin":"^\\s*((#)\\s*(include))\\b\\s*","end":"\\s*(?=(?://|/\\*|#)|\\n|$)","patterns":[{"name":"string.quoted.double.include.stan","begin":"[\"\u003c]?","end":"[\"\u003e]?\\s","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.stan"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.stan"}}}],"beginCaptures":{"1":{"name":"keyword.control.directive.include.stan"},"2":{"name":"punctuation.definition.directive.stan"}}},{"name":"comment.block.documentation.stan","begin":"/\\*\\*(?!/)","end":"\\*/","patterns":[{"include":"#docblock"}],"captures":{"0":{"name":"punctuation.definition.comment.stan"}}},{"name":"comment.block.stan","begin":"/\\*","end":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.stan"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.stan"}}},{"name":"comment.line.double-slash.stan","begin":"//","end":"\\n","beginCaptures":{"0":{"name":"punctuation.definition.comment.stan"}}},{"name":"comment.line.number-sign.stan","begin":"#","end":"\\n","beginCaptures":{"0":{"name":"punctuation.definition.comment.stan"}}}]},"distributions":{"patterns":[{"match":"(~)(\\s*)(bernoulli|bernoulli_logit|bernoulli_logit_glm|beta|beta_binomial|binomial|binomial_logit|binomial_logit_glm|categorical|categorical_logit|categorical_logit_glm|cauchy|chi_square|dirichlet|dirichlet_multinomial|discrete_range|double_exponential|exp_mod_normal|exponential|frechet|gamma|gaussian_dlm_obs|gumbel|hypergeometric|inv_chi_square|inv_gamma|inv_wishart|inv_wishart_cholesky|lkj_corr|lkj_corr_cholesky|logistic|loglogistic|lognormal|multi_gp|multi_gp_cholesky|multi_normal|multi_normal_cholesky|multi_normal_prec|multi_student_t|multi_student_t_cholesky|multinomial|multinomial_logit|neg_binomial|neg_binomial_2|neg_binomial_2_log|neg_binomial_2_log_glm|normal|normal_id_glm|ordered_logistic|ordered_logistic_glm|ordered_probit|pareto|pareto_type_2|poisson|poisson_log|poisson_log_glm|rayleigh|scaled_inv_chi_square|skew_double_exponential|skew_normal|std_normal|student_t|uniform|von_mises|weibull|wiener|wishart|wishart_cholesky)\\b","captures":{"1":{"name":"keyword.operator.sampling.stan"},"3":{"name":"support.function.distribution.stan"}}}]},"docblock":{"patterns":[{"name":"storage.type.class.standoc","match":"(?\u003c!\\w)@(param|return)\\b"}]},"functions":{"patterns":[{"name":"invalid.deprecated.function.stan","match":"\\b([A-Za-z0-9][A-Za-z0-9_]*_log|binomial_coefficient_log|fabs|get_lp|if_else|increment_log_prob|integrate_ode[A-Za-z0-9_]*|lkj_cov_lpdf|multiply_log)\\b\\s*\\("},{"name":"support.function.function.stan","match":"\\b(Phi|Phi_approx|abs|acos|acosh|add_diag|algebra_solver|algebra_solver_newton|append_array|append_col|append_row|arg|asin|asinh|atan|atan2|atanh|bernoulli_cdf|bernoulli_lccdf|bernoulli_lcdf|bernoulli_logit_glm_lpmf|bernoulli_logit_glm_lupmf|bernoulli_logit_glm_rng|bernoulli_logit_lpmf|bernoulli_logit_lupmf|bernoulli_logit_rng|bernoulli_lpmf|bernoulli_lupmf|bernoulli_rng|bessel_first_kind|bessel_second_kind|beta|beta_binomial_cdf|beta_binomial_lccdf|beta_binomial_lcdf|beta_binomial_lpmf|beta_binomial_lupmf|beta_binomial_rng|beta_cdf|beta_lccdf|beta_lcdf|beta_lpdf|beta_lupdf|beta_proportion_lccdf|beta_proportion_lcdf|beta_proportion_rng|beta_rng|binary_log_loss|binomial_cdf|binomial_lccdf|binomial_lcdf|binomial_logit_glm_lpmf|binomial_logit_glm_lupmf|binomial_logit_lpmf|binomial_logit_lupmf|binomial_lpmf|binomial_lupmf|binomial_rng|block|categorical_logit_glm_lpmf|categorical_logit_glm_lupmf|categorical_logit_lpmf|categorical_logit_lupmf|categorical_logit_rng|categorical_lpmf|categorical_lupmf|categorical_rng|cauchy_cdf|cauchy_lccdf|cauchy_lcdf|cauchy_lpdf|cauchy_lupdf|cauchy_rng|cbrt|ceil|chi_square_cdf|chi_square_lccdf|chi_square_lcdf|chi_square_lpdf|chi_square_lupdf|chi_square_rng|chol2inv|cholesky_decompose|choose|col|cols|columns_dot_product|columns_dot_self|complex_schur_decompose|complex_schur_decompose_t|complex_schur_decompose_u|conj|cos|cosh|cov_exp_quad|crossprod|csr_extract|csr_extract_u|csr_extract_v|csr_extract_w|csr_matrix_times_vector|csr_to_dense_matrix|cumulative_sum|dae|dae_tol|determinant|diag_matrix|diag_post_multiply|diag_pre_multiply|diagonal|digamma|dims|dirichlet_lpdf|dirichlet_lupdf|dirichlet_multinomial_lpmf|dirichlet_multinomial_lupmf|dirichlet_multinomial_rng|dirichlet_rng|discrete_range_cdf|discrete_range_lccdf|discrete_range_lcdf|discrete_range_lpmf|discrete_range_lupmf|discrete_range_rng|distance|dot_product|dot_self|double_exponential_cdf|double_exponential_lccdf|double_exponential_lcdf|double_exponential_lpdf|double_exponential_lupdf|double_exponential_rng|e|eigendecompose|eigendecompose_sym|eigenvalues|eigenvalues_sym|eigenvectors|eigenvectors_sym|erf|erfc|exp|exp2|exp_mod_normal_cdf|exp_mod_normal_lccdf|exp_mod_normal_lcdf|exp_mod_normal_lpdf|exp_mod_normal_lupdf|exp_mod_normal_rng|expm1|exponential_cdf|exponential_lccdf|exponential_lcdf|exponential_lpdf|exponential_lupdf|exponential_rng|falling_factorial|fatal_error|fdim|fft|fft2|floor|fma|fmax|fmin|fmod|frechet_cdf|frechet_lccdf|frechet_lcdf|frechet_lpdf|frechet_lupdf|frechet_rng|gamma_cdf|gamma_lccdf|gamma_lcdf|gamma_lpdf|gamma_lupdf|gamma_p|gamma_q|gamma_rng|gaussian_dlm_obs_lpdf|gaussian_dlm_obs_lupdf|generalized_inverse|get_imag|get_real|gumbel_cdf|gumbel_lccdf|gumbel_lcdf|gumbel_lpdf|gumbel_lupdf|gumbel_rng|head|hmm_hidden_state_prob|hmm_latent_rng|hmm_marginal|hypergeometric_lpmf|hypergeometric_lupmf|hypergeometric_rng|hypot|identity_matrix|inc_beta|int_step|integrate_1d|integrate_ode|integrate_ode_adams|integrate_ode_bdf|integrate_ode_rk45|inv|inv_Phi|inv_chi_square_cdf|inv_chi_square_lccdf|inv_chi_square_lcdf|inv_chi_square_lpdf|inv_chi_square_lupdf|inv_chi_square_rng|inv_cloglog|inv_erfc|inv_fft|inv_fft2|inv_gamma_cdf|inv_gamma_lccdf|inv_gamma_lcdf|inv_gamma_lpdf|inv_gamma_lupdf|inv_gamma_rng|inv_inc_beta|inv_logit|inv_sqrt|inv_square|inv_wishart_cholesky_lpdf|inv_wishart_cholesky_lupdf|inv_wishart_cholesky_rng|inv_wishart_lpdf|inv_wishart_lupdf|inv_wishart_rng|inverse|inverse_spd|is_inf|is_nan|lambert_w0|lambert_wm1|lbeta|lchoose|ldexp|lgamma|linspaced_array|linspaced_int_array|linspaced_row_vector|linspaced_vector|lkj_corr_cholesky_lpdf|lkj_corr_cholesky_lupdf|lkj_corr_cholesky_rng|lkj_corr_lpdf|lkj_corr_lupdf|lkj_corr_rng|lmgamma|lmultiply|log|log10|log1m|log1m_exp|log1m_inv_logit|log1p|log1p_exp|log2|log_determinant|log_diff_exp|log_falling_factorial|log_inv_logit|log_inv_logit_diff|log_mix|log_modified_bessel_first_kind|log_rising_factorial|log_softmax|log_sum_exp|logistic_cdf|logistic_lccdf|logistic_lcdf|logistic_lpdf|logistic_lupdf|logistic_rng|logit|loglogistic_cdf|loglogistic_lpdf|loglogistic_rng|lognormal_cdf|lognormal_lccdf|lognormal_lcdf|lognormal_lpdf|lognormal_lupdf|lognormal_rng|machine_precision|map_rect|matrix_exp|matrix_exp_multiply|matrix_power|max|mdivide_left_spd|mdivide_left_tri_low|mdivide_right_spd|mdivide_right_tri_low|mean|min|modified_bessel_first_kind|modified_bessel_second_kind|multi_gp_cholesky_lpdf|multi_gp_cholesky_lupdf|multi_gp_lpdf|multi_gp_lupdf|multi_normal_cholesky_lpdf|multi_normal_cholesky_lupdf|multi_normal_cholesky_rng|multi_normal_lpdf|multi_normal_lupdf|multi_normal_prec_lpdf|multi_normal_prec_lupdf|multi_normal_rng|multi_student_cholesky_t_rng|multi_student_t_cholesky_lpdf|multi_student_t_cholesky_lupdf|multi_student_t_cholesky_rng|multi_student_t_lpdf|multi_student_t_lupdf|multi_student_t_rng|multinomial_logit_lpmf|multinomial_logit_lupmf|multinomial_logit_rng|multinomial_lpmf|multinomial_lupmf|multinomial_rng|multiply_lower_tri_self_transpose|neg_binomial_2_cdf|neg_binomial_2_lccdf|neg_binomial_2_lcdf|neg_binomial_2_log_glm_lpmf|neg_binomial_2_log_glm_lupmf|neg_binomial_2_log_lpmf|neg_binomial_2_log_lupmf|neg_binomial_2_log_rng|neg_binomial_2_lpmf|neg_binomial_2_lupmf|neg_binomial_2_rng|neg_binomial_cdf|neg_binomial_lccdf|neg_binomial_lcdf|neg_binomial_lpmf|neg_binomial_lupmf|neg_binomial_rng|negative_infinity|norm|norm1|norm2|normal_cdf|normal_id_glm_lpdf|normal_id_glm_lupdf|normal_lccdf|normal_lcdf|normal_lpdf|normal_lupdf|normal_rng|not_a_number|num_elements|ode_adams|ode_adams_tol|ode_adjoint_tol_ctl|ode_bdf|ode_bdf_tol|ode_ckrk|ode_ckrk_tol|ode_rk45|ode_rk45_tol|one_hot_array|one_hot_int_array|one_hot_row_vector|one_hot_vector|ones_array|ones_int_array|ones_row_vector|ones_vector|ordered_logistic_glm_lpmf|ordered_logistic_glm_lupmf|ordered_logistic_lpmf|ordered_logistic_lupmf|ordered_logistic_rng|ordered_probit_lpmf|ordered_probit_lupmf|ordered_probit_rng|owens_t|pareto_cdf|pareto_lccdf|pareto_lcdf|pareto_lpdf|pareto_lupdf|pareto_rng|pareto_type_2_cdf|pareto_type_2_lccdf|pareto_type_2_lcdf|pareto_type_2_lpdf|pareto_type_2_lupdf|pareto_type_2_rng|pi|poisson_cdf|poisson_lccdf|poisson_lcdf|poisson_log_glm_lpmf|poisson_log_glm_lupmf|poisson_log_lpmf|poisson_log_lupmf|poisson_log_rng|poisson_lpmf|poisson_lupmf|poisson_rng|polar|positive_infinity|pow|prod|proj|qr|qr_Q|qr_R|qr_thin|qr_thin_Q|qr_thin_R|quad_form|quad_form_diag|quad_form_sym|quantile|rank|rayleigh_cdf|rayleigh_lccdf|rayleigh_lcdf|rayleigh_lpdf|rayleigh_lupdf|rayleigh_rng|reduce_sum|rep_array|rep_matrix|rep_row_vector|rep_vector|reverse|rising_factorial|round|row|rows|rows_dot_product|rows_dot_self|scale_matrix_exp_multiply|scaled_inv_chi_square_cdf|scaled_inv_chi_square_lccdf|scaled_inv_chi_square_lcdf|scaled_inv_chi_square_lpdf|scaled_inv_chi_square_lupdf|scaled_inv_chi_square_rng|sd|segment|sin|singular_values|sinh|size|skew_double_exponential_cdf|skew_double_exponential_lccdf|skew_double_exponential_lcdf|skew_double_exponential_lpdf|skew_double_exponential_lupdf|skew_double_exponential_rng|skew_normal_cdf|skew_normal_lccdf|skew_normal_lcdf|skew_normal_lpdf|skew_normal_lupdf|skew_normal_rng|softmax|sort_asc|sort_desc|sort_indices_asc|sort_indices_desc|sqrt|sqrt2|square|squared_distance|std_normal_cdf|std_normal_lccdf|std_normal_lcdf|std_normal_log_qf|std_normal_lpdf|std_normal_lupdf|std_normal_qf|std_normal_rng|step|student_t_cdf|student_t_lccdf|student_t_lcdf|student_t_lpdf|student_t_lupdf|student_t_rng|sub_col|sub_row|sum|svd|svd_U|svd_V|symmetrize_from_lower_tri|tail|tan|tanh|target|tcrossprod|tgamma|to_array_1d|to_array_2d|to_complex|to_int|to_matrix|to_row_vector|to_vector|trace|trace_gen_quad_form|trace_quad_form|trigamma|trunc|uniform_cdf|uniform_lccdf|uniform_lcdf|uniform_lpdf|uniform_lupdf|uniform_rng|uniform_simplex|variance|von_mises_cdf|von_mises_lccdf|von_mises_lcdf|von_mises_lpdf|von_mises_lupdf|von_mises_rng|weibull_cdf|weibull_lccdf|weibull_lcdf|weibull_lpdf|weibull_lupdf|weibull_rng|wiener_lpdf|wiener_lupdf|wishart_cholesky_lpdf|wishart_cholesky_lupdf|wishart_cholesky_rng|wishart_lpdf|wishart_lupdf|wishart_rng|zeros_array|zeros_int_array|zeros_row_vector)\\b\\s*\\("}]},"keywords":{"patterns":[{"name":"keyword.control.stan","match":"\\b(for|in|while|if|else)\\b"},{"match":"\\b(lower|upper|offset|multiplier)\\s*(=)","captures":{"1":{"name":"keyword.other.transform.stan"},"2":{"name":"punctuation.operator.equal.stan"}}},{"name":"keyword.other.return.stan","match":"\\breturn\\b"},{"match":"\\b(target)\\s*([+][=])","captures":{"1":{"name":"keyword.other.target.stan"},"2":{"name":"keyword.operator.accumulator.stan"}}},{"name":"keyword.other.special-functions.stan","match":"\\b(print|reject|target|fatal_error)\\b"},{"name":"keyword.other.truncation.stan","match":"\\bT(?=\\s*\\[)"}]},"numbers":{"patterns":[{"name":"constant.numeric.complex.stan","match":"(?x)\n(\n[0-9]+\\.[0-9]*([eE][+-]?[0-9]+)?\n|\n\\.[0-9]+([eE][+-]?[0-9]+)?\n|\n[0-9]+[eE][+-]?[0-9]+i\n)i"},{"name":"constant.numeric.real.stan","match":"(?x)\n(\n[0-9]+\\.[0-9]*([eE][+-]?[0-9]+)?\n|\n\\.[0-9]+([eE][+-]?[0-9]+)?\n|\n[0-9]+[eE][+-]?[0-9]+\n)"},{"name":"constant.numeric.integer.stan","match":"[0-9]+(_ [0-9]+)*(?=[^A-Za-z])"}]},"operators":{"patterns":[{"name":"invalid.deprecated.assignment.stan","match":"\u003c-"},{"name":"keyword.operator.colon.stan","match":":"},{"name":"keyword.operator.sampling.stan","match":"~"},{"name":"keyword.operator.conditional.stan","match":"[?]"},{"name":"keyword.operator.logical.stan","match":"[|]{2}|\u0026\u0026"},{"name":"keyword.operator.comparison.stan","match":"==|!=|\u003c=?|\u003e=?"},{"name":"keyword.operator.logical.stan","match":"!"},{"name":"keyword.operator.arithmetic.stan","match":"\\+|-|\\.?\\*|\\.?/|%|\\\\|\\^|'"},{"name":"keyword.operator.assignment.stan","match":"[+-]=|\\.?[*/]=|="},{"name":"keyword.operator.arithmetic.stan","match":"\\+|-|\\.?\\*|\\.?/|%|\\\\|\\^|'"}]},"punctuation":{"patterns":[{"name":"meta.delimiter.comma.stan","match":","},{"begin":"{","end":"}","patterns":[{"include":"$base"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.stan"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.stan"}}},{"name":"meta.brace.curly.stan","match":"[{}]"},{"name":"meta.brace.square.stan","match":"\\[|\\]"},{"name":"meta.brace.round.stan","match":"\\(|\\)"},{"name":"punctuation.terminator.statement.stan","match":"\\;"},{"name":"punctuation.sampling.bar.stan","match":"[|]"}]},"strings":{"patterns":[{"name":"string.quoted.double.stan","begin":"\"","end":"\"","patterns":[{"name":"invalid.illegal.string.stan","match":"[^ a-zA-Z0-9~@#$%^\u0026*_'`\\-+={}\\[\\]()\u003c\u003e|/!?.,;:\"]+"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.stan"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.stan"}}}]},"types":{"patterns":[{"name":"storage.type.stan","match":"\\b(int|real|data|complex|array|tuple|vector|simplex|unit_vector|ordered|positive_ordered|row_vector|matrix|complex_vector|complex_matrix|complex_row_vector|corr_matrix|cov_matrix|cholesky_factor_cov|cholesky_factor_corr|void)\\b"}]},"variables":{"patterns":[{"name":"invalid.illegal.reserved.stan","match":"\\b(for|in|while|repeat|until|if|then|else|true|false|var|struct|typedef|export|auto|extern|var|static)\\b"},{"name":"invalid.illegal.variable","match":"\\b([a-zA-Z0-9_]*__|[0-9_][A-Za-z0-9_]+|_)\\b"},{"match":"\\b[A-Za-z][0-9A-Za-z_]*\\b"}]}}}
|
1
|
+
{"name":"Stan","scopeName":"source.stan","patterns":[{"match":"\\b(functions|data|transformed\\s+data|parameters|transformed\\s+parameters|model|generated\\s+quantities)\\b\\s*\\{","captures":{"1":{"name":"entity.name.type.stan"}}},{"include":"#comments"},{"include":"#strings"},{"include":"#numbers"},{"include":"#types"},{"include":"#keywords"},{"include":"#distributions"},{"include":"#functions"},{"include":"#variables"},{"include":"#operators"},{"include":"#punctuation"}],"repository":{"comments":{"patterns":[{"name":"meta.preprocessor.include.stan","begin":"^\\s*((#)\\s*(include))\\b\\s*","end":"\\s*(?=(?://|/\\*|#)|\\n|$)","patterns":[{"name":"string.quoted.double.include.stan","begin":"[\"\u003c]?","end":"[\"\u003e]?\\s","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.stan"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.stan"}}}],"beginCaptures":{"1":{"name":"keyword.control.directive.include.stan"},"2":{"name":"punctuation.definition.directive.stan"}}},{"name":"comment.block.documentation.stan","begin":"/\\*\\*(?!/)","end":"\\*/","patterns":[{"include":"#docblock"}],"captures":{"0":{"name":"punctuation.definition.comment.stan"}}},{"name":"comment.block.stan","begin":"/\\*","end":"\\*/","beginCaptures":{"0":{"name":"punctuation.definition.comment.stan"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.stan"}}},{"name":"comment.line.double-slash.stan","begin":"//","end":"\\n","beginCaptures":{"0":{"name":"punctuation.definition.comment.stan"}}},{"name":"comment.line.number-sign.stan","begin":"#","end":"\\n","beginCaptures":{"0":{"name":"punctuation.definition.comment.stan"}}}]},"distributions":{"patterns":[{"match":"(~)(\\s*)(bernoulli|bernoulli_logit|bernoulli_logit_glm|beta|beta_binomial|beta_neg_binomial|binomial|binomial_logit|binomial_logit_glm|categorical|categorical_logit|categorical_logit_glm|cauchy|chi_square|dirichlet|dirichlet_multinomial|discrete_range|double_exponential|exp_mod_normal|exponential|frechet|gamma|gaussian_dlm_obs|gumbel|hypergeometric|inv_chi_square|inv_gamma|inv_wishart|inv_wishart_cholesky|lkj_corr|lkj_corr_cholesky|logistic|loglogistic|lognormal|multi_gp|multi_gp_cholesky|multi_normal|multi_normal_cholesky|multi_normal_prec|multi_student_t|multi_student_t_cholesky|multinomial|multinomial_logit|neg_binomial|neg_binomial_2|neg_binomial_2_log|neg_binomial_2_log_glm|normal|normal_id_glm|ordered_logistic|ordered_logistic_glm|ordered_probit|pareto|pareto_type_2|poisson|poisson_log|poisson_log_glm|rayleigh|scaled_inv_chi_square|skew_double_exponential|skew_normal|std_normal|student_t|uniform|von_mises|weibull|wiener|wishart|wishart_cholesky)\\b","captures":{"1":{"name":"keyword.operator.sampling.stan"},"3":{"name":"support.function.distribution.stan"}}}]},"docblock":{"patterns":[{"name":"storage.type.class.standoc","match":"(?\u003c!\\w)@(param|return)\\b"}]},"functions":{"patterns":[{"name":"invalid.deprecated.function.stan","match":"\\b([A-Za-z0-9][A-Za-z0-9_]*_log|binomial_coefficient_log|fabs|get_lp|if_else|increment_log_prob|integrate_ode[A-Za-z0-9_]*|lkj_cov_lpdf|multiply_log)\\b\\s*\\("},{"name":"support.function.function.stan","match":"\\b(Phi|Phi_approx|abs|acos|acosh|add_diag|algebra_solver|algebra_solver_newton|append_array|append_col|append_row|arg|asin|asinh|atan|atan2|atanh|bernoulli_cdf|bernoulli_lccdf|bernoulli_lcdf|bernoulli_logit_glm_lpmf|bernoulli_logit_glm_lupmf|bernoulli_logit_glm_rng|bernoulli_logit_lpmf|bernoulli_logit_lupmf|bernoulli_logit_rng|bernoulli_lpmf|bernoulli_lupmf|bernoulli_rng|bessel_first_kind|bessel_second_kind|beta|beta_binomial_cdf|beta_binomial_lccdf|beta_binomial_lcdf|beta_binomial_lpmf|beta_binomial_lupmf|beta_binomial_rng|beta_cdf|beta_lccdf|beta_lcdf|beta_lpdf|beta_lupdf|beta_neg_binomial_cdf|beta_neg_binomial_lccdf|beta_neg_binomial_lcdf|beta_neg_binomial_lpmf|beta_neg_binomial_lupmf|beta_neg_binomial_rng|beta_proportion_lccdf|beta_proportion_lcdf|beta_proportion_rng|beta_rng|binary_log_loss|binomial_cdf|binomial_lccdf|binomial_lcdf|binomial_logit_glm_lpmf|binomial_logit_glm_lupmf|binomial_logit_lpmf|binomial_logit_lupmf|binomial_lpmf|binomial_lupmf|binomial_rng|block|categorical_logit_glm_lpmf|categorical_logit_glm_lupmf|categorical_logit_lpmf|categorical_logit_lupmf|categorical_logit_rng|categorical_lpmf|categorical_lupmf|categorical_rng|cauchy_cdf|cauchy_lccdf|cauchy_lcdf|cauchy_lpdf|cauchy_lupdf|cauchy_rng|cbrt|ceil|chi_square_cdf|chi_square_lccdf|chi_square_lcdf|chi_square_lpdf|chi_square_lupdf|chi_square_rng|chol2inv|cholesky_decompose|choose|col|cols|columns_dot_product|columns_dot_self|complex_schur_decompose|complex_schur_decompose_t|complex_schur_decompose_u|conj|cos|cosh|cov_exp_quad|crossprod|csr_extract|csr_extract_u|csr_extract_v|csr_extract_w|csr_matrix_times_vector|csr_to_dense_matrix|cumulative_sum|dae|dae_tol|determinant|diag_matrix|diag_post_multiply|diag_pre_multiply|diagonal|digamma|dims|dirichlet_lpdf|dirichlet_lupdf|dirichlet_multinomial_lpmf|dirichlet_multinomial_lupmf|dirichlet_multinomial_rng|dirichlet_rng|discrete_range_cdf|discrete_range_lccdf|discrete_range_lcdf|discrete_range_lpmf|discrete_range_lupmf|discrete_range_rng|distance|dot_product|dot_self|double_exponential_cdf|double_exponential_lccdf|double_exponential_lcdf|double_exponential_lpdf|double_exponential_lupdf|double_exponential_rng|e|eigendecompose|eigendecompose_sym|eigenvalues|eigenvalues_sym|eigenvectors|eigenvectors_sym|erf|erfc|exp|exp2|exp_mod_normal_cdf|exp_mod_normal_lccdf|exp_mod_normal_lcdf|exp_mod_normal_lpdf|exp_mod_normal_lupdf|exp_mod_normal_rng|expm1|exponential_cdf|exponential_lccdf|exponential_lcdf|exponential_lpdf|exponential_lupdf|exponential_rng|falling_factorial|fdim|fft|fft2|floor|fma|fmax|fmin|fmod|frechet_cdf|frechet_lccdf|frechet_lcdf|frechet_lpdf|frechet_lupdf|frechet_rng|gamma_cdf|gamma_lccdf|gamma_lcdf|gamma_lpdf|gamma_lupdf|gamma_p|gamma_q|gamma_rng|gaussian_dlm_obs_lpdf|gaussian_dlm_obs_lupdf|generalized_inverse|get_imag|get_real|gumbel_cdf|gumbel_lccdf|gumbel_lcdf|gumbel_lpdf|gumbel_lupdf|gumbel_rng|head|hmm_hidden_state_prob|hmm_latent_rng|hmm_marginal|hypergeometric_lpmf|hypergeometric_lupmf|hypergeometric_rng|hypot|identity_matrix|inc_beta|int_step|integrate_1d|integrate_ode|integrate_ode_adams|integrate_ode_bdf|integrate_ode_rk45|inv|inv_Phi|inv_chi_square_cdf|inv_chi_square_lccdf|inv_chi_square_lcdf|inv_chi_square_lpdf|inv_chi_square_lupdf|inv_chi_square_rng|inv_cloglog|inv_erfc|inv_fft|inv_fft2|inv_gamma_cdf|inv_gamma_lccdf|inv_gamma_lcdf|inv_gamma_lpdf|inv_gamma_lupdf|inv_gamma_rng|inv_inc_beta|inv_logit|inv_sqrt|inv_square|inv_wishart_cholesky_lpdf|inv_wishart_cholesky_lupdf|inv_wishart_cholesky_rng|inv_wishart_lpdf|inv_wishart_lupdf|inv_wishart_rng|inverse|inverse_spd|is_inf|is_nan|lambert_w0|lambert_wm1|lbeta|lchoose|ldexp|lgamma|linspaced_array|linspaced_int_array|linspaced_row_vector|linspaced_vector|lkj_corr_cholesky_lpdf|lkj_corr_cholesky_lupdf|lkj_corr_cholesky_rng|lkj_corr_lpdf|lkj_corr_lupdf|lkj_corr_rng|lmgamma|lmultiply|log|log10|log1m|log1m_exp|log1m_inv_logit|log1p|log1p_exp|log2|log_determinant|log_diff_exp|log_falling_factorial|log_inv_logit|log_inv_logit_diff|log_mix|log_modified_bessel_first_kind|log_rising_factorial|log_softmax|log_sum_exp|logistic_cdf|logistic_lccdf|logistic_lcdf|logistic_lpdf|logistic_lupdf|logistic_rng|logit|loglogistic_cdf|loglogistic_lpdf|loglogistic_rng|lognormal_cdf|lognormal_lccdf|lognormal_lcdf|lognormal_lpdf|lognormal_lupdf|lognormal_rng|machine_precision|map_rect|matrix_exp|matrix_exp_multiply|matrix_power|max|mdivide_left_spd|mdivide_left_tri_low|mdivide_right_spd|mdivide_right_tri_low|mean|min|modified_bessel_first_kind|modified_bessel_second_kind|multi_gp_cholesky_lpdf|multi_gp_cholesky_lupdf|multi_gp_lpdf|multi_gp_lupdf|multi_normal_cholesky_lpdf|multi_normal_cholesky_lupdf|multi_normal_cholesky_rng|multi_normal_lpdf|multi_normal_lupdf|multi_normal_prec_lpdf|multi_normal_prec_lupdf|multi_normal_rng|multi_student_cholesky_t_rng|multi_student_t_cholesky_lpdf|multi_student_t_cholesky_lupdf|multi_student_t_cholesky_rng|multi_student_t_lpdf|multi_student_t_lupdf|multi_student_t_rng|multinomial_logit_lpmf|multinomial_logit_lupmf|multinomial_logit_rng|multinomial_lpmf|multinomial_lupmf|multinomial_rng|multiply_lower_tri_self_transpose|neg_binomial_2_cdf|neg_binomial_2_lccdf|neg_binomial_2_lcdf|neg_binomial_2_log_glm_lpmf|neg_binomial_2_log_glm_lupmf|neg_binomial_2_log_lpmf|neg_binomial_2_log_lupmf|neg_binomial_2_log_rng|neg_binomial_2_lpmf|neg_binomial_2_lupmf|neg_binomial_2_rng|neg_binomial_cdf|neg_binomial_lccdf|neg_binomial_lcdf|neg_binomial_lpmf|neg_binomial_lupmf|neg_binomial_rng|negative_infinity|norm|norm1|norm2|normal_cdf|normal_id_glm_lpdf|normal_id_glm_lupdf|normal_lccdf|normal_lcdf|normal_lpdf|normal_lupdf|normal_rng|not_a_number|num_elements|ode_adams|ode_adams_tol|ode_adjoint_tol_ctl|ode_bdf|ode_bdf_tol|ode_ckrk|ode_ckrk_tol|ode_rk45|ode_rk45_tol|one_hot_array|one_hot_int_array|one_hot_row_vector|one_hot_vector|ones_array|ones_int_array|ones_row_vector|ones_vector|ordered_logistic_glm_lpmf|ordered_logistic_glm_lupmf|ordered_logistic_lpmf|ordered_logistic_lupmf|ordered_logistic_rng|ordered_probit_lpmf|ordered_probit_lupmf|ordered_probit_rng|owens_t|pareto_cdf|pareto_lccdf|pareto_lcdf|pareto_lpdf|pareto_lupdf|pareto_rng|pareto_type_2_cdf|pareto_type_2_lccdf|pareto_type_2_lcdf|pareto_type_2_lpdf|pareto_type_2_lupdf|pareto_type_2_rng|pi|poisson_cdf|poisson_lccdf|poisson_lcdf|poisson_log_glm_lpmf|poisson_log_glm_lupmf|poisson_log_lpmf|poisson_log_lupmf|poisson_log_rng|poisson_lpmf|poisson_lupmf|poisson_rng|polar|positive_infinity|pow|prod|proj|qr|qr_Q|qr_R|qr_thin|qr_thin_Q|qr_thin_R|quad_form|quad_form_diag|quad_form_sym|quantile|rank|rayleigh_cdf|rayleigh_lccdf|rayleigh_lcdf|rayleigh_lpdf|rayleigh_lupdf|rayleigh_rng|reduce_sum|rep_array|rep_matrix|rep_row_vector|rep_vector|reverse|rising_factorial|round|row|rows|rows_dot_product|rows_dot_self|scale_matrix_exp_multiply|scaled_inv_chi_square_cdf|scaled_inv_chi_square_lccdf|scaled_inv_chi_square_lcdf|scaled_inv_chi_square_lpdf|scaled_inv_chi_square_lupdf|scaled_inv_chi_square_rng|sd|segment|sin|singular_values|sinh|size|skew_double_exponential_cdf|skew_double_exponential_lccdf|skew_double_exponential_lcdf|skew_double_exponential_lpdf|skew_double_exponential_lupdf|skew_double_exponential_rng|skew_normal_cdf|skew_normal_lccdf|skew_normal_lcdf|skew_normal_lpdf|skew_normal_lupdf|skew_normal_rng|softmax|sort_asc|sort_desc|sort_indices_asc|sort_indices_desc|sqrt|sqrt2|square|squared_distance|std_normal_cdf|std_normal_lccdf|std_normal_lcdf|std_normal_log_qf|std_normal_lpdf|std_normal_lupdf|std_normal_qf|std_normal_rng|step|student_t_cdf|student_t_lccdf|student_t_lcdf|student_t_lpdf|student_t_lupdf|student_t_rng|sub_col|sub_row|sum|svd|svd_U|svd_V|symmetrize_from_lower_tri|tail|tan|tanh|target|tcrossprod|tgamma|to_array_1d|to_array_2d|to_complex|to_int|to_matrix|to_row_vector|to_vector|trace|trace_gen_quad_form|trace_quad_form|trigamma|trunc|uniform_cdf|uniform_lccdf|uniform_lcdf|uniform_lpdf|uniform_lupdf|uniform_rng|uniform_simplex|variance|von_mises_cdf|von_mises_lccdf|von_mises_lcdf|von_mises_lpdf|von_mises_lupdf|von_mises_rng|weibull_cdf|weibull_lccdf|weibull_lcdf|weibull_lpdf|weibull_lupdf|weibull_rng|wiener_lpdf|wiener_lupdf|wishart_cholesky_lpdf|wishart_cholesky_lupdf|wishart_cholesky_rng|wishart_lpdf|wishart_lupdf|wishart_rng|zeros_array|zeros_int_array|zeros_row_vector)\\b\\s*\\("}]},"keywords":{"patterns":[{"name":"keyword.control.stan","match":"\\b(for|in|while|if|else)\\b"},{"match":"\\b(lower|upper|offset|multiplier)\\s*(=)","captures":{"1":{"name":"keyword.other.transform.stan"},"2":{"name":"punctuation.operator.equal.stan"}}},{"name":"keyword.other.return.stan","match":"\\breturn\\b"},{"match":"\\b(target|jacobian)\\s*([+][=])","captures":{"1":{"name":"keyword.other.target.stan"},"2":{"name":"keyword.operator.accumulator.stan"}}},{"name":"keyword.other.special-functions.stan","match":"\\b(print|reject|target|fatal_error)\\b"},{"name":"keyword.other.truncation.stan","match":"\\bT(?=\\s*\\[)"}]},"numbers":{"patterns":[{"name":"constant.numeric.complex.stan","match":"(?x)\n(\n[0-9]+\\.[0-9]*([eE][+-]?[0-9]+)?\n|\n\\.[0-9]+([eE][+-]?[0-9]+)?\n|\n[0-9]+[eE][+-]?[0-9]+i\n)i"},{"name":"constant.numeric.real.stan","match":"(?x)\n(\n[0-9]+\\.[0-9]*([eE][+-]?[0-9]+)?\n|\n\\.[0-9]+([eE][+-]?[0-9]+)?\n|\n[0-9]+[eE][+-]?[0-9]+\n)"},{"name":"constant.numeric.integer.stan","match":"[0-9]+(_ [0-9]+)*(?=[^A-Za-z])"}]},"operators":{"patterns":[{"name":"invalid.deprecated.assignment.stan","match":"\u003c-"},{"name":"keyword.operator.colon.stan","match":":"},{"name":"keyword.operator.sampling.stan","match":"~"},{"name":"keyword.operator.conditional.stan","match":"[?]"},{"name":"keyword.operator.logical.stan","match":"[|]{2}|\u0026\u0026"},{"name":"keyword.operator.comparison.stan","match":"==|!=|\u003c=?|\u003e=?"},{"name":"keyword.operator.logical.stan","match":"!"},{"name":"keyword.operator.arithmetic.stan","match":"\\+|-|\\.?\\*|\\.?/|%|\\\\|\\^|'"},{"name":"keyword.operator.assignment.stan","match":"[+-]=|\\.?[*/]=|="},{"name":"keyword.operator.arithmetic.stan","match":"\\+|-|\\.?\\*|\\.?/|%|\\\\|\\^|'"}]},"punctuation":{"patterns":[{"name":"meta.delimiter.comma.stan","match":","},{"begin":"{","end":"}","patterns":[{"include":"$base"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.stan"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.stan"}}},{"name":"meta.brace.curly.stan","match":"[{}]"},{"name":"meta.brace.square.stan","match":"\\[|\\]"},{"name":"meta.brace.round.stan","match":"\\(|\\)"},{"name":"punctuation.terminator.statement.stan","match":"\\;"},{"name":"punctuation.sampling.bar.stan","match":"[|]"}]},"strings":{"patterns":[{"name":"string.quoted.double.stan","begin":"\"","end":"\"","patterns":[{"name":"invalid.illegal.string.stan","match":"[^ a-zA-Z0-9~@#$%^\u0026*_'`\\-+={}\\[\\]()\u003c\u003e|/!?.,;:\"]+"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.stan"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.stan"}}}]},"types":{"patterns":[{"name":"storage.type.stan","match":"\\b(int|real|data|complex|array|tuple|vector|simplex|unit_vector|sum_to_zero_vector|ordered|positive_ordered|row_vector|matrix|complex_vector|complex_matrix|complex_row_vector|corr_matrix|cov_matrix|cholesky_factor_cov|cholesky_factor_corr|column_stochastic_matrix|row_stochastic_matrix|void)\\b"}]},"variables":{"patterns":[{"name":"invalid.illegal.reserved.stan","match":"\\b(for|in|while|repeat|until|if|then|else|true|false|var|struct|typedef|export|auto|extern|var|static)\\b"},{"name":"invalid.illegal.variable","match":"\\b([a-zA-Z0-9_]*__|[0-9_][A-Za-z0-9_]+|_)\\b"},{"match":"\\b[A-Za-z][0-9A-Za-z_]*\\b"}]}}}
|