github-linguist 9.6.0 → 9.7.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/gno.mod.json +1 -0
- data/grammars/source.abl.json +1 -1
- data/grammars/source.aleo.json +1 -0
- data/grammars/source.astro.json +1 -1
- data/grammars/source.baml.json +1 -1
- data/grammars/source.bird2.json +1 -0
- data/grammars/source.blueprint.json +1 -0
- data/grammars/source.bnd.json +1 -1
- data/grammars/source.bsl.json +1 -1
- data/grammars/source.carbon.json +1 -0
- data/grammars/source.cl.json +1 -1
- data/grammars/source.clar.json +1 -1
- data/grammars/source.clarion.json +1 -1
- data/grammars/source.cmd.json +1 -1
- data/grammars/source.comment-string.wesl.json +1 -1
- data/grammars/source.comment-string.wgsl.json +1 -1
- data/grammars/source.cs.json +1 -1
- data/grammars/source.csswg.json +1 -1
- data/grammars/source.curlrc.json +1 -1
- data/grammars/source.dart.json +1 -1
- data/grammars/source.dds.dspf.json +1 -1
- data/grammars/source.dds.icff.json +1 -1
- data/grammars/source.dds.lf.json +1 -1
- data/grammars/source.dds.pf.json +1 -1
- data/grammars/source.dds.prtf.json +1 -1
- data/grammars/source.deq.json +1 -0
- data/grammars/source.fift.json +1 -0
- data/grammars/source.flix.json +1 -1
- data/grammars/source.fpp.json +1 -0
- data/grammars/source.func.json +1 -0
- data/grammars/source.gdscript.json +1 -1
- data/grammars/source.gedcom.json +1 -1
- data/grammars/source.gitconfig.json +1 -1
- data/grammars/source.gno.json +1 -0
- data/grammars/source.graphql.json +1 -1
- data/grammars/source.hack.json +1 -1
- data/grammars/source.hx.json +1 -1
- data/grammars/source.hxml.json +1 -1
- data/grammars/source.ink.json +1 -1
- data/grammars/source.jac.json +1 -1
- data/grammars/source.jass.json +1 -0
- data/grammars/source.julia.json +1 -1
- data/grammars/source.kcl.json +1 -1
- data/grammars/source.koka.json +1 -1
- data/grammars/source.leo.json +1 -1
- data/grammars/source.lobster.json +1 -0
- data/grammars/source.logos.json +1 -1
- data/grammars/source.luau.json +1 -1
- data/grammars/source.m2.json +1 -1
- data/grammars/source.mi.json +1 -1
- data/grammars/source.mojo.json +1 -1
- data/grammars/source.ms.json +1 -0
- data/grammars/source.nim.json +1 -1
- data/grammars/source.openqasm.json +1 -1
- data/grammars/source.opy.json +1 -1
- data/grammars/source.paperspecs.json +1 -0
- data/grammars/source.pl.json +1 -0
- data/grammars/source.pnlgrp.json +1 -1
- data/grammars/source.qsharp.json +1 -1
- data/grammars/source.rarlist.json +1 -0
- data/grammars/source.rascal.json +1 -1
- data/grammars/source.rego.json +1 -1
- data/grammars/source.rhai.json +1 -0
- data/grammars/source.rpg.json +1 -1
- data/grammars/source.rpgle.json +1 -1
- data/grammars/source.rust.json +1 -1
- data/grammars/source.scala.json +1 -1
- data/grammars/source.smithy.json +1 -1
- data/grammars/source.spicedb.json +1 -1
- data/grammars/source.stim.json +1 -0
- data/grammars/source.surrealql.json +1 -1
- data/grammars/source.swift.json +1 -1
- data/grammars/source.tasm.json +1 -0
- data/grammars/source.tlb.json +1 -0
- data/grammars/source.tolk.json +1 -0
- data/grammars/source.ucode-template.json +1 -0
- data/grammars/source.ucode.json +1 -0
- data/grammars/source.vento.json +1 -1
- data/grammars/source.verse.json +1 -0
- data/grammars/source.vespaSchema.json +1 -0
- data/grammars/source.vhs.json +1 -0
- data/grammars/source.wgsl.json +1 -1
- data/grammars/source.yaml.salt.json +1 -1
- data/grammars/text.bbcode.json +1 -0
- data/grammars/text.html.handlebars.json +1 -1
- data/grammars/text.recfile.json +1 -0
- data/grammars/text.roff.json +1 -1
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/blob_helper.rb +19 -0
- data/lib/linguist/generated.rb +24 -0
- data/lib/linguist/generic.yml +1 -0
- data/lib/linguist/heuristics.yml +80 -5
- data/lib/linguist/language.rb +5 -9
- data/lib/linguist/languages.yml +231 -27
- data/lib/linguist/languages_data.rb +7663 -0
- data/lib/linguist/lazy_blob.rb +6 -1
- data/lib/linguist/samples.rb +4 -10
- data/lib/linguist/samples_data.rb +196100 -0
- metadata +31 -19
- data/grammars/markdown.bicep.codeblock.json +0 -1
- data/grammars/source.baml-jinja.json +0 -1
- data/lib/linguist/languages.json +0 -1
- data/lib/linguist/samples.json +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"tasm","scopeName":"source.tasm","patterns":[{"include":"#comment"},{"include":"#keyword"},{"include":"#instruction"},{"include":"#literal"},{"include":"#register"},{"include":"#code_block"},{"include":"#dictionary"},{"include":"#punctuation"}],"repository":{"code_block":{"name":"meta.code-block.tasm","begin":"\\{","end":"\\}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.section.code.begin.tasm"}},"endCaptures":{"0":{"name":"punctuation.section.code.end.tasm"}}},"comment":{"patterns":[{"name":"comment.line.double-slash.tasm","begin":"//","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.tasm"}}}]},"dictionary":{"name":"meta.dictionary.tasm","begin":"\\[","end":"\\]","patterns":[{"name":"keyword.operator.mapsto.tasm","match":"=\u003e"},{"include":"#literal"},{"include":"#code_block"},{"include":"#punctuation"}],"beginCaptures":{"0":{"name":"punctuation.section.dictionary.begin.tasm"}},"endCaptures":{"0":{"name":"punctuation.section.dictionary.end.tasm"}}},"instruction":{"patterns":[{"name":"keyword.control.instruction.tasm","match":"\\b([A-Z_][A-Z0-9_]*)\\b"}]},"keyword":{"patterns":[{"name":"keyword.other.ref.tasm","match":"\\b(ref)(?!\\w)"},{"name":"keyword.other.embed.tasm","match":"\\b(embed)(?!\\w)"},{"name":"keyword.other.exotic.tasm","match":"\\b(exotic)(?!\\w)"},{"name":"keyword.other.library.tasm","match":"\\b(library)(?!\\w)"}]},"literal":{"patterns":[{"name":"constant.numeric.hex.tasm","match":"\\b(0[xX][a-fA-F0-9](?:_?[a-fA-F0-9])*)\\b"},{"name":"constant.numeric.binary.tasm","match":"\\b(0[bB][01](?:_?[01])*)\\b"},{"name":"constant.numeric.octal.tasm","match":"\\b(0[oO][0-7](?:_?[0-7])*)\\b"},{"name":"constant.numeric.decimal.tasm","match":"\\b(-?(?:[0-9](?:_?[0-9])*))\\b"},{"name":"constant.other.hex.tasm","match":"x\\{[a-fA-F0-9_]*\\}"},{"name":"constant.other.binary.tasm","match":"b\\{[01_]*\\}"},{"name":"constant.other.boc.tasm","match":"boc\\{[a-fA-F0-9_]*\\}"},{"name":"string.quoted.double.tasm","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.tasm","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.tasm"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.tasm"}}}]},"punctuation":{"patterns":[{"name":"punctuation.comma.tasm","match":","},{"name":"punctuation.semi.tasm","match":";"},{"name":"punctuation.colon.tasm","match":":"}]},"register":{"patterns":[{"name":"variable.parameter.register.stack.tasm","match":"\\b(s-?[0-9]+)\\b"},{"name":"variable.parameter.register.control.tasm","match":"\\b(c[0-9]+)\\b"}]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"tlb","scopeName":"source.tlb","patterns":[{"include":"#comment"},{"include":"#constructors"},{"include":"#typeDefinitions"},{"include":"#typeParameters"},{"include":"#fields"},{"include":"#hashExpressions"},{"include":"#operators"},{"include":"#primitiveTypes"},{"include":"#arrays"},{"include":"#numbers"},{"include":"#declarations"}],"repository":{"arrays":{"patterns":[{"name":"meta.array.tlb","begin":"\\[","end":"\\]","patterns":[{"include":"#expressions"}]}]},"comment":{"patterns":[{"name":"comment.line.double-slash.tlb","begin":"//","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.line.double-slash.tlb"}}},{"name":"comment.block.tlb","begin":"\\s*/\\*","end":"\\*/","beginCaptures":{"0":{"name":"comment.block.begin.tlb punctuation.definition.comment.begin.tlb"}},"endCaptures":{"0":{"name":"comment.block.end.tlb punctuation.definition.comment.end.tlb"}}}]},"constructors":{"patterns":[{"match":"([a-zA-Z_][a-zA-Z0-9_]*)\\s*(\\$[01_]+|#[0-9a-fA-F_]*)","captures":{"1":{"name":"entity.name.type.constructor.tlb"},"2":{"name":"constant.numeric.constructor-tag.tlb"}}}]},"declarations":{"patterns":[{"match":"([a-zA-Z_][a-zA-Z0-9_]*)#([0-9a-fA-F]+)","captures":{"1":{"name":"entity.name.type.tlb"},"2":{"name":"constant.numeric.hex.tlb"}}}]},"expressions":{"patterns":[{"include":"#hashExpressions"},{"include":"#operators"},{"include":"#primitiveTypes"},{"include":"#arrays"},{"include":"#numbers"},{"name":"variable.other.tlb","match":"\\b[a-zA-Z_][a-zA-Z0-9_]*\\b"}]},"fields":{"patterns":[{"match":"([a-zA-Z_][a-zA-Z0-9_]*)\\s*(:)","captures":{"1":{"name":"variable.other.property.tlb"},"2":{"name":"keyword.operator.colon.tlb"}}},{"match":"\\^\\s*\\(([^)]+)\\)","captures":{"0":{"name":"keyword.operator.reference.tlb"},"1":{"patterns":[{"include":"#expressions"}]}}}]},"hashExpressions":{"patterns":[{"match":"(##)\\s*\\(([^)]+)\\)","captures":{"1":{"name":"entity.name.function.macro.tlb"},"2":{"patterns":[{"include":"#expressions"}]}}},{"name":"entity.name.function.macro.tlb","match":"(##|~)"}]},"numbers":{"patterns":[{"name":"constant.numeric.decimal.tlb","match":"\\b\\d+\\b"},{"name":"constant.numeric.hex.tlb","match":"\\b0x[0-9a-fA-F]+\\b"}]},"operators":{"patterns":[{"name":"keyword.operator.tlb","match":"(\\+|\\-|\\*|\\|\u003c=|\u003e=|!=|=|\u003c|\u003e|\\^|~|\\?)"}]},"primitiveTypes":{"patterns":[{"name":"support.type.primitive.tlb","match":"\\b((u)?int\\d+|Type|Bit|Maybe)\\b"}]},"typeDefinitions":{"patterns":[{"match":"=\\s*([A-Z][a-zA-Z0-9]*)(?:\\s+([a-zA-Z0-9_\\s]+))?\\s*(?:X)?\\s*;","captures":{"1":{"name":"entity.name.class.tlb"},"2":{"patterns":[{"include":"#expressions"}]}}}]},"typeParameters":{"patterns":[{"match":"\\{([A-Z][a-zA-Z0-9]*):Type\\}","captures":{"1":{"name":"support.type.parameter.tlb"}}},{"match":"\\{([a-z][a-zA-Z0-9]*):([^}]+)\\}","captures":{"1":{"name":"variable.parameter.tlb"},"2":{"name":"support.type.parameter.tlb"}}}]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Tolk","scopeName":"source.tolk","patterns":[{"name":"comment.line.double-slash","match":"//(.*)"},{"name":"comment.block","begin":"/\\*","end":"\\*/"},{"name":"string.quoted.triple.tolk","begin":"\"\"\"","end":"\"\"\"","patterns":[{"name":"constant.character.escape.tolk","match":"\\\\."}]},{"name":"string.quoted.double.tolk","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.tolk","match":"\\\\([nrt\\\\'\"])"}]},{"name":"constant.numeric","match":"\\b(-?(0x[0-9a-fA-F_]*|0b[01_]*|[0-9][0-9_]*))\\b"},{"name":"keyword.control","match":"\\b(do|if|try|else|while|for|break|throw|catch|return|assert|repeat|continue|asm|builtin|match|lazy)\\b"},{"name":"keyword.operator","match":"\\+|-|\\*|/|%|\\?|:|,|;|\\(|\\)|\\[|\\]|{|}|=|\u003c|\u003e|!|\u0026|\\||\\^|==|!=|\u003c=|\u003e=|\u003c\u003c|\u003e\u003e|\u0026\u0026|\\|\\||~/|\\^/|\\+=|-=|\\*=|/=|%=|\u0026=|\\|=|\\^=|-\u003e|\u003c=\u003e|~\u003e\u003e|\\^\u003e\u003e|\u003c\u003c=|\u003e\u003e=|=\u003e|\\?\\?"},{"name":"keyword.other","match":"\\b(import|export|namespace|true|false|null|mutate|tolk|as|is|private|readonly)\\b"},{"name":"keyword.other","match":"\\bself\\b"},{"name":"entity.name.type.parameter","match":"(?\u003c!\\.)\\b[TUKV]\\b"},{"match":"\\b(val|var)\\s+(?:type|enum|int|map|array|cell|Cell|void|dict|bool|any_address|slice|string|tuple|builder|continuation|never|unknown|coins|address|varint16|varint32|varuint16|varuint32|int\\d+|uint\\d+|bits\\d+|bytes\\d+)\\b","captures":{"1":{"name":"storage.modifier"}}},{"name":"constant.other","match":"\\b[A-Z][A-Z0-9_]{2,}\\b"},{"name":"storage.type","match":"(?\u003c!\\.)\\b(type|enum|int|map|array|cell|Cell|void|dict|bool|any_address|slice|string|tuple|builder|continuation|never|unknown|coins|varint16|varint32|varuint16|varuint32|int\\d+|uint\\d+|bits\\d+|bytes\\d+)\\b"},{"name":"storage.type","match":"(?\u003c!\\.)\\baddress\\b(?!\\s*:)"},{"name":"storage.modifier","match":"\\b(global|const|var|val|fun|get|struct|contract)\\b"},{"begin":"(@)(?=[A-Za-z0-9_])","end":"(?![A-Za-z0-9_.])","patterns":[{"name":"entity.name.function.decorator","match":"[A-Za-z0-9_]+"}],"beginCaptures":{"1":{"name":"entity.name.function.decorator"}}},{"match":"(\\.)?(`[^`]+`|[a-zA-Z$_][a-zA-Z0-9$_]*)(?=\\s*(?:\u003c[^()\\n]*\u003e)?\\s*\\()","captures":{"1":{"name":"keyword.operator.accessor"},"2":{"name":"entity.name.function"}}},{"match":"(\\.)(`[^`]+`|[a-zA-Z$_][a-zA-Z0-9$_]*)","captures":{"1":{"name":"keyword.operator.accessor"},"2":{"name":"variable.other.property"}}},{"name":"entity.name.type","match":"(?\u003c!\\.)\\b[A-Z][a-zA-Z0-9]*\\b"}]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"ucode Template","scopeName":"source.ucode-template","patterns":[{"name":"comment.block.ucode-template","begin":"\\{#-?","end":"-?#\\}","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.ucode-template"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.ucode-template"}}},{"contentName":"meta.embedded.block.ucode","begin":"\\{\\{-?","end":"-?\\}\\}","patterns":[{"include":"source.ucode"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.ucode-template"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.ucode-template"}}},{"contentName":"meta.embedded.block.ucode","begin":"\\{%[+-]?","end":"-?%\\}","patterns":[{"include":"source.ucode"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.ucode-template"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.ucode-template"}}},{"include":"text.html.basic"}]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"ucode","scopeName":"source.ucode","patterns":[{"include":"#template_blocks"},{"include":"#comments"},{"include":"#regexp"},{"include":"#strings"},{"include":"#numbers"},{"include":"#property_access"},{"include":"#keywords"},{"include":"#operators"},{"include":"#functions"},{"include":"#objects"},{"include":"#variables"}],"repository":{"comments":{"patterns":[{"name":"comment.line.double-slash.ucode","match":"//.*$"},{"name":"comment.block.empty.ucode","match":"/\\*/(?!/)"},{"name":"comment.block.ucode","begin":"/\\*","end":"\\*/"},{"name":"comment.block.template.ucode","begin":"{#","end":"#}"}]},"functions":{"patterns":[{"name":"support.function.builtin.ucode","match":"\\b(print|printf|sprintf|length|substr|split|join|trim|ltrim|rtrim|chr|ord|uc|lc|type|keys|values|push|pop|shift|unshift|index|rindex|require|include|json|match|replace|system|time|sleep|localtime|gmtime|timelocal|timegm|min|max|uniq|b64enc|b64dec|hexenc|hexdec|hex|uchr|iptoarr|arrtoip|int|loadstring|loadfile|wildcard|regexp|assert|call|signal|clock|sourcepath|gc|die|exists|exit|filter|getenv|map|proto|render|reverse|slice|sort|splice|trace|warn)\\b(?=\\s*\\()"},{"name":"entity.name.function.ucode","match":"\\b([a-zA-Z_$][a-zA-Z0-9_$]*)\\s*(?=\\()"}]},"keywords":{"patterns":[{"match":"\\b(default)\\s+(?=as\\b)","captures":{"1":{"name":"variable.other.ucode"}}},{"match":"\\bas\\s+(default)\\b","captures":{"1":{"name":"variable.other.ucode"}}},{"name":"keyword.control.ucode","match":"\\b(if|else|elif|endif|while|endwhile|for|endfor|break|continue|return|try|catch|switch|case|default|in)\\b"},{"name":"storage.type.ucode","match":"\\b(let|const|function|endfunction)\\b"},{"name":"keyword.operator.delete.ucode","match":"\\b(delete)\\b(?!\\s*\\()"},{"name":"keyword.control.module.ucode","match":"\\b(import|export)\\b"},{"name":"constant.language.ucode","match":"\\b(true|false|null|this)\\b"}]},"numbers":{"patterns":[{"name":"constant.numeric.hex.ucode","match":"\\b0[xX][0-9a-fA-F]+\\b"},{"name":"constant.numeric.binary.ucode","match":"\\b0[bB][01]+\\b"},{"name":"constant.numeric.octal.ucode","match":"\\b0[oO][0-7]+\\b"},{"name":"constant.numeric.decimal.ucode","match":"\\b\\d+(\\.\\d+)?([eE][+-]?\\d+)?\\b"}]},"objects":{"patterns":[{"name":"meta.object.literal.ucode","begin":"\\{","end":"\\}","patterns":[{"name":"meta.object.property.ucode","begin":"\\b(try|catch|if|else|while|for|return|break|continue|function|let|const|true|false|null|this|switch|case|default|import|export|in|delete|[a-zA-Z_$][a-zA-Z0-9_$]*)\\s*(?=:)","end":"(?=:)","beginCaptures":{"1":{"name":"variable.other.property.ucode"}}},{"include":"$self"}]}]},"operators":{"patterns":[{"name":"keyword.operator.arithmetic.ucode","match":"(\\+|\\-|\\*|/|%|\\*\\*|\\+\\+|--)"},{"name":"keyword.operator.assignment.ucode","match":"(=|\\+=|\\-=|\\*=|/=|%=|\\*\\*=|\u0026=|\\^=|\\|=|\u003c\u003c=|\u003e\u003e=|\u0026\u0026=|\\|\\|=|\\?\\?=)"},{"name":"keyword.operator.comparison.ucode","match":"(===|!==|==|!=|\u003c|\u003c=|\u003e|\u003e=)"},{"name":"keyword.operator.logical.ucode","match":"(\u0026\u0026|\\|\\||!)"},{"name":"keyword.operator.bitwise.ucode","match":"(\u0026|\\||\\^|~|\u003c\u003c|\u003e\u003e)"},{"name":"keyword.operator.ternary.ucode","match":"(\\?|:)"},{"name":"keyword.operator.optional-chaining.ucode","match":"(\\?\\.)"},{"name":"keyword.operator.nullish-coalescing.ucode","match":"(\\?\\?)"},{"name":"keyword.operator.arrow.ucode","match":"(=\u003e)"}]},"property_access":{"patterns":[{"name":"entity.name.function.method.ucode","match":"(?\u003c=\\.)\\b([a-zA-Z_$][a-zA-Z0-9_$]*)\\s*(?=\\()"},{"name":"variable.other.property.ucode","match":"(?\u003c=\\.)\\b(try|catch|if|else|elif|endif|while|endwhile|for|endfor|break|continue|return|switch|case|default|in|let|const|function|endfunction|delete|import|export|true|false|null|this|[a-zA-Z_$][a-zA-Z0-9_$]*)\\b"}]},"regexp":{"patterns":[{"contentName":"string.regexp.ucode","begin":"(?\u003c=[=(,:;!?\\[]|\\breturn|\\bcase|\u0026\u0026|\\|\\|)\\s*(/(?![/*]))","end":"/[gis]*","patterns":[{"name":"constant.character.escape.regexp.ucode","match":"\\\\."},{"name":"constant.other.character-class.regexp.ucode","begin":"\\[\\^?\\]?","end":"\\]","patterns":[{"name":"constant.character.escape.regexp.ucode","match":"\\\\."}]}],"beginCaptures":{"1":{"name":"string.regexp.ucode"}},"endCaptures":{"0":{"name":"string.regexp.ucode"}}}]},"strings":{"patterns":[{"name":"string.quoted.double.ucode","begin":"\"","end":"\"|((?\u003c!\\\\)$)","patterns":[{"name":"constant.character.escape.ucode","match":"\\\\."}]},{"name":"string.quoted.single.ucode","begin":"'","end":"'|((?\u003c!\\\\)$)","patterns":[{"name":"constant.character.escape.ucode","match":"\\\\."}]},{"name":"string.template.ucode","begin":"`","end":"`","patterns":[{"name":"constant.character.escape.ucode","match":"\\\\."},{"name":"keyword.control.interpolation.ucode","begin":"\\$\\{","end":"\\}","patterns":[{"include":"$self"}]}]}]},"template_blocks":{"patterns":[{"name":"meta.embedded.block.expression.ucode","begin":"{{","end":"}}","patterns":[{"include":"$self"}]},{"name":"meta.embedded.block.statement.ucode","begin":"{%","end":"%}","patterns":[{"include":"$self"}]}]},"variables":{"patterns":[{"name":"variable.other.ucode","match":"\\b[a-zA-Z_$][a-zA-Z0-9_$]*\\b"}]}}}
|
data/grammars/source.vento.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"Vento","scopeName":"source.vento","patterns":[{"include":"#comment"},{"include":"#js_code"},{"include":"#template_tag"},{"include":"#front_matter"},{"include":"text.html.basic#core-minus-invalid"},{"name":"meta.tag.other.vento.html.derivative","begin":"(\u003c/?)((?:(?!{{)[^\\s\u003c\u003e])*+)(?\u003c!/)(?={{)","end":"(?: ?/)?\u003e","patterns":[{"include":"#comment"},{"include":"#js_code"},{"include":"#template_tag"},{"include":"text.html.basic#attribute"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}}},{"include":"text.html.basic#tags-invalid"}],"repository":{"attributes":{"name":"meta.attribute.vento.$0.html","begin":"(?:(?!{{)[^\\x{0020}\"'\u003c\u003e/=\\x{0000}-\\x{001F}\\x{007F}-\\x{009F}\\x{FDD0}-\\x{FDEF}\\x{FFFE}\\x{FFFF}\\x{1FFFE}\\x{1FFFF}\\x{2FFFE}\\x{2FFFF}\\x{3FFFE}\\x{3FFFF}\\x{4FFFE}\\x{4FFFF}\\x{5FFFE}\\x{5FFFF}\\x{6FFFE}\\x{6FFFF}\\x{7FFFE}\\x{7FFFF}\\x{8FFFE}\\x{8FFFF}\\x{9FFFE}\\x{9FFFF}\\x{AFFFE}\\x{AFFFF}\\x{BFFFE}\\x{BFFFF}\\x{CFFFE}\\x{CFFFF}\\x{DFFFE}\\x{DFFFF}\\x{EFFFE}\\x{EFFFF}\\x{FFFFE}\\x{FFFFF}\\x{10FFFE}\\x{10FFFF}])*+(?={{)","end":"(?=\\s*+[^=\\s])","patterns":[{"include":"#comment"},{"include":"#js_code"},{"include":"#template_tag"},{"include":"text.html.basic#attribute-interior"}],"beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}}},"comment":{"name":"comment.block.vento","begin":"{{#","end":"#}}"},"front_matter":{"name":"meta.embedded.block.yaml","contentName":"source.yaml","begin":"^---[a-zA-Z0-9_-]*\\s*\\n","end":"---\\s*\\n","patterns":[{"include":"source.yaml"}]},"js_code":{"name":"meta.embedded.block.vento source.vento","contentName":"meta.embedded.block.javascript source.js","begin":"{{(-)?\u003e","end":"(-)?}}","patterns":[{"include":"source.js"}]},"template_keyword":{"name":"keyword.vento","match":"/(if|for|set|layout|echo|function|slot|default)\\b|\\b(for|of|if|else\\s+if|else|include|set|layout|echo|function|async\\s+function|import|from|export|await|continue|break|slot|default)\\b"},"template_tag":{"name":"meta.embedded.block.vento source.vento","contentName":"meta.embedded.block.javascript source.js","begin":"{{(-)?","end":"(-)?}}","patterns":[{"include":"#template_keyword"},{"include":"source.js"}],"captures":{"0":{"name":"punctuation.definition.tag.vento"}}}},"injections":{"L:source.vento (meta.tag.metadata | meta.tag.structure | meta.tag.inline | meta.tag.object | meta.tag.other | meta.tag.custom | string) -meta.embedded -comment":{"patterns":[{"include":"source.vento"},{"include":"#attributes"}]}}}
|
|
1
|
+
{"name":"Vento","scopeName":"source.vento","patterns":[{"include":"#comment"},{"include":"#js_code"},{"include":"#template_tag"},{"include":"#front_matter"},{"include":"text.html.basic#core-minus-invalid"},{"name":"meta.tag.other.vento.html.derivative","begin":"(\u003c/?)((?:(?!{{)[^\\s\u003c\u003e])*+)(?\u003c!/)(?={{)","end":"(?: ?/)?\u003e","patterns":[{"include":"#comment"},{"include":"#js_code"},{"include":"#template_tag"},{"include":"text.html.basic#attribute"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.html"},"2":{"name":"entity.name.tag.html"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.html"}}},{"include":"text.html.basic#tags-invalid"}],"repository":{"attributes":{"name":"meta.attribute.vento.$0.html","begin":"(?:(?!{{)[^\\x{0020}\"'\u003c\u003e/=\\x{0000}-\\x{001F}\\x{007F}-\\x{009F}\\x{FDD0}-\\x{FDEF}\\x{FFFE}\\x{FFFF}\\x{1FFFE}\\x{1FFFF}\\x{2FFFE}\\x{2FFFF}\\x{3FFFE}\\x{3FFFF}\\x{4FFFE}\\x{4FFFF}\\x{5FFFE}\\x{5FFFF}\\x{6FFFE}\\x{6FFFF}\\x{7FFFE}\\x{7FFFF}\\x{8FFFE}\\x{8FFFF}\\x{9FFFE}\\x{9FFFF}\\x{AFFFE}\\x{AFFFF}\\x{BFFFE}\\x{BFFFF}\\x{CFFFE}\\x{CFFFF}\\x{DFFFE}\\x{DFFFF}\\x{EFFFE}\\x{EFFFF}\\x{FFFFE}\\x{FFFFF}\\x{10FFFE}\\x{10FFFF}])*+(?={{)","end":"(?=\\s*+[^=\\s])","patterns":[{"include":"#comment"},{"include":"#js_code"},{"include":"#template_tag"},{"include":"text.html.basic#attribute-interior"}],"beginCaptures":{"0":{"name":"entity.other.attribute-name.html"}}},"comment":{"name":"comment.block.vento","begin":"{{#","end":"#}}"},"front_matter":{"name":"meta.embedded.block.yaml","contentName":"source.yaml","begin":"^---[a-zA-Z0-9_-]*\\s*\\n","end":"---\\s*\\n","patterns":[{"include":"source.yaml"}]},"js_code":{"name":"meta.embedded.block.vento source.vento","contentName":"meta.embedded.block.javascript source.js","begin":"{{(-)?\u003e","end":"(-)?}}","patterns":[{"include":"source.js"}]},"template_keyword":{"name":"keyword.vento","match":"/(if|for|set|layout|echo|function|slot|default)\\b|\\b(for|of|if|else\\s+if|else|include|set|layout|echo|function|async\\s+function|import|from|export|await|continue|break|slot|default)\\b"},"template_tag":{"name":"meta.embedded.block.vento source.vento","contentName":"meta.embedded.block.javascript source.js","begin":"{{(-)?","end":"(-)?}}","patterns":[{"include":"#template_keyword"},{"include":"source.js"}],"captures":{"0":{"name":"punctuation.definition.tag.vento"}}}},"injections":{"L:source.css -comment -string":{"patterns":[{"include":"#comment"},{"include":"#js_code"},{"include":"#template_tag"}]},"L:source.vento (meta.tag.metadata | meta.tag.structure | meta.tag.inline | meta.tag.object | meta.tag.other | meta.tag.custom | string) -meta.embedded -comment":{"patterns":[{"include":"source.vento"},{"include":"#attributes"}]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Verse","scopeName":"source.verse","patterns":[{"include":"#ListInd"}],"repository":{"Backslash":{"name":"constant.character.escape.verse","match":"\\\\(\\\u003c(?!#)|[rnt'\\\"\\\\{}#\u003c\u003e\u0026~]|$)"},"BlockCmt":{"name":"comment.block.verse","begin":"\u003c#(?!\u003e)","end":"(?\u003c!\u003c)#\u003e","patterns":[{"include":"#BlockCmt"}]},"Braces":{"begin":"[{]","end":"[}]","patterns":[{"include":"#ListInd"}]},"Brackets":{"begin":"\\[","end":"\\]","patterns":[{"include":"#ListInd"}]},"Call":{"patterns":[{"include":"#BlockCmt"},{"include":"#LineCmt"},{"include":"#Num"},{"include":"#Char"},{"include":"#Path"},{"include":"#String"},{"include":"#CodeMarkup"},{"include":"#Keyword"},{"include":"#Ident"},{"include":"#Parens"},{"include":"#Brackets"},{"include":"#Braces"},{"include":"#Specs"}]},"Char":{"patterns":[{"include":"#CharLit"},{"include":"#Char8"},{"include":"#Char32"}]},"Char32":{"name":"string.quoted.single.verse","match":"0u[0-9A-Fa-f]++"},"Char8":{"name":"string.quoted.single.verse","match":"0o[0-9A-Fa-f]++"},"CharLit":{"patterns":[{"include":"#CharLit0"},{"include":"#CharLit1"},{"include":"#CharLitInvalid"}]},"CharLit0":{"name":"string.quoted.single.verse","match":"'(.|$)('(?!')|$)"},"CharLit1":{"begin":"'(?=\\\\(\\\u003c(?!#)|[rnt'\\\"\\\\{}#\u003c\u003e\u0026~]|$)('|$))","end":"'|$","patterns":[{"include":"#Backslash"}],"beginCaptures":{"0":{"name":"string.quoted.single.verse"}},"endCaptures":{"0":{"name":"string.quoted.single.verse"}}},"CharLitInvalid":{"patterns":[{"name":"invalid.verse","match":"'[^']*'?"}]},"CodeMark0":{"begin":"^(?=(\\t| ){0}[^#]*:\u003e\\s*(#|$))","end":"^(?!(\\t| ){0}(\\s|[^#]*:\u003e)|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){0}\\s+(?!$))","end":"$","patterns":[{"include":"#ContentsInd"}]},{"include":"#List"}]},"CodeMark1":{"begin":"^(?=(\\t| ){1}[^#]*:\u003e\\s*(#|$))","end":"^(?!(\\t| ){1}(\\s|[^#]*:\u003e)|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){1}\\s+(?!$))","end":"$","patterns":[{"include":"#ContentsInd"}]},{"include":"#List"}]},"CodeMark2":{"begin":"^(?=(\\t| ){2}[^#]*:\u003e\\s*(#|$))","end":"^(?!(\\t| ){2}(\\s|[^#]*:\u003e)|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){2}\\s+(?!$))","end":"$","patterns":[{"include":"#ContentsInd"}]},{"include":"#List"}]},"CodeMark3":{"begin":"^(?=(\\t| ){3}[^#]*:\u003e\\s*(#|$))","end":"^(?!(\\t| ){3}(\\s|[^#]*:\u003e)|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){3}\\s+(?!$))","end":"$","patterns":[{"include":"#ContentsInd"}]},{"include":"#List"}]},"CodeMark4":{"begin":"^(?=(\\t| ){4}[^#]*:\u003e\\s*(#|$))","end":"^(?!(\\t| ){4}(\\s|[^#]*:\u003e)|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){4}\\s+(?!$))","end":"$","patterns":[{"include":"#ContentsInd"}]},{"include":"#List"}]},"CodeMark5":{"begin":"^(?=(\\t| ){5}[^#]*:\u003e\\s*(#|$))","end":"^(?!(\\t| ){5}(\\s|[^#]*:\u003e)|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){5}\\s+(?!$))","end":"$","patterns":[{"include":"#ContentsInd"}]},{"include":"#List"}]},"CodeMark6":{"begin":"^(?=(\\t| ){6}[^#]*:\u003e\\s*(#|$))","end":"^(?!(\\t| ){6}(\\s|[^#]*:\u003e)|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){6}\\s+(?!$))","end":"$","patterns":[{"include":"#ContentsInd"}]},{"include":"#List"}]},"CodeMark7":{"begin":"^(?=(\\t| ){7}[^#]*:\u003e\\s*(#|$))","end":"^(?!(\\t| ){7}(\\s|[^#]*:\u003e)|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){7}\\s+(?!$))","end":"$","patterns":[{"include":"#ContentsInd"}]},{"include":"#List"}]},"CodeMarkup":{"begin":"(^|(?\u003c=[({\\[\\-\\\u0026;,+*/=|:\u003c.@]|-\u003e|=\u003e|\\Win|^in|\\Wis|^is|\\Wdo|^do|\\Wthen|^then|\\Wuntil|^until|\\Welse|^else|\\Wwhere|^where|\\Wof|\\Wreturn|^return|\\Wyield|^yield|\\Wbreak|^break|\\Wcontinue|^continue))([?^\\s]*+)(\u003c(?![/#=\u003e])\\s*([A-Za-z_][A-Za-z0-9_]*)?)","end":"(?\u003c!#\u003e)(?\u003c=\u003e)","patterns":[{"include":"#Call"},{"include":"#MarkupTail1"},{"include":"#MarkupTail2"}],"beginCaptures":{"2":{"name":"keyword.operator.verse"},"3":{"name":"punctuation.definition.tag"}},"endCaptures":{"0":{"name":"punctuation.definition.tag"}}},"Contents":{"patterns":[{"include":"#BlockCmt"},{"include":"#LineCmt"},{"include":"#Backslash"},{"include":"#Markup"},{"include":"#Interp"},{"name":"punctuation.definition.tag","match":"~"},{"begin":"(?=\u0026)","end":"$|\\#|\\;","patterns":[{"include":"#ListInd"}],"endCaptures":{"0":{"name":"punctuation.definition.tag"}}},{"name":"text.verse","match":"[\"\\-\\[\\]`!@$%^*()+=|:;',.?/A-Za-z0-9_ ]+"}]},"ContentsInd":{"patterns":[{"include":"#MarkCmt7"},{"include":"#MarkCmt6"},{"include":"#MarkCmt5"},{"include":"#MarkCmt4"},{"include":"#MarkCmt3"},{"include":"#MarkCmt2"},{"include":"#MarkCmt1"},{"include":"#MarkCmt0"},{"include":"#MarkCode7"},{"include":"#MarkCode6"},{"include":"#MarkCode5"},{"include":"#MarkCode4"},{"include":"#MarkCode3"},{"include":"#MarkCode2"},{"include":"#MarkCode1"},{"include":"#MarkCode0"},{"include":"#Contents"}]},"DefineIdent1":{"match":"(^|(?\u003c=[({\\[\\-\\\u0026;,+*/|\u003c=\u003e.]|-\u003e|=\u003e|:\\)|\\Wvar|^var|\\Wref|^ref|\\Walias|^alias|\\Wlive|^live|\\Win|^in|\\Wis|^is|\\Wdo|^do|\\Wthen|^then|\\Wuntil|^until|\\Welse|^else|\\Wover|\\Wwhile|\\Wupon|\\Wnext|\\Wwhere|\\Wof|^of|\\Wat|^at|\\Wreturn|^return|\\Wyield|^yield|\\Wbreak|^break|\\Wcontinue|^continue))([\\s\\^?]*+)([A-Za-z_][A-Za-z0-9_]*+('((?!\u003c#|#\u003e|[\\\\{}\"'])[ -~])*')?+)(?=((?\u003cCall\u003e(?\u003cBlockCmt\u003e\u003c#(\\g\u003cBlockCmt\u003e|(?!#\u003e).)*+#\u003e)|[\\s\\^?]++|(\u0026|-\u003e)\\s*[A-Za-z_][A-Za-z0-9_]*+|-\u003e|'(\\\\.|[^'])*+'|\"(\\\\.|[{](\\g\u003cCall\u003e)*+[}]|\u003c[^#]|#[^\u003e]|[^\\\u003c#\"{}]|\\g\u003cBlockCmt\u003e)*+\"|\u003c(\\g\u003cCall\u003e|[A-Za-z0-9_])*+\u003e|[\\[({](\\g\u003cCall\u003e|\u003c[^#]|[A-Za-z0-9_\\-\\\u0026\\^.%+*/,;\u003e:@=!|?])*+[\\])}]))*+((:|in\\W|is\\W)\\s*+(?![)#]|$)))","captures":{"3":{"name":"entity.name.function.verse"}}},"DefineIdent2":{"match":"(?\u003c=\\Wvar|^var|\\Wref|^ref|\\Walias|^alias|\\Wlive|^live)([\\s\\^?]*+)([A-Za-z_][A-Za-z0-9_]*+)(?=((?\u003cCall\u003e(?\u003cBlockCmt\u003e\u003c#(\\g\u003cBlockCmt\u003e|(?!#\u003e).)*+#\u003e)|[\\s\\^?]++|(\u0026|-\u003e)\\s*[A-Za-z_][A-Za-z0-9_]*+|-\u003e|'(\\\\.|[^'])*+'|\"(\\\\.|[{](\\g\u003cCall\u003e)*+[}]|\u003c[^#]|#[^\u003e]|[^\\\u003c#\"{}]|\\g\u003cBlockCmt\u003e)*+\"|\u003c(\\g\u003cCall\u003e|[A-Za-z0-9_])*+\u003e|[\\[({](\\g\u003cCall\u003e|\u003c[^#]|[A-Za-z0-9_\\-\\\u0026\\^.%+*/,;\u003e:@=!|?])*+[\\])}]))*+=)","captures":{"2":{"name":"entity.name.function.verse"}}},"EatIndCmt":{"name":"comment.block.verse","begin":"\u003c#\u003e","end":"$","patterns":[{"include":"#BlockCmt"}]},"Ident":{"name":"variable.verse","match":"[.]?[A-Za-z_][A-Za-z0-9_]*+('((?!\u003c#|#\u003e|[\\\\{}\"'])[ -~])*+')?+"},"In":{"begin":"((?!:[)]):|in(?=\\W)|(?=(var|set|ref|alias|live)\\W))\\s*+(?!#|$)","end":"(=(?!\u003e)|$|(\\+=|-=|\\*=|/=)|(?=:|=\u003e|@|,|;|\\)|\\]|\\}|(over|when|where|while|next|in|is|with|do|until|catch|then|else|of|at)\\W))","patterns":[{"name":"keyword.declaration.verse","match":"(var|set|ref|alias|live)(?=\\W)"},{"include":"#DefineIdent1"},{"include":"#DefineIdent2"},{"include":"#Call"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag"}},"endCaptures":{"0":{"name":"punctuation.definition.tag"}}},"IndCmt0":{"begin":"^(?=(\\t| ){0}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){0}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){0}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#List"}]},"IndCmt1":{"begin":"^(?=(\\t| ){1}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){1}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){1}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#List"}]},"IndCmt2":{"begin":"^(?=(\\t| ){2}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){2}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){2}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#List"}]},"IndCmt3":{"begin":"^(?=(\\t| ){3}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){3}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){3}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#List"}]},"IndCmt4":{"begin":"^(?=(\\t| ){4}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){4}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){4}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#List"}]},"IndCmt5":{"begin":"^(?=(\\t| ){5}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){5}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){5}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#List"}]},"IndCmt6":{"begin":"^(?=(\\t| ){6}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){6}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){6}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#List"}]},"IndCmt7":{"begin":"^(?=(\\t| ){7}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){7}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){7}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#List"}]},"Interp":{"begin":"\\{","end":"\\}","patterns":[{"include":"#ListInd"}],"beginCaptures":{"0":{"name":"constant.character.escape.verse"}},"endCaptures":{"0":{"name":"constant.character.escape.verse"}}},"Keyword":{"patterns":[{"name":"keyword.operator.logical.verse","match":"(and|or|not)(?=\\W)"},{"name":"punctuation.definition.tag","match":"[:.]\\s*+(?=(#|$))|[.](?=\\s)|@|\u0026"},{"name":"keyword.declaration.verse","match":"(with|do|until|catch|then|else|of|at)(?=\\W)"}]},"LineCmt":{"name":"comment.line.verse","begin":"(?\u003c!\u003c)#(?!\u003e)","end":"$","patterns":[{"include":"#BlockCmt"}]},"List":{"patterns":[{"include":"#Keyword"},{"name":"keyword.control.verse","match":"(return|yield|break|continue)(?=\\W)"},{"name":"keyword.declaration.verse","match":"(is)(?=\\W)"},{"name":"keyword.declaration.verse","match":"(?\u003c=\\w\\s|\\)|\\]|\\})\\s*(over|when|where|while|next)(?=\\W)"},{"include":"#DefineIdent1"},{"include":"#DefineIdent2"},{"include":"#In"},{"name":"keyword.declaration.verse","match":"(in|var|set|ref|alias|live)(?=\\W)"},{"include":"#Call"},{"name":"punctuation.definition.tag","match":":="},{"name":"keyword.operator.verse","match":"[|]|[.][.]|=\u003e|[+\\-*/]="},{"name":"keyword.operator.arithmetic.verse","match":"[+\\-*/]|-\u003e"},{"name":"keyword.operator.comparison.verse","match":"=(?!=)|\u003c\u003e|\u003c=|\u003c|\u003e=|\u003e"},{"name":"punctuation.definition.tag","match":"[;,]"},{"name":"invalid.verse","match":"[`~$\u003e)},\\]\\\\]|#\u003e|[.][0-9]+|!=|=="}]},"ListInd":{"patterns":[{"include":"#CodeMark7"},{"include":"#CodeMark6"},{"include":"#CodeMark5"},{"include":"#CodeMark4"},{"include":"#CodeMark3"},{"include":"#CodeMark2"},{"include":"#CodeMark1"},{"include":"#CodeMark0"},{"include":"#IndCmt7"},{"include":"#IndCmt6"},{"include":"#IndCmt5"},{"include":"#IndCmt4"},{"include":"#IndCmt3"},{"include":"#IndCmt2"},{"include":"#IndCmt1"},{"include":"#IndCmt0"},{"include":"#List"}]},"MarkCmt0":{"begin":"^(?=(\\t| ){0}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){0}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){0}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#Contents"}]},"MarkCmt1":{"begin":"^(?=(\\t| ){1}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){1}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){1}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#Contents"}]},"MarkCmt2":{"begin":"^(?=(\\t| ){2}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){2}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){2}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#Contents"}]},"MarkCmt3":{"begin":"^(?=(\\t| ){3}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){3}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){3}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#Contents"}]},"MarkCmt4":{"begin":"^(?=(\\t| ){4}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){4}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){4}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#Contents"}]},"MarkCmt5":{"begin":"^(?=(\\t| ){5}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){5}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){5}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#Contents"}]},"MarkCmt6":{"begin":"^(?=(\\t| ){6}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){6}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){6}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#Contents"}]},"MarkCmt7":{"begin":"^(?=(\\t| ){7}[^#]*\u003c#\u003e)","end":"^(?!(\\t| ){7}(\\s|[^#]*\u003c#\u003e)|\\s*$)","patterns":[{"name":"comment.block.verse","begin":"^(?=(\\t| ){7}\\s+(?!$))","end":"$","patterns":[{"include":"#BlockCmt"}]},{"include":"#EatIndCmt"},{"include":"#Contents"}]},"MarkCode0":{"begin":"^(?=(\\t| ){0}[^#]*\u0026[^#]*[:.]\\s*(#|$))","end":"^(?!(\\t| ){0}(\\s|[^#]*\u0026[^#]*[:.]\\s*(#|$))|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){0}\\s+(?!$))","end":"$","patterns":[{"include":"#ListInd"}]},{"include":"#Contents"}]},"MarkCode1":{"begin":"^(?=(\\t| ){1}[^#]*\u0026[^#]*[:.]\\s*(#|$))","end":"^(?!(\\t| ){1}(\\s|[^#]*\u0026[^#]*[:.]\\s*(#|$))|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){1}\\s+(?!$))","end":"$","patterns":[{"include":"#ListInd"}]},{"include":"#Contents"}]},"MarkCode2":{"begin":"^(?=(\\t| ){2}[^#]*\u0026[^#]*[:.]\\s*(#|$))","end":"^(?!(\\t| ){2}(\\s|[^#]*\u0026[^#]*[:.]\\s*(#|$))|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){2}\\s+(?!$))","end":"$","patterns":[{"include":"#ListInd"}]},{"include":"#Contents"}]},"MarkCode3":{"begin":"^(?=(\\t| ){3}[^#]*\u0026[^#]*[:.]\\s*(#|$))","end":"^(?!(\\t| ){3}(\\s|[^#]*\u0026[^#]*[:.]\\s*(#|$))|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){3}\\s+(?!$))","end":"$","patterns":[{"include":"#ListInd"}]},{"include":"#Contents"}]},"MarkCode4":{"begin":"^(?=(\\t| ){4}[^#]*\u0026[^#]*[:.]\\s*(#|$))","end":"^(?!(\\t| ){4}(\\s|[^#]*\u0026[^#]*[:.]\\s*(#|$))|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){4}\\s+(?!$))","end":"$","patterns":[{"include":"#ListInd"}]},{"include":"#Contents"}]},"MarkCode5":{"begin":"^(?=(\\t| ){5}[^#]*\u0026[^#]*[:.]\\s*(#|$))","end":"^(?!(\\t| ){5}(\\s|[^#]*\u0026[^#]*[:.]\\s*(#|$))|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){5}\\s+(?!$))","end":"$","patterns":[{"include":"#ListInd"}]},{"include":"#Contents"}]},"MarkCode6":{"begin":"^(?=(\\t| ){6}[^#]*\u0026[^#]*[:.]\\s*(#|$))","end":"^(?!(\\t| ){6}(\\s|[^#]*\u0026[^#]*[:.]\\s*(#|$))|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){6}\\s+(?!$))","end":"$","patterns":[{"include":"#ListInd"}]},{"include":"#Contents"}]},"MarkCode7":{"begin":"^(?=(\\t| ){7}[^#]*\u0026[^#]*[:.]\\s*(#|$))","end":"^(?!(\\t| ){7}(\\s|[^#]*\u0026[^#]*[:.]\\s*(#|$))|\\s*$)","patterns":[{"begin":"^(?=(\\t| ){7}\\s+(?!$))","end":"$","patterns":[{"include":"#ListInd"}]},{"include":"#Contents"}]},"Markup":{"begin":"(\u003c(?![/#=]))\\s*([A-Za-z_][A-Za-z0-9_]*)?","end":"(?\u003c!#\u003e)(?\u003c=\u003e)","patterns":[{"include":"#Call"},{"include":"#MarkupTail1"},{"include":"#MarkupTail2"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag"}},"endCaptures":{"0":{"name":"punctuation.definition.tag"}}},"MarkupTail1":{"begin":":(?=\u003e)|;","end":"\u003e","patterns":[{"include":"#ContentsInd"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag"}},"endCaptures":{"0":{"name":"punctuation.definition.tag"}}},"MarkupTail2":{"begin":"\u003e","end":"\u003c/\\s*([A-Za-z_][A-Za-z0-9_]*)?\\s*\u003e","patterns":[{"include":"#ContentsInd"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag"}},"endCaptures":{"0":{"name":"punctuation.definition.tag"}}},"Num":{"patterns":[{"name":"constant.numeric.verse","match":"0x[0-9A-Fa-f]++"},{"name":"constant.numeric.verse","match":"(?!0o|0u)[0-9]++([.][0-9]++)?(e[+-]?[0-9]+)?(%|[A-Za-z_][A-Za-z0-9_]*+)?+","captures":{"3":{"name":"keyword.other.unit.verse"}}}]},"Parens":{"begin":"[(]","end":"[)]","patterns":[{"include":"#ListInd"}]},"Path":{"name":"constant.language.path.verse","match":"(^|(?\u003c=[({\\[\\-\\\u0026;,+*/|\u003c=\u003e.]|-\u003e|=\u003e|:\\)|\\Wvar|^var|\\Wref|^ref|\\Walias|^alias|\\Wlive|^live|\\Win|^in|\\Wis|^is|\\Wdo|^do|\\Wthen|^then|\\Wuntil|^until|\\Welse|^else|\\Wover|\\Wwhile|\\Wupon|\\Wnext|\\Wwhere|\\Wof|^of|\\Wat|^at|\\Wreturn|^return|\\Wyield|^yield|\\Wbreak|^break|\\Wcontinue|^continue))([\\s\\^?]*+)(?\u003cPath\u003e(/[A-Za-z0-9_][A-Za-z0-9_\\-.]*+(@[A-Za-z0-9_][A-Za-z0-9_\\-.]*+)?+)(/([(]\\g\u003cPath\u003e:[)])?+[A-Za-z_][A-Za-z0-9_]*+('((?!\u003c#|#\u003e|[\\\\{}\"'])[ -~])*')?+)*+)"},"Special":{"patterns":[{"include":"#Backslash"},{"include":"#BlockCmt"}]},"Specs":{"name":"punctuation.definition.tag","match":"\u003c(?![=#\u003e])(?\u003cCall\u003e(?\u003cBlockCmt\u003e\u003c#(\\g\u003cBlockCmt\u003e|(?!#\u003e).)*+#\u003e)|[\\s\\^\\\u0026?]|(?!(and\\W|or\\W|not\\W|where\\W|in\\W|is\\W|of\\W|at\\W))[A-Za-z_][A-Za-z0-9_]*+|[0-9/][A-Za-z0-9_.@]++|'(\\\\.|[^'])*+'|\"(\\\\.|[{](\\g\u003cCall\u003e)*+[}]|\u003c[^#]|#[^\u003e]|[^\\\u003c#\"{}])*+\"|\u003c\\g\u003cCall\u003e*+\u003e|[\\[{(](\\g\u003cCall\u003e|\u003c[^#]|[\\-\\\u0026\\^.%+*/,;\u003e:@=!|?])*+[\\]})])*+\u003e"},"String":{"begin":"\"","end":"(\"|$)","patterns":[{"include":"#Interp"},{"include":"#Special"},{"name":"string.quoted.double.verse","match":"[\\-\\[\\]\\\u0026`~!@#$%^*()+=|:;',.?/A-Za-z0-9_ ]++"}],"beginCaptures":{"0":{"name":"string.quoted.double.verse"}},"endCaptures":{"0":{"name":"string.quoted.double.verse"}}}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Vespa Schema","scopeName":"source.vespaSchema","patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#tensor-type"},{"include":"#indexing-block"},{"include":"#indexing-inline"},{"include":"#expression-block"},{"include":"#expression-inline"},{"include":"#feature-list-block"},{"include":"#feature-list-inline"},{"include":"#rank-properties-block"},{"include":"#match-block"},{"include":"#summary-block"},{"include":"#enum-value-inline"},{"include":"#container-type"},{"include":"#primitive-type"},{"include":"#numeric-literal"},{"include":"#boolean-constants"},{"include":"#declarations"},{"include":"#file-path"},{"include":"#schema-keywords"},{"include":"#user-type"},{"include":"#assignment-operator"},{"include":"#schema-functions"},{"include":"#schema-enum-members"},{"include":"#variable-reference"},{"include":"#punctuation"}],"repository":{"assignment-operator":{"name":"keyword.operator.assignment.vespa","match":"[+\\-*/]?="},"boolean-constants":{"name":"support.type.vespa","match":"\\b(on(?!-)|off|true|false)\\b"},"comment":{"name":"comment.line.number-sign.vespa","match":"(#).*$","captures":{"1":{"name":"punctuation.definition.comment.vespa"}}},"container-type":{"begin":"\\b(array|weightedset|map|reference|annotationreference)\\s*(\u003c)","end":"(\u003e)","patterns":[{"include":"#container-type"},{"include":"#primitive-type"},{"include":"#tensor-type"},{"name":"punctuation.separator.vespa","match":","},{"name":"entity.name.type.vespa","match":"\\b[a-zA-Z_]\\w*\\b"}],"beginCaptures":{"1":{"name":"storage.type.vespa"},"2":{"name":"punctuation.definition.typeparameters.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.vespa"}}},"declarations":{"patterns":[{"match":"\\b(schema)\\s+([a-zA-Z_]\\w*)(?:\\s+(inherits)\\s+([a-zA-Z_]\\w*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.type.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"\\b(document)\\s+([a-zA-Z_]\\w*)(?:\\s+(inherits)\\s+([a-zA-Z_]\\w*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.type.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"\\b(field)\\s+([a-zA-Z_]\\w*)\\s+(type)\\b","captures":{"1":{"name":"keyword.declaration.vespa"},"3":{"name":"keyword.control.vespa"}}},{"match":"\\b(struct)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"keyword.declaration.vespa"}}},{"match":"(?\u003c![a-zA-Z0-9_-])(rank-profile)\\s+([a-zA-Z_][\\w-]*)(?:\\s+(inherits)\\s+([a-zA-Z_][\\w-]*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.function.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"\\b(function)\\s+(?:(inline)\\s+)?([a-zA-Z_]\\w*)\\s*(\\([^)]*\\))","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"storage.modifier.vespa"},"3":{"name":"entity.name.function.vespa"},"4":{"name":"variable.parameter.vespa"}}},{"match":"\\b(annotation)\\s+([a-zA-Z_]\\w*)(?:\\s+(inherits)\\s+([a-zA-Z_]\\w*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"(?\u003c![a-zA-Z0-9_-])(document-summary)\\s+([a-zA-Z_][\\w-]*)(?:\\s+(inherits)\\s+([a-zA-Z_][\\w-]*))?","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"entity.name.type.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"}}},{"match":"\\b(fieldset)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"keyword.declaration.vespa"}}},{"match":"(?\u003c![a-zA-Z0-9_-])(struct-field)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"keyword.declaration.vespa"}}},{"match":"\\b(import)\\s+(field)\\b","captures":{"1":{"name":"keyword.declaration.vespa"},"2":{"name":"keyword.declaration.vespa"}}},{"match":"\\b(constant)\\s+([a-zA-Z_]\\w*)","captures":{"1":{"name":"keyword.declaration.vespa"}}},{"match":"(?\u003c![a-zA-Z0-9_-])(onnx-model)\\s+([a-zA-Z_][\\w-]*)","captures":{"1":{"name":"keyword.declaration.vespa"}}}]},"enum-value-inline":{"match":"(?\u003c![a-zA-Z0-9_-])(match|rank|rank-type|sorting|bolding|stemming|summary-to|distance-metric|normalizing|function|locale|strength|order)(:\\s*)(token|word|exact|text|gram|prefix|substring|suffix|cased|uncased|literal|identity|tags|source|bolding|full|static|dynamic|tokens|matched-elements-only|angular|dotproduct|euclidean|prenormalized-angular|hamming|geodegrees|best|shortest|multiple|none|primary|secondary|tertiary|quaternary|identical|lowercase|raw|ascending|descending|always|on-demand|never|normal|contextual)(?![a-zA-Z0-9_-])","captures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"},"3":{"name":"variable.other.enummember.vespa"}}},"expression-block":{"name":"meta.block.expression.vespa","begin":"\\b(expression)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"expression-inline":{"name":"meta.inline.expression.vespa","begin":"\\b(expression)\\s*(:)","end":"$","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"}}},"feature-list-block":{"name":"meta.block.feature-list.vespa","begin":"(?\u003c![a-zA-Z0-9_-])(match-features|summary-features|rank-features)(?:\\s+(inherits)\\s+([a-zA-Z_][\\w-]*))?\\s*(\\{)","end":"(\\})","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"keyword.control.vespa"},"3":{"name":"entity.other.inherited-class.vespa"},"4":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"feature-list-inline":{"name":"meta.inline.feature-list.vespa","begin":"(?\u003c![a-zA-Z0-9_-])(match-features|summary-features|rank-features)\\s*(:)","end":"$","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"}}},"file-path":{"match":"\\b(file)\\s*:\\s*(\\S+)","captures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"string.unquoted.path.vespa"}}},"indexing-block":{"name":"meta.block.indexing.vespa","begin":"\\b(indexing)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#indexing-language"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"indexing-inline":{"name":"meta.inline.indexing.vespa","begin":"\\b(indexing)\\s*(:)","end":"$","patterns":[{"include":"#indexing-language"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.separator.vespa"}}},"indexing-language":{"patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"name":"support.type.indexing.vespa","match":"\\b(attribute|summary|index)\\b"},{"name":"keyword.control.indexing.vespa","match":"\\b(select_input|for_each|default|switch|case|else|if)\\b"},{"name":"entity.name.function.indexing.vespa","match":"\\b(to_epoch_second|base64decode|base64encode|get_language|set_language|get_field|hexdecode|hexencode|lowercase|normalize|substring|to_double|to_string|hostname|to_array|to_float|tokenize|flatten|get_var|set_var|to_bool|to_byte|to_long|to_wset|to_int|to_pos|chunk|embed|input|ngram|split|echo|hash|join|trim|now)\\b"},{"name":"keyword.operator.pipe.indexing.vespa","match":"\\|"},{"include":"#punctuation"}]},"match-block":{"name":"meta.block.match.vespa","begin":"\\b(match)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"include":"#enum-value-inline"},{"name":"variable.other.enummember.vespa","match":"\\b(token|word|exact|text|gram|prefix|substring|suffix|cased|uncased|literal|identity|tags|source|bolding|full|static|dynamic|tokens|matched-elements-only|angular|dotproduct|euclidean|prenormalized-angular|hamming|geodegrees|best|shortest|multiple|none|primary|secondary|tertiary|quaternary|identical|lowercase|raw|ascending|descending|always|on-demand|never|normal|contextual)\\b"},{"include":"#schema-keywords"},{"include":"#punctuation"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"numeric-literal":{"patterns":[{"name":"constant.numeric.vespa","match":"\\b(infinity)\\b"},{"name":"constant.numeric.float.vespa","match":"(?\u003c![a-zA-Z_0-9])(-?\\d+\\.\\d*(?:[eE][+-]?\\d+)?[fFdD]?)\\b"},{"name":"constant.numeric.integer.vespa","match":"(?\u003c![a-zA-Z_0-9])(-?(?:0[xX][0-9a-fA-F]+|\\d+)[lL]?)\\b"}]},"primitive-type":{"name":"support.type.vespa","match":"\\b(int|byte|bool|string|double|float|long|position|tag|predicate)\\b"},"punctuation":{"patterns":[{"name":"punctuation.section.block.begin.vespa","match":"\\{"},{"name":"punctuation.section.block.end.vespa","match":"\\}"},{"name":"punctuation.separator.colon.vespa","match":":"},{"name":"punctuation.separator.comma.vespa","match":","},{"name":"punctuation.separator.dot.vespa","match":"\\."}]},"rank-properties-block":{"name":"meta.block.rank-properties.vespa","begin":"(?\u003c![a-zA-Z0-9_-])(rank\\-properties)\\s*(\\{)","end":"(\\})","patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"include":"#primitive-type"},{"include":"#ranking-expression"}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"ranking-expression":{"patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"include":"#tensor-type"},{"include":"#primitive-type"},{"include":"#variable-reference"},{"name":"keyword.control.ranking.vespa","match":"\\b(euclidean_distance|cosine_similarity|map_subspaces|l1_normalize|l2_normalize|unpack_bits|cell_cast|xw_plus_b|default|softmax|argmax|argmin|concat|expand|matmul|median|random|reduce|rename|switch|tensor|count|false|merge|range|case|diag|join|prod|true|avg|map(?!\\s*\u003c)|max|min|sum|if|in)\\b"},{"name":"entity.name.function.ranking.vespa","match":"\\b(filter_subspaces|cell_order|hamming|sigmoid|square|atan2|floor|isNan|ldexp|log10|round|acos|asin|atan|ceil|cosh|fabs|fmod|relu|sign|sinh|sqrt|tanh|abs|bit|cos|elu|erf|exp|log|pow|sin|tan|top|f)\\b"},{"name":"entity.name.function.rank-feature.vespa","match":"\\b(tensorFromWeightedSet|nativeAttributeMatch|customTokenInputIds|elementCompleteness|randomNormalStable|tokenAttentionMask|elementSimilarity|rankingExpression|tensorFromStructs|nativeDotProduct|nativeFieldMatch|tensorFromLabels|nativeProximity|attributeMatch|distanceToPath|fieldTermMatch|firstPhaseRank|globalSequence|queryTermCount|relevanceScore|textSimilarity|tokenInputIds|itemRawScore|randomNormal|termDistance|tokenTypeIds|elementwise|fieldLength|secondPhase|dotProduct|fieldMatch|firstPhase|matchCount|nativeRank|subqueries|attribute|closeness|freshness|onnxModel|constant|distance|lightgbm|rawScore|closest|foreach|matches|xgboost|random|match|query|bm25|file|onnx|term|age|now)\\s*(?=\\()"},{"name":"entity.name.function.rank-feature.vespa","match":"\\b(reciprocal_rank_fusion|normalize_linear|reciprocal_rank)\\s*(?=\\()"},{"name":"keyword.operator.ranking.vespa","match":"[+\\-*/%^.]|\u003e=|\u003c=|!=|==|~=|\u0026\u0026|\\|\\||[\u003c\u003e!]"},{"begin":"\\(","end":"\\)","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.section.parens.end.vespa"}}},{"begin":"\\{","end":"\\}","patterns":[{"include":"#ranking-expression"}],"beginCaptures":{"0":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.section.block.end.vespa"}}},{"name":"support.variable.vespa","match":"\\b[a-zA-Z_]\\w*\\b"},{"include":"#punctuation"}]},"schema-enum-members":{"patterns":[{"name":"variable.other.enummember.vespa","match":"\\b(sequential|parallel)\\b"}]},"schema-functions":{"patterns":[{"name":"entity.name.function.vespa","match":"\\b(query)\\b"}]},"schema-keywords":{"patterns":[{"name":"keyword.control.vespa","match":"(?\u003c![a-zA-Z0-9_-])(target\\-hits\\-max\\-adjustment\\-factor|neighbors\\-to\\-explore\\-at\\-insert|pre\\-post\\-filter\\-tipping\\-point|dense\\-posting\\-list\\-threshold|ignore\\-default\\-rank\\-features|filter\\-first\\-exploration|raw\\-as\\-base64\\-in\\-summary|multi\\-threaded\\-indexing|enable\\-only\\-bit\\-vector|filter\\-first\\-threshold|num\\-threads\\-per\\-search|approximate\\-threshold|create\\-if\\-nonexistent|matched\\-elements\\-only|num\\-search\\-partitions|post\\-filter\\-threshold|rank\\-score\\-drop\\-limit|total\\-keep\\-rank\\-count|max\\-filter\\-coverage|min\\-hits\\-per\\-thread|enable\\-bit\\-vectors|max\\-links\\-per\\-node|select\\-elements\\-by|total\\-rerank\\-count|exploration\\-slack|document\\-summary|evaluation\\-point|exact\\-terminator|filter\\-threshold|max\\-token\\-length|prefetch\\-tensors|summary\\-features|cutoff\\-strategy|distance\\-metric|interop\\-threads|intraop\\-threads|keep\\-rank\\-count|max\\-occurrences|on\\-second\\-phase|rank\\-properties|execution\\-mode|match\\-features|on\\-first\\-phase|remove\\-if\\-zero|stopword\\-limit|termwise\\-limit|total\\-max\\-hits|adjust\\-target|cutoff\\-factor|query\\-command|rank\\-features|global\\-phase|rank\\-profile|rerank\\-count|second\\-phase|struct\\-field|element\\-gap|enable\\-bm25|fast\\-access|fast\\-search|first\\-phase|lower\\-bound|match\\-phase|upper\\-bound|gpu\\-device|max\\-length|min\\-groups|on\\-summary|onnx\\-model|summary\\-to|fast\\-rank|gram\\-size|rank\\-type|use\\-model|max\\-hits|on\\-match)(?![a-zA-Z0-9_-])"},{"name":"keyword.control.vespa","match":"\\b(significance|normalizing|weightedset(?!\\s*\u003c)|annotation|contextual|descending|dictionary|expression|properties|ascending|attribute|constants|diversity|constant|document(?!-)|fieldset|function|indexing|inherits|override|stemming|strength|bolding|mutable|sorting|summary(?!-)|weakand|fields|import|inline|inputs|locale|mutate|output|schema|search|source|strict|struct(?!-)|weight|alias|arity|field|index|input|macro|match(?!-)|order|paged|title|file|hnsw|rank(?!-)|type|uri|url|as|id)\\b"}]},"string-double":{"name":"string.quoted.double.vespa","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.vespa","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.vespa"}}},"string-single":{"name":"string.quoted.single.vespa","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.vespa","match":"\\\\."}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.vespa"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.vespa"}}},"summary-block":{"name":"meta.block.summary.vespa","begin":"\\b(summary)\\s+(?:([a-zA-Z_]\\w*)\\s+(?:(inherits)\\s+([a-zA-Z_]\\w*)\\s*)?)?(\\{)","end":"(\\})","patterns":[{"include":"#comment"},{"include":"#string-double"},{"include":"#string-single"},{"include":"#numeric-literal"},{"include":"#boolean-constants"},{"include":"#feature-list-block"},{"include":"#feature-list-inline"},{"include":"#enum-value-inline"},{"name":"variable.other.enummember.vespa","match":"\\b(token|word|exact|text|gram|prefix|substring|suffix|cased|uncased|literal|identity|tags|source|bolding|full|static|dynamic|tokens|matched-elements-only|angular|dotproduct|euclidean|prenormalized-angular|hamming|geodegrees|best|shortest|multiple|none|primary|secondary|tertiary|quaternary|identical|lowercase|raw|ascending|descending|always|on-demand|never|normal|contextual)\\b"},{"include":"#schema-keywords"},{"include":"#punctuation"}],"beginCaptures":{"1":{"name":"keyword.declaration.vespa"},"3":{"name":"keyword.control.vespa"},"4":{"name":"entity.other.inherited-class.vespa"},"5":{"name":"punctuation.section.block.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.section.block.end.vespa"}}},"tensor-type":{"begin":"\\b(tensor)\\s*(\u003c)","end":"(\\))","patterns":[{"name":"storage.type.tensor.vespa","match":"\\b(float|double|bfloat16|int8)\\b"},{"name":"punctuation.definition.typeparameters.vespa","match":"\u003e"},{"name":"punctuation.definition.typeparameters.vespa","match":"\\("},{"match":"\\[(\\d+)\\]","captures":{"1":{"name":"constant.numeric.vespa"}}},{"name":"punctuation.definition.dimension.vespa","match":"\\{\\}"},{"name":"support.variable.vespa","match":"\\b([a-zA-Z_][a-zA-Z_0-9]*)\\b"},{"name":"punctuation.separator.vespa","match":","}],"beginCaptures":{"1":{"name":"keyword.control.vespa"},"2":{"name":"punctuation.definition.typeparameters.begin.vespa"}},"endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.vespa"}}},"user-type":{"match":"(?\u003c=\\btype\\s)(\\s*[a-zA-Z_]\\w*)","captures":{"1":{"name":"entity.name.type.vespa"}}},"variable-reference":{"name":"variable.language.vespa","match":"(\\$)([a-zA-Z_][a-zA-Z0-9_]*)","captures":{"1":{"name":"punctuation.definition.variable.vespa"},"2":{"name":"variable.language.vespa"}}}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"VHS","scopeName":"source.vhs","patterns":[{"include":"#comments"},{"include":"#json"},{"include":"#strings"},{"include":"#require"},{"include":"#output"},{"include":"#operators"},{"include":"#control"},{"include":"#commands"},{"include":"#settings"},{"include":"#units"},{"include":"#numbers"}],"repository":{"commands":{"name":"keyword.control.vhs","match":"\\b(Output|Set|Type|Left|Right|Up|Down|Ctrl|Backspace|Enter|Tab|Space|Sleep|Hide|Show|Escape|Require)\\b"},"comments":{"name":"comment.line.number-sign.vhs","begin":"#","end":"$"},"control":{"name":"keyword.control.vhs","match":"\\bCtrl\\+[A-Z]\\b"},"json":{"name":"string.quoted.other.vhs","match":"\\{.*\\}"},"numbers":{"patterns":[{"name":"constant.numeric.vhs","match":"\\d*\\.?\\d+"}]},"operators":{"patterns":[{"name":"keyword.operator.vhs","match":"@|\\+"}]},"output":{"name":"keyword.control.vhs","match":"Output ([\\.\\-/A-Za-z0-9%]+)","captures":{"1":{"name":"string.quoted.other.vhs"}}},"require":{"name":"keyword.control.vhs","match":"Require ([\\.\\-/A-Za-z0-9%]+)","captures":{"1":{"name":"string.quoted.other.vhs"}}},"settings":{"name":"entity.name.tag.vhs","match":"\\b(FontFamily|FontSize|LoopOffset|Shell|Height|Width|Theme|Padding|TypingSpeed|CursorBlink|PlaybackSpeed|LineHeight|Framerate|LetterSpacing|Margin|MarginFill|WindowBar|WindowBarSize|BorderRadius)\\b"},"strings":{"patterns":[{"name":"string.quoted.single.vhs","begin":"'","end":"'"},{"name":"string.quoted.double.vhs","begin":"\"","end":"\""},{"name":"string.quoted.other.vhs","begin":"`","end":"`"}]},"units":{"match":"(\\d*\\.?\\d+)(ms|s)","captures":{"1":{"patterns":[{"include":"#numbers"}]},"2":{"name":"keyword.other.unit.vhs"}}}}}
|
data/grammars/source.wgsl.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"WGSL","scopeName":"source.wgsl","patterns":[{"include":"#line_ending_comments"},{"include":"#block_comments"},{"include":"#attributes"},{"include":"#functions"},{"include":"#keywords"},{"include":"#function_calls"},{"include":"#literals"},{"include":"#types"},{"include":"#variables"},{"include":"#punctuation"},{"include":"#reserved_words"},{"include":"#address_spaces"},{"include":"#memory_access_modes"},{"include":"#operators"},{"include":"#built-in_value_names"}],"repository":{"address_spaces":{"name":"storage.modifier.address_spaces.wgsl","match":"\\b(function|private|workgroup|uniform|storage|handle)\\b"},"attributes":{"patterns":[{"name":"entity.other.attribute.wgsl","match":"@\\s*[_$[:alpha:]][_$[:alnum:]]*\\b"}]},"block_comments":{"name":"comment.block.wgsl","begin":"/\\*","end":"\\*/","patterns":[{"include":"#block_comments"}]},"built-in_value_names":{"name":"variable.language.built-ins.wgsl","match":"\\b(vertex_index|instance_index|position|front_facing|frag_depth|sample_index|sample_mask|local_invocation_id|local_invocation_index|global_invocation_id|workgroup_id|num_workgroups|subgroup_invocation_id|subgroup_size)\\b"},"function_arguments":{"patterns":[{"include":"#line_ending_comments"},{"include":"#block_comments"},{"include":"#attributes"},{"include":"#keywords"},{"include":"#function_calls"},{"include":"#literals"},{"include":"#types"},{"include":"#variables"},{"include":"#punctuation"},{"include":"#reserved_words"},{"include":"#address_spaces"},{"include":"#memory_access_modes"},{"include":"#operators"},{"include":"#built-in_value_names"}]},"function_calls":{"patterns":[{"name":"meta.function.wgsl","begin":"([_$[:alpha:]][_$[:alnum:]]*)\\s*(\u003c[^|\u0026()]
|
|
1
|
+
{"name":"WGSL","scopeName":"source.wgsl","patterns":[{"include":"#line_ending_comments"},{"include":"#block_comments"},{"include":"#attributes"},{"include":"#functions"},{"include":"#keywords"},{"include":"#function_calls"},{"include":"#literals"},{"include":"#types"},{"include":"#variables"},{"include":"#punctuation"},{"include":"#reserved_words"},{"include":"#address_spaces"},{"include":"#memory_access_modes"},{"include":"#operators"},{"include":"#built-in_value_names"}],"repository":{"address_spaces":{"name":"storage.modifier.address_spaces.wgsl","match":"\\b(function|private|workgroup|uniform|storage|handle)\\b"},"attributes":{"patterns":[{"name":"entity.other.attribute.wgsl","match":"@\\s*[_$[:alpha:]][_$[:alnum:]]*\\b"}]},"block_comments":{"name":"comment.block.wgsl","begin":"/\\*","end":"\\*/","patterns":[{"include":"#block_comments"}]},"built-in_value_names":{"name":"variable.language.built-ins.wgsl","match":"\\b(vertex_index|instance_index|position|front_facing|frag_depth|sample_index|sample_mask|local_invocation_id|local_invocation_index|global_invocation_id|workgroup_id|num_workgroups|subgroup_invocation_id|subgroup_size)\\b"},"function_arguments":{"patterns":[{"include":"#line_ending_comments"},{"include":"#block_comments"},{"include":"#attributes"},{"include":"#keywords"},{"include":"#function_calls"},{"include":"#literals"},{"include":"#types"},{"include":"#variables"},{"include":"#punctuation"},{"include":"#reserved_words"},{"include":"#address_spaces"},{"include":"#memory_access_modes"},{"include":"#operators"},{"include":"#built-in_value_names"}]},"function_calls":{"patterns":[{"name":"meta.function.wgsl","begin":"([_$[:alpha:]][_$[:alnum:]]*)\\s*(?:(\u003c)([^|\u0026()]+)(\u003e))?(\\()","end":"\\)","patterns":[{"include":"#function_arguments"}],"beginCaptures":{"1":{"name":"entity.name.function.wgsl"},"2":{"name":"punctuation.brackets.angle.wgsl"},"3":{"patterns":[{"include":"#function_arguments"}]},"4":{"name":"punctuation.brackets.angle.wgsl"},"5":{"name":"punctuation.brackets.round.wgsl"}},"endCaptures":{"0":{"name":"punctuation.brackets.round.wgsl"}}}]},"functions":{"patterns":[{"name":"meta.function.definition.wgsl","begin":"\\b(fn)\\s+([_$[:alpha:]][_$[:alnum:]]*)\\s*((\\()|(\u003c))","end":"\\{","patterns":[{"include":"#function_arguments"}],"beginCaptures":{"1":{"name":"keyword.fn.wgsl"},"2":{"name":"entity.name.function.definition.wgsl"},"4":{"name":"punctuation.brackets.round.wgsl"}},"endCaptures":{"0":{"name":"punctuation.brackets.curly.wgsl"}}}]},"keywords":{"patterns":[{"name":"keyword.other.declarations-and-types.wgsl","match":"\\b(alias|const|fn|let|override|struct|var)\\b"},{"name":"keyword.control.wgsl","match":"\\b(break|case|continue|continuing|default|discard|(?\u003c!#)else|for|if|loop|return|switch|while)\\b"},{"name":"keyword.other.assertions.wgsl","match":"\\b(const_assert)\\b"},{"name":"keyword.other.directive.wgsl","match":"(?\u003c!@)\\b(diagnostic|enable|requires)\\b"}]},"line_ending_comments":{"name":"comment.line.double-slash.wgsl","match":"\\s*//.*"},"literals":{"patterns":[{"name":"constant.numeric.decimal.int.wgsl","match":"\\b(0[iu]?|[1-9][0-9]*[iu]?)\\b"},{"name":"constant.numeric.hex.int.wgsl","match":"\\b(0[xX][0-9a-fA-F]+[iu]?)\\b"},{"name":"constant.numeric.decimal.float.wgsl","match":"\\b(0[fh]|[1-9][0-9]*[fh]|[0-9]*\\.[0-9]+([eE][+-]?[0-9]+)?[fh]?|[0-9]+\\.[0-9]*([eE][+-]?[0-9]+)?[fh]?|[0-9]+[eE][+-]?[0-9]+[fh]?)\\b"},{"name":"constant.numeric.hex.float.wgsl","match":"\\b(0[xX][0-9a-fA-F]*\\.[0-9a-fA-F]+([pP][+-]?[0-9]+[fh]?)?|0[xX][0-9a-fA-F]+\\.[0-9a-fA-F]*([pP][+-]?[0-9]+[fh]?)?|0[xX][0-9a-fA-F]+[pP][+-]?[0-9]+[fh]?)\\b"},{"name":"constant.language.boolean.wgsl","match":"\\b(true|false)\\b"}]},"matrix_types":{"patterns":[{"name":"storage.type.matrixes.wgsl","match":"\\b(mat[2-4]x[2-4])\\b"},{"name":"storage.type.matrixes.wgsl","match":"\\b(mat[2-4]x[2-4])(f|h)\\b"}]},"memory_access_modes":{"name":"storage.modifier.memory_access_modes.wgsl","match":"\\b(read|write|read_write)\\b"},"memory_views":{"name":"storage.type.ptr.wgsl","match":"\\b(ptr)\\b"},"operators":{"patterns":[{"name":"keyword.operator.logical.wgsl","match":"(\\^|\\||\\|\\||\u0026\u0026|\u003c\u003c|\u003e\u003e|!)(?!=)"},{"name":"keyword.operator.address-of.and.wgsl","match":"\u0026(?![\u0026=])"},{"name":"keyword.operator.assignment.wgsl","match":"(\\+=|-=|\\*=|/=|%=|\\^=|\u0026=|\\|=|\u003c\u003c=|\u003e\u003e=)"},{"name":"keyword.operator.assignment.equal.wgsl","match":"(?\u003c![\u003c\u003e])=(?!=|\u003e)"},{"name":"keyword.operator.comparison.wgsl","match":"(==|!=|\u003c=|\u003e=|\u003c|\u003e)"},{"name":"keyword.operator.math.wgsl","match":"(([+%]|(\\*(?!\\w)))(?!=))|(-(?!\u003e))|(/(?!/))"},{"name":"keyword.operator.access.dot.wgsl","match":"\\.(?!\\.)"},{"name":"keyword.operator.arrow.skinny.wgsl","match":"-\u003e"},{"name":"keyword.operator.type.annotation.wgsl","match":":"}]},"plain_types":{"patterns":[{"name":"storage.type.boolean.wgsl","match":"\\b(bool)\\b"},{"name":"storage.type.integer.wgsl","match":"\\b(i32|u32)\\b"},{"name":"storage.type.floating-point.wgsl","match":"\\b(f32|f16)\\b"},{"include":"#vector_types"},{"include":"#matrix_types"},{"name":"storage.type.wgsl","match":"\\b(atomic)\\b"},{"name":"storage.type.wgsl","match":"\\b(array)\\b"},{"name":"entity.name.type.wgsl","match":"\\b([A-Z][_$[:alnum:]]*)\\b"},{"name":"storage.type.wgsl","match":"\\b(i64|u64|f64)\\b"}]},"punctuation":{"patterns":[{"name":"punctuation.comma.wgsl","match":","},{"name":"punctuation.brackets.curly.wgsl","match":"[{}]"},{"name":"punctuation.brackets.round.wgsl","match":"[()]"},{"name":"punctuation.semi.wgsl","match":";"},{"name":"punctuation.brackets.square.wgsl","match":"[\\[\\]]"}]},"reserved_words":{"name":"keyword.other.reserved_words.wgsl","match":"\\b(aNULL|Self|abstract|active|alignas|alignof|as|asm|asm_fragment|async|attribute|auto|await|become|cast|catch|class|co_await|co_return|co_yield|coherent|column_major|common|compile|compile_fragment|concept|const_cast|consteval|constexpr|constinit|crate|debugger|decltype|delete|demote|demote_to_helper|do|dynamic_cast|enum|explicit|export|extends|extern|external|fallthrough|filter|final|finally|friend|from|fxgroup|get|goto|groupshared|highp|impl|implements|import|inline|instanceof|interface|layout|lowp|macro|macro_rules|match|mediump|meta|mod|module|move|mut|mutable|namespace|new|nil|noexcept|noinline|nointerpolation|non_coherent|noncoherent|noperspective|null|nullptr|of|operator|package|packoffset|partition|pass|patch|pixelfragment|precise|precision|premerge|priv|protected|pub|public|readonly|ref|regardless|register|reinterpret_cast|require|resource|restrict|self|set|shared|sizeof|smooth|snorm|static|static_assert|static_cast|std|subroutine|super|target|template|this|thread_local|throw|trait|try|type|typedef|typeid|typename|typeof|union|unless|unorm|unsafe|unsized|use|using|varying|virtual|volatile|wgsl|where|with|writeonly|yield)\\b"},"template_types":{"name":"meta.type.template.wgsl","begin":"\\b(array|atomic|ptr|vec[2-4]|mat[2-4]x[2-4]|texture_storage_(?:1d|2d|2d_array|3d))\\s*(\u003c)","end":"\u003e","patterns":[{"include":"#function_arguments"}],"beginCaptures":{"1":{"name":"storage.type.wgsl"},"2":{"name":"punctuation.brackets.angle.wgsl"}},"endCaptures":{"0":{"name":"punctuation.brackets.angle.wgsl"}}},"texture_and_sampler_types":{"patterns":[{"name":"storage.type.sampled-texture.wgsl","match":"\\b(texture_1d|texture_2d|texture_2d_array|texture_3d|texture_cube|texture_cube_array)\\b"},{"name":"storage.type.sampled-texture.wgsl","match":"\\b(texture_multisampled_2d|texture_depth_multisampled_2d)\\b"},{"name":"storage.type.external-sampled-texture.wgsl","match":"\\b(texture_external)\\b"},{"name":"storage.type.external-sampled-texture.wgsl","match":"\\b(texture_storage_1d|texture_storage_2d|texture_storage_2d_array|texture_storage_3d)\\b"},{"name":"storage.type.depth-texture.wgsl","match":"\\b(texture_depth_2d|texture_depth_2d_array|texture_depth_cube|texture_depth_cube_array)\\b"},{"name":"storage.type.sampler.wgsl","match":"\\b(sampler|sampler_comparison)\\b"}]},"types":{"patterns":[{"include":"#template_types"},{"include":"#plain_types"},{"include":"#memory_views"},{"include":"#texture_and_sampler_types"}]},"variables":{"patterns":[{"name":"variable.other.wgsl","match":"\\b([_$[:alpha:]][_$[:alnum:]]*)\\b"}]},"vector_types":{"patterns":[{"name":"storage.type.vectors.wgsl","match":"\\b(vec)([2-4])\\b"},{"name":"storage.type.vectors.wgsl","match":"\\b(vec)([2-4])(i|u|f|h)\\b"}]}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"sls-yaml","scopeName":"source.yaml.salt","patterns":[{"
|
|
1
|
+
{"name":"sls-yaml","scopeName":"source.yaml.salt","patterns":[{},{"name":"jinja.tag.in.yaml","begin":"{([%#{])","end":"([%#}])}","patterns":[{}]},{"name":"string.unquoted.block.yaml","begin":"^(\\s*)(?:(-)|(?:(-\\s*)?(\\w+\\s*(:))))\\s*(\\||\u003e)","end":"^(?!^\\1)|^(?=\\1(-|\\w+\\s*:)|#)","patterns":[{}],"beginCaptures":{"2":{"name":"punctuation.definition.entry.yaml"},"3":{"name":"punctuation.definition.entry.yaml"},"4":{"name":"entity.name.tag.yaml"},"5":{"name":"punctuation.separator.key-value.yaml"}}},{"name":"constant.numeric.yaml","match":"(?:(?:(-\\s*)?(\\w+\\s*(:)))|(-))\\s*((0(x|X)[0-9a-fA-F]*)|(([0-9]+\\.?[0-9]*)|(\\.[0-9]+))((e|E)(\\+|-)?[0-9]+)?)(L|l|UL|ul|u|U|F|f)?\\s*$","captures":{"1":{"name":"punctuation.definition.entry.yaml"},"2":{"name":"entity.name.tag.yaml"},"3":{"name":"punctuation.separator.key-value.yaml"},"4":{"name":"punctuation.definition.entry.yaml"}}},{"name":"string.unquoted.yaml","match":"(?:(?:(-\\s*)?(\\w+\\s*(:)))|(-))\\s*(?:((\")[^\"]*(\"))|((')[^']*('))|([^,{}\u0026#\\[\\]]+))\\s*","captures":{"1":{"name":"punctuation.definition.entry.yaml"},"10":{"name":"punctuation.definition.string.end.yaml"},"11":{"name":"string.unquoted.yaml"},"2":{"name":"entity.name.tag.yaml"},"3":{"name":"punctuation.separator.key-value.yaml"},"4":{"name":"punctuation.definition.entry.yaml"},"5":{"name":"string.quoted.double.yaml"},"6":{"name":"punctuation.definition.string.begin.yaml"},"7":{"name":"punctuation.definition.string.end.yaml"},"8":{"name":"string.quoted.single.yaml"},"9":{"name":"punctuation.definition.string.begin.yaml"}}},{"name":"constant.other.date.yaml","match":"(?:(?:(-\\s*)?(\\w+\\s*(:)))|(-))\\s*([0-9]{4}-[0-9]{2}-[0-9]{2})\\s*$","captures":{"1":{"name":"punctuation.definition.entry.yaml"},"2":{"name":"entity.name.tag.yaml"},"3":{"name":"punctuation.separator.key-value.yaml"},"4":{"name":"punctuation.definition.entry.yaml"}}},{"name":"meta.tag.yaml","match":"(\\w.*?)(:)\\s*((\\!\\!)omap)?","captures":{"1":{"name":"entity.name.tag.yaml"},"2":{"name":"punctuation.separator.key-value.yaml"},"3":{"name":"keyword.other.omap.yaml"},"4":{"name":"punctuation.definition.keyword.yaml"}}},{"name":"variable.other.yaml","match":"(\\\u0026|\\*)\\w.*?$","captures":{"1":{"name":"punctuation.definition.variable.yaml"}}},{"name":"string.quoted.double.yaml","begin":"\"","end":"\"","patterns":[{"include":"#escaped_char"},{}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}}},{"name":"string.quoted.single.yaml","begin":"'","end":"'","patterns":[{"include":"#escaped_char"},{}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}}},{"name":"string.interpolated.yaml","begin":"`","end":"`","patterns":[{"include":"#escaped_char"},{}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.yaml"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.yaml"}}},{"name":"keyword.operator.merge-key.yaml","match":"(\\\u003c\\\u003c): ((\\*).*)$","captures":{"1":{"name":"entity.name.tag.yaml"},"2":{"name":"keyword.operator.merge-key.yaml"},"3":{"name":"punctuation.definition.keyword.yaml"}}},{"name":"invalid.deprecated.trailing-whitespace.yaml","match":"( |\t)+$","disabled":true},{"begin":"(^[ \\t]+)?(?\u003c!\\$)(?=#)(?!#\\{)","end":"(?!\\G)","patterns":[{"name":"comment.line.number-sign.yaml","begin":"#","end":"\\n","beginCaptures":{"0":{"name":"punctuation.definition.comment.yaml"}}}],"beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.yaml"}}},{"name":"keyword.operator.symbol","match":"-"},{"name":"meta.leading-tabs.yaml","begin":"^(?=\\t)","end":"(?=[^\\t])","patterns":[{"match":"(\\t)(\\t)?","captures":{"1":{"name":"meta.odd-tab"},"2":{"name":"meta.even-tab"}}}]}],"repository":{"escaped_char":{"name":"constant.character.escape.yaml","match":"\\\\."}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"BBCode","scopeName":"text.bbcode","patterns":[{"include":"#body"}],"repository":{"body":{"patterns":[{"include":"#syn"},{"include":"#url"},{"include":"#bullet"},{"include":"#bold"},{"include":"#italic"},{"include":"#strikethrough"},{"include":"#underline"}]},"bold":{"name":"markup.bold.bbcode","begin":"(?\u003c=\\[b\\])","end":"(?=\\[/b\\])","patterns":[{"include":"#syn"}]},"bullet":{"name":"variable.other.static.bbcode","match":"\\[\\*\\]"},"italic":{"name":"markup.italic.bbcode","begin":"(?\u003c=\\[i\\])","end":"(?=\\[/i\\])","patterns":[{"include":"#syn"}]},"strikethrough":{"name":"markup.strikethrough.bbcode","begin":"(?\u003c=\\[s\\])","end":"(?=\\[/s\\])","patterns":[{"include":"#syn"}]},"syn":{"name":"entity.name.type.bbcode","match":"\\[/?b\\]|\\[/?i\\]|\\[/?s\\]|\\[/?u\\]|/?url=?|\\[\\/?color(=#......)?\\]|\\[/?spoiler\\]|\\[/?list=?1?\\]|\\[/?quote\\]|\\[/?code\\]|\\[/?img\\]|\\[/?size=?.?\\]"},"underline":{"name":"markup.underline.bbcode","begin":"(?\u003c=\\[u\\])","end":"(?=\\[/u\\])","patterns":[{"include":"#syn"}]},"url":{"patterns":[{"include":"#url-title"},{"include":"#url-link"}]},"url-link":{"name":"string.quoted.double.bbcode","match":"(?\u003c=\\[url=)[^\\]]+"},"url-title":{"name":"entity.name.function.bbcode","end":"(?=\\[/url)?"}}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"Handlebars","scopeName":"text.html.handlebars","patterns":[{"include":"#yfm"},{"include":"#extends"},{"include":"#block_comments"},{"include":"#comments"},{"include":"#block_helper"},{"include":"#end_block"},{"include":"#else_token"},{"include":"#partial_and_var"},{"include":"#inline_script"},{"include":"#html_tags"},{"include":"text.html.basic"}],"repository":{"block_comments":{"patterns":[{"name":"comment.block.handlebars","begin":"\\{\\{!--","end":"--\\}\\}","patterns":[{"name":"keyword.annotation.handlebars","match":"@\\w*"},{"include":"#comments"}]},{"name":"comment.block.html","begin":"\u003c!--","end":"-{2,3}\\s*\u003e","patterns":[{"name":"invalid.illegal.bad-comments-or-CDATA.html","match":"--"}],"captures":{"0":{"name":"punctuation.definition.comment.html"}}}]},"block_helper":{"name":"meta.function.block.start.handlebars","begin":"(\\{\\{)(~?\\#)([-a-zA-Z0-9_\\./\u003e]+)\\s?(@?[-a-zA-Z0-9_\\./]+)*\\s?(@?[-a-zA-Z0-9_\\./]+)*\\s?(@?[-a-zA-Z0-9_\\./]+)*","end":"(~?\\}\\})","patterns":[{"include":"#string"},{"include":"#handlebars_attribute"}],"beginCaptures":{"1":{"name":"support.constant.handlebars"},"2":{"name":"support.constant.handlebars keyword.control"},"3":{"name":"support.constant.handlebars keyword.control"},"4":{"name":"variable.parameter.handlebars"},"5":{"name":"support.constant.handlebars"},"6":{"name":"variable.parameter.handlebars"},"7":{"name":"support.constant.handlebars"}},"endCaptures":{"1":{"name":"support.constant.handlebars"}}},"comments":{"patterns":[{"name":"comment.block.handlebars","begin":"\\{\\{!","end":"\\}\\}","patterns":[{"name":"keyword.annotation.handlebars","match":"@\\w*"},{"include":"#comments"}]},{"name":"comment.block.html","begin":"\u003c!--","end":"-{2,3}\\s*\u003e","patterns":[{"name":"invalid.illegal.bad-comments-or-CDATA.html","match":"--"}],"captures":{"0":{"name":"punctuation.definition.comment.html"}}}]},"else_token":{"name":"meta.function.inline.else.handlebars","begin":"(\\{\\{)(~?else)(@?\\s(if)\\s([-a-zA-Z0-9_\\.\\(\\s\\)/]+))?","end":"(~?\\}\\}\\}*)","beginCaptures":{"1":{"name":"support.constant.handlebars"},"2":{"name":"support.constant.handlebars keyword.control"},"3":{"name":"support.constant.handlebars"},"4":{"name":"variable.parameter.handlebars"}},"endCaptures":{"1":{"name":"support.constant.handlebars"}}},"end_block":{"name":"meta.function.block.end.handlebars","begin":"(\\{\\{)(~?/)([a-zA-Z0-9/_\\.-]+)\\s*","end":"(~?\\}\\})","beginCaptures":{"1":{"name":"support.constant.handlebars"},"2":{"name":"support.constant.handlebars keyword.control"},"3":{"name":"support.constant.handlebars keyword.control"}},"endCaptures":{"1":{"name":"support.constant.handlebars"}}},"entities":{"patterns":[{"name":"constant.character.entity.html","match":"(\u0026)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)","captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}}},{"name":"invalid.illegal.bad-ampersand.html","match":"\u0026"}]},"escaped-double-quote":{"name":"constant.character.escape.js","match":"\\\\\""},"escaped-single-quote":{"name":"constant.character.escape.js","match":"\\\\'"},"extends":{"patterns":[{"name":"meta.preprocessor.handlebars","begin":"(\\{\\{!\u003c)\\s([-a-zA-Z0-9_\\./]+)","end":"(\\}\\})","beginCaptures":{"1":{"name":"support.function.handlebars"},"2":{"name":"support.class.handlebars"}},"endCaptures":{"1":{"name":"support.function.handlebars"}}}]},"handlebars_attribute":{"patterns":[{"include":"#handlebars_attribute_name"},{"include":"#handlebars_attribute_value"}]},"handlebars_attribute_name":{"name":"entity.other.attribute-name.handlebars","begin":"\\b([-a-zA-Z0-9_\\.]+)\\b=","end":"(?='|\"|)","captures":{"1":{"name":"variable.parameter.handlebars"}}},"handlebars_attribute_value":{"name":"entity.other.attribute-value.handlebars","begin":"([-a-zA-Z0-9_\\./]+)\\b","end":"('|\"|)","patterns":[{"include":"#string"}],"captures":{"1":{"name":"variable.parameter.handlebars"}}},"html_tags":{"patterns":[{"name":"meta.tag.any.html","begin":"(\u003c)([a-zA-Z0-9:-]+)(?=[^\u003e]*\u003e\u003c/\\2\u003e)","end":"(\u003e(\u003c)/)(\\2)(\u003e)","patterns":[{"include":"#tag-stuff"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"meta.scope.between-tag-pair.html"},"3":{"name":"entity.name.tag.html"},"4":{"name":"punctuation.definition.tag.html"}}},{"name":"meta.tag.preprocessor.xml.html","begin":"(\u003c\\?)(xml)","end":"(\\?\u003e)","patterns":[{"include":"#tag_generic_attribute"},{"include":"#string"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.xml.html"}}},{"name":"comment.block.html","begin":"\u003c!--","end":"--\\s*\u003e","patterns":[{"name":"invalid.illegal.bad-comments-or-CDATA.html","match":"--"}],"captures":{"0":{"name":"punctuation.definition.comment.html"}}},{"name":"meta.tag.sgml.html","begin":"\u003c!","end":"\u003e","patterns":[{"name":"meta.tag.sgml.doctype.html","begin":"(DOCTYPE|doctype)","end":"(?=\u003e)","patterns":[{"name":"string.quoted.double.doctype.identifiers-and-DTDs.html","match":"\"[^\"\u003e]*\""}],"captures":{"1":{"name":"entity.name.tag.doctype.html"}}},{"name":"constant.other.inline-data.html","begin":"\\[CDATA\\[","end":"]](?=\u003e)"},{"name":"invalid.illegal.bad-comments-or-CDATA.html","match":"(\\s*)(?!--|\u003e)\\S(\\s*)"}],"captures":{"0":{"name":"punctuation.definition.tag.html"}}},{"name":"source.css.embedded.html","begin":"(?:^\\s+)?(\u003c)((?i:style))\\b(?![^\u003e]*/\u003e)","end":"(\u003c/)((?i:style))(\u003e)(?:\\s*\\n)?","patterns":[{"include":"#tag-stuff"},{"begin":"(\u003e)","end":"(?=\u003c/(?i:style))","patterns":[{"include":"source.css"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.html"}}}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.style.html"},"3":{"name":"punctuation.definition.tag.html"}}},{"name":"source.js.embedded.html","begin":"(?:^\\s+)?(\u003c)((?i:script))\\b(?![^\u003e]*/\u003e)","end":"(?\u003c=\u003c/(script|SCRIPT))(\u003e)(?:\\s*\\n)?","patterns":[{"include":"#tag-stuff"},{"begin":"(?\u003c!\u003c/(?:script|SCRIPT))(\u003e)","end":"(\u003c/)((?i:script))","patterns":[{"name":"comment.line.double-slash.js","match":"(//).*?((?=\u003c/script)|$\\n?)","captures":{"1":{"name":"punctuation.definition.comment.js"}}},{"name":"comment.block.js","begin":"/\\*","end":"\\*/|(?=\u003c/script)","captures":{"0":{"name":"punctuation.definition.comment.js"}}},{"include":"source.js"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.script.html"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.script.html"}},"endCaptures":{"2":{"name":"punctuation.definition.tag.html"}}},{"name":"meta.tag.structure.any.html","begin":"(\u003c/?)((?i:body|head|html)\\b)","end":"(\u003e)","patterns":[{"include":"#tag-stuff"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.structure.any.html"}}},{"name":"meta.tag.block.any.html","begin":"(\u003c/?)((?i:address|blockquote|dd|div|header|section|footer|aside|nav|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)\\b)","end":"(\u003e)","patterns":[{"include":"#tag-stuff"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.block.any.html"}}},{"name":"meta.tag.inline.any.html","begin":"(\u003c/?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)\\b)","end":"((?: ?/)?\u003e)","patterns":[{"include":"#tag-stuff"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.inline.any.html"}}},{"name":"meta.tag.other.html","begin":"(\u003c/?)([a-zA-Z0-9:-]+)","end":"(\u003e)","patterns":[{"include":"#tag-stuff"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.other.html"}}},{"name":"meta.tag.tokenised.html","begin":"(\u003c/?)([a-zA-Z0-9{}:-]+)","end":"(\u003e)","patterns":[{"include":"#tag-stuff"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.tokenised.html"}}},{"include":"#entities"},{"name":"invalid.illegal.incomplete.html","match":"\u003c\u003e"},{"name":"invalid.illegal.bad-angle-bracket.html","match":"\u003c"}]},"inline_script":{"name":"source.handlebars.embedded.html","begin":"(?:^\\s+)?(\u003c)((?i:script))\\b(?:.*(type)=([\"'](?:text/x-handlebars-template|text/x-handlebars|text/template|x-tmpl-handlebars)[\"']))(?![^\u003e]*/\u003e)","end":"(?\u003c=\u003c/(script|SCRIPT))(\u003e)(?:\\s*\\n)?","patterns":[{"include":"#tag-stuff"},{"begin":"(?\u003c!\u003c/(?:script|SCRIPT))(\u003e)","end":"(\u003c/)((?i:script))","patterns":[{"include":"#block_comments"},{"include":"#comments"},{"include":"#block_helper"},{"include":"#end_block"},{"include":"#else_token"},{"include":"#partial_and_var"},{"include":"#html_tags"},{"include":"text.html.basic"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.script.html"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.script.html"},"3":{"name":"entity.other.attribute-name.html"},"4":{"name":"string.quoted.double.html"}},"endCaptures":{"2":{"name":"punctuation.definition.tag.html"}}},"partial_and_var":{"name":"meta.function.inline.other.handlebars","begin":"(\\{\\{~?\\{*(\u003e|!\u003c)*)\\s*(@?[-a-zA-Z0-9$_\\./]+)*","end":"(~?\\}\\}\\}*)","patterns":[{"include":"#string"},{"include":"#handlebars_attribute"}],"beginCaptures":{"1":{"name":"support.constant.handlebars"},"3":{"name":"variable.parameter.handlebars"}},"endCaptures":{"1":{"name":"support.constant.handlebars"}}},"string":{"patterns":[{"include":"#string-single-quoted"},{"include":"#string-double-quoted"}]},"string-double-quoted":{"name":"string.quoted.double.handlebars","begin":"\"","end":"\"","patterns":[{"include":"#escaped-double-quote"},{"include":"#block_comments"},{"include":"#comments"},{"include":"#block_helper"},{"include":"#else_token"},{"include":"#end_block"},{"include":"#partial_and_var"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}},"string-single-quoted":{"name":"string.quoted.single.handlebars","begin":"'","end":"'","patterns":[{"include":"#escaped-single-quote"},{"include":"#block_comments"},{"include":"#comments"},{"include":"#block_helper"},{"include":"#else_token"},{"include":"#end_block"},{"include":"#partial_and_var"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}},"tag-stuff":{"patterns":[{"include":"#tag_id_attribute"},{"include":"#tag_generic_attribute"},{"include":"#string"},{"include":"#block_comments"},{"include":"#comments"},{"include":"#block_helper"},{"include":"#end_block"},{"include":"#else_token"},{"include":"#partial_and_var"}]},"tag_generic_attribute":{"name":"entity.other.attribute-name.html","begin":"\\b([a-zA-Z0-9_-]+)\\b\\s*(=)","end":"(?\u003c='|\"|)","patterns":[{"include":"#string"}],"captures":{"1":{"name":"entity.other.attribute-name.generic.html"},"2":{"name":"punctuation.separator.key-value.html"}}},"tag_id_attribute":{"name":"meta.attribute-with-value.id.html","begin":"\\b(id)\\b\\s*(=)","end":"(?\u003c='|\"|)","patterns":[{"include":"#string"}],"captures":{"1":{"name":"entity.other.attribute-name.id.html"},"2":{"name":"punctuation.separator.key-value.html"}}},"yfm":{"patterns":[{"name":"markup.raw.yaml.front-matter","begin":"(?\u003c!\\s)---\\n$","end":"^---\\s","patterns":[{"include":"source.yaml"}]}]}}}
|
|
1
|
+
{"name":"Handlebars","scopeName":"text.html.handlebars","patterns":[{"include":"#escaped_backslash"},{"include":"#escaped_expression"},{"include":"#yfm"},{"include":"#extends"},{"include":"#block_comments"},{"include":"#comments"},{"include":"#block_helper"},{"include":"#end_block"},{"include":"#else_token"},{"include":"#partial_and_var"},{"include":"#inline_script"},{"include":"#html_tags"},{"include":"text.html.basic"}],"repository":{"block_comments":{"patterns":[{"name":"comment.block.handlebars","begin":"\\{\\{~?!--","end":"--~?\\}\\}","patterns":[{"name":"keyword.annotation.handlebars","match":"@\\w*"},{"include":"#comments"}]},{"name":"comment.block.html","begin":"\u003c!--","end":"-{2,3}\\s*\u003e","patterns":[{"name":"invalid.illegal.bad-comments-or-CDATA.html","match":"--"}],"captures":{"0":{"name":"punctuation.definition.comment.html"}}}]},"block_helper":{"name":"meta.function.block.start.handlebars","begin":"(\\{\\{)(~?\\#)([-\\p{L}\\p{N}_\\./\u003e]+)\\s?(@?[-\\p{L}\\p{N}_\\./]+)*\\s?(@?[-\\p{L}\\p{N}_\\./]+)*\\s?(@?[-\\p{L}\\p{N}_\\./]+)*","end":"(~?\\}\\})","patterns":[{"include":"#string"},{"include":"#handlebars_attribute"}],"beginCaptures":{"1":{"name":"support.constant.handlebars"},"2":{"name":"support.constant.handlebars keyword.control"},"3":{"name":"support.constant.handlebars keyword.control"},"4":{"name":"variable.parameter.handlebars"},"5":{"name":"support.constant.handlebars"},"6":{"name":"variable.parameter.handlebars"},"7":{"name":"support.constant.handlebars"}},"endCaptures":{"1":{"name":"support.constant.handlebars"}}},"comments":{"patterns":[{"name":"comment.block.handlebars","begin":"\\{\\{~?!","end":"~?\\}\\}","patterns":[{"name":"keyword.annotation.handlebars","match":"@\\w*"},{"include":"#comments"}]},{"name":"comment.block.html","begin":"\u003c!--","end":"-{2,3}\\s*\u003e","patterns":[{"name":"invalid.illegal.bad-comments-or-CDATA.html","match":"--"}],"captures":{"0":{"name":"punctuation.definition.comment.html"}}}]},"else_token":{"name":"meta.function.inline.else.handlebars","begin":"(\\{\\{)(~?else)(@?\\s(if)\\s([-\\p{L}\\p{N}_\\.\\(\\s\\)/]+))?","end":"(~?\\}\\}\\}*)","beginCaptures":{"1":{"name":"support.constant.handlebars"},"2":{"name":"support.constant.handlebars keyword.control"},"3":{"name":"support.constant.handlebars"},"4":{"name":"variable.parameter.handlebars"}},"endCaptures":{"1":{"name":"support.constant.handlebars"}}},"end_block":{"name":"meta.function.block.end.handlebars","begin":"(\\{\\{)(~?/)([\\p{L}\\p{N}/_\\.-]+)\\s*","end":"(~?\\}\\})","beginCaptures":{"1":{"name":"support.constant.handlebars"},"2":{"name":"support.constant.handlebars keyword.control"},"3":{"name":"support.constant.handlebars keyword.control"}},"endCaptures":{"1":{"name":"support.constant.handlebars"}}},"entities":{"patterns":[{"name":"constant.character.entity.html","match":"(\u0026)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)","captures":{"1":{"name":"punctuation.definition.entity.html"},"3":{"name":"punctuation.definition.entity.html"}}},{"name":"invalid.illegal.bad-ampersand.html","match":"\u0026"}]},"escaped-double-quote":{"name":"constant.character.escape.js","match":"\\\\\""},"escaped-single-quote":{"name":"constant.character.escape.js","match":"\\\\'"},"escaped_backslash":{"name":"constant.character.escape.handlebars","match":"\\\\\\\\(?=\\\\*\\{{2,3})"},"escaped_expression":{"name":"constant.character.escape.handlebars","match":"\\\\\\{{2,3}"},"extends":{"patterns":[{"name":"meta.preprocessor.handlebars","begin":"(\\{\\{!\u003c)\\s([-\\p{L}\\p{N}_\\./]+)","end":"(\\}\\})","beginCaptures":{"1":{"name":"support.function.handlebars"},"2":{"name":"support.class.handlebars"}},"endCaptures":{"1":{"name":"support.function.handlebars"}}}]},"handlebars_attribute":{"patterns":[{"include":"#handlebars_attribute_name"},{"include":"#handlebars_attribute_value"}]},"handlebars_attribute_name":{"name":"entity.other.attribute-name.handlebars","begin":"\\b([-\\p{L}\\p{N}_\\.]+)\\b=","end":"(?='|\"|)","captures":{"1":{"name":"variable.parameter.handlebars"}}},"handlebars_attribute_value":{"name":"entity.other.attribute-value.handlebars","begin":"([-\\p{L}\\p{N}_\\./]+)\\b","end":"('|\"|)","patterns":[{"include":"#string"}],"captures":{"1":{"name":"variable.parameter.handlebars"}}},"html_tags":{"patterns":[{"name":"meta.tag.any.html","begin":"(\u003c)([a-zA-Z0-9:-]+)(?=[^\u003e]*\u003e\u003c/\\2\u003e)","end":"(\u003e(\u003c)/)(\\2)(\u003e)","patterns":[{"include":"#tag-stuff"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.html"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"meta.scope.between-tag-pair.html"},"3":{"name":"entity.name.tag.html"},"4":{"name":"punctuation.definition.tag.html"}}},{"name":"meta.tag.preprocessor.xml.html","begin":"(\u003c\\?)(xml)","end":"(\\?\u003e)","patterns":[{"include":"#tag_generic_attribute"},{"include":"#string"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.xml.html"}}},{"name":"comment.block.html","begin":"\u003c!--","end":"--\\s*\u003e","patterns":[{"name":"invalid.illegal.bad-comments-or-CDATA.html","match":"--"}],"captures":{"0":{"name":"punctuation.definition.comment.html"}}},{"name":"meta.tag.sgml.html","begin":"\u003c!","end":"\u003e","patterns":[{"name":"meta.tag.sgml.doctype.html","begin":"(DOCTYPE|doctype)","end":"(?=\u003e)","patterns":[{"name":"string.quoted.double.doctype.identifiers-and-DTDs.html","match":"\"[^\"\u003e]*\""}],"captures":{"1":{"name":"entity.name.tag.doctype.html"}}},{"name":"constant.other.inline-data.html","begin":"\\[CDATA\\[","end":"]](?=\u003e)"},{"name":"invalid.illegal.bad-comments-or-CDATA.html","match":"(\\s*)(?!--|\u003e)\\S(\\s*)"}],"captures":{"0":{"name":"punctuation.definition.tag.html"}}},{"name":"source.css.embedded.html","begin":"(?:^\\s+)?(\u003c)((?i:style))\\b(?![^\u003e]*/\u003e)","end":"(\u003c/)((?i:style))(\u003e)(?:\\s*\\n)?","patterns":[{"include":"#tag-stuff"},{"begin":"(\u003e)","end":"(?=\u003c/(?i:style))","patterns":[{"include":"source.css"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.html"}}}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.style.html"},"3":{"name":"punctuation.definition.tag.html"}}},{"name":"source.js.embedded.html","begin":"(?:^\\s+)?(\u003c)((?i:script))\\b(?![^\u003e]*/\u003e)","end":"(?\u003c=\u003c/(script|SCRIPT))(\u003e)(?:\\s*\\n)?","patterns":[{"include":"#tag-stuff"},{"begin":"(?\u003c!\u003c/(?:script|SCRIPT))(\u003e)","end":"(\u003c/)((?i:script))","patterns":[{"name":"comment.line.double-slash.js","match":"(//).*?((?=\u003c/script)|$\\n?)","captures":{"1":{"name":"punctuation.definition.comment.js"}}},{"name":"comment.block.js","begin":"/\\*","end":"\\*/|(?=\u003c/script)","captures":{"0":{"name":"punctuation.definition.comment.js"}}},{"include":"source.js"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.script.html"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.script.html"}},"endCaptures":{"2":{"name":"punctuation.definition.tag.html"}}},{"name":"meta.tag.structure.any.html","begin":"(\u003c/?)((?i:body|head|html)\\b)","end":"(\u003e)","patterns":[{"include":"#tag-stuff"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.structure.any.html"}}},{"name":"meta.tag.block.any.html","begin":"(\u003c/?)((?i:address|blockquote|dd|div|header|section|footer|aside|nav|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)\\b)","end":"(\u003e)","patterns":[{"include":"#tag-stuff"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.block.any.html"}}},{"name":"meta.tag.inline.any.html","begin":"(\u003c/?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)\\b)","end":"((?: ?/)?\u003e)","patterns":[{"include":"#tag-stuff"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.inline.any.html"}}},{"name":"meta.tag.other.html","begin":"(\u003c/?)([a-zA-Z0-9:-]+)","end":"(\u003e)","patterns":[{"include":"#tag-stuff"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.other.html"}}},{"name":"meta.tag.tokenised.html","begin":"(\u003c/?)([a-zA-Z0-9{}:-]+)","end":"(\u003e)","patterns":[{"include":"#tag-stuff"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.tokenised.html"}}},{"include":"#entities"},{"name":"invalid.illegal.incomplete.html","match":"\u003c\u003e"},{"name":"invalid.illegal.bad-angle-bracket.html","match":"\u003c"}]},"inline_script":{"name":"source.handlebars.embedded.html","begin":"(?:^\\s+)?(\u003c)((?i:script))\\b(?=[^\u003e]*\\stype=([\"'](?:text/x-handlebars-template|text/x-handlebars|text/template|x-tmpl-handlebars)[\"']))(?![^\u003e]*/\u003e)","end":"(?\u003c=\u003c/(script|SCRIPT))(\u003e)(?:\\s*\\n)?","patterns":[{"include":"#tag-stuff"},{"begin":"(?\u003c!\u003c/(?:script|SCRIPT))(\u003e)","end":"(\u003c/)((?i:script))","patterns":[{"include":"#escaped_backslash"},{"include":"#escaped_expression"},{"include":"#block_comments"},{"include":"#comments"},{"include":"#block_helper"},{"include":"#end_block"},{"include":"#else_token"},{"include":"#partial_and_var"},{"include":"#html_tags"},{"include":"text.html.basic"}],"captures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.script.html"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.html"},"2":{"name":"entity.name.tag.script.html"}},"endCaptures":{"2":{"name":"punctuation.definition.tag.html"}}},"partial_and_var":{"name":"meta.function.inline.other.handlebars","begin":"(\\{\\{~?\\{*(\u003e|!\u003c)*)\\s*(@?[-\\p{L}\\p{N}$_\\./]+)*","end":"(~?\\}\\}\\}*)","patterns":[{"include":"#string"},{"include":"#handlebars_attribute"}],"beginCaptures":{"1":{"name":"support.constant.handlebars"},"3":{"name":"variable.parameter.handlebars"}},"endCaptures":{"1":{"name":"support.constant.handlebars"}}},"string":{"patterns":[{"include":"#string-single-quoted"},{"include":"#string-double-quoted"}]},"string-double-quoted":{"name":"string.quoted.double.handlebars","begin":"\"","end":"\"","patterns":[{"include":"#escaped-double-quote"},{"include":"#block_comments"},{"include":"#comments"},{"include":"#block_helper"},{"include":"#else_token"},{"include":"#end_block"},{"include":"#partial_and_var"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}},"string-single-quoted":{"name":"string.quoted.single.handlebars","begin":"'","end":"'","patterns":[{"include":"#escaped-single-quote"},{"include":"#block_comments"},{"include":"#comments"},{"include":"#block_helper"},{"include":"#else_token"},{"include":"#end_block"},{"include":"#partial_and_var"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.html"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.html"}}},"tag-stuff":{"patterns":[{"include":"#tag_id_attribute"},{"include":"#tag_generic_attribute"},{"include":"#string"},{"include":"#block_comments"},{"include":"#comments"},{"include":"#block_helper"},{"include":"#end_block"},{"include":"#else_token"},{"include":"#partial_and_var"}]},"tag_generic_attribute":{"name":"entity.other.attribute-name.html","begin":"\\b([a-zA-Z0-9_-]+)\\b\\s*(=)","end":"(?\u003c='|\"|)","patterns":[{"include":"#string"}],"captures":{"1":{"name":"entity.other.attribute-name.generic.html"},"2":{"name":"punctuation.separator.key-value.html"}}},"tag_id_attribute":{"name":"meta.attribute-with-value.id.html","begin":"\\b(id)\\b\\s*(=)","end":"(?\u003c='|\"|)","patterns":[{"include":"#string"}],"captures":{"1":{"name":"entity.other.attribute-name.id.html"},"2":{"name":"punctuation.separator.key-value.html"}}},"yfm":{"patterns":[{"name":"markup.raw.yaml.front-matter","begin":"\\A-{3}$","end":"^-{3}$","patterns":[{"include":"source.yaml"}]}]}}}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"name":"Recfile","scopeName":"text.recfile","patterns":[{"include":"#main"}],"repository":{"aggregateFunctions":{"name":"meta.function-call.aggregate.${1:/downcase}.recfile","contentName":"meta.arguments.recfile","begin":"(?i)\\b(Count|Avg|Sum|Min|Max)(\\()(?=.*?\\))","end":"\\)","patterns":[{"include":"#main"}],"beginCaptures":{"1":{"name":"support.function.aggregate.sql.recfile"},"2":{"name":"punctuation.definition.arguments.bracket.round.begin.recfile"}},"endCaptures":{"0":{"name":"punctuation.definition.arguments.bracket.round.end.recfile"}}},"comment":{"name":"comment.line.number-sign.recfile","begin":"^#","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.recfile"}}},"constraint":{"patterns":[{"name":"meta.constraint.range.recfile","match":"\\G\\s*(range)(?:\\s+(\\S+))?\\s+([^\\\\\\s]+)","captures":{"1":{"name":"storage.type.constraint.range.recfile"},"2":{"patterns":[{"include":"#numberOnly"}]},"3":{"patterns":[{"include":"#numberOnly"}]}}},{"name":"meta.constraint.size.recfile","match":"\\G\\s*(size)\\s+([^\\\\\\s]+)","captures":{"1":{"name":"storage.type.constraint.size.recfile"},"2":{"patterns":[{"include":"#numberOnly"}]}}},{"name":"meta.constraint.pattern.recfile","contentName":"string.regexp.recfile","begin":"\\G\\s*(regexp)\\s+([^\\s\\\\])","end":"\\2|(?=$)","patterns":[{"include":"#regexp"}],"beginCaptures":{"1":{"name":"storage.type.constraint.regexp.recfile"},"2":{"name":"punctuation.delimiter.pattern.begin.recfile"}},"endCaptures":{"0":{"name":"punctuation.delimiter.pattern.end.recfile"}}},{"name":"meta.constraint.enum.recfile","begin":"\\G\\s*(enum)(?=$|\\s)","end":"^(?!\\+)","patterns":[{"name":"constant.language.enumeration.recfile","match":"(?!_)\\w[-\\w]*"},{"name":"comment.block.parentheses.recfile","begin":"\\(","end":"\\)","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.recfile"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.recfile"}}},{"include":"#fieldInnards"}],"beginCaptures":{"1":{"name":"storage.type.constraint.enum.recfile"}}},{"name":"meta.constraint.foreign-key.recfile","match":"\\G\\s*(rec)\\s+([a-zA-Z]\\w*)","captures":{"1":{"name":"storage.type.constraint.rec.recfile"},"2":{"name":"entity.name.type.recfile"}}},{"name":"meta.constraint.$1-type.recfile","match":"\\G\\s*(bool|date|email|field|int|line|real|uuid)(?=\\s*\\\\?$)","captures":{"1":{"name":"support.type.constraint.recfile"}}},{"name":"meta.constraint.$1-type.recfile","match":"\\G\\s*([a-zA-Z]\\w*)","captures":{"1":{"name":"entity.name.type.recfile"}}},{"include":"#fieldInnards"}]},"descriptor":{"patterns":[{"name":"meta.record.descriptor.doc.recfile","contentName":"string.unquoted.documentation.recfile","begin":"^((%)doc)(:)(?=$|\\s)[ \\t]*","end":"^(?!\\+)","patterns":[{"include":"#fieldInnards"}],"beginCaptures":{"1":{"name":"keyword.operator.property.recfile"},"2":{"name":"punctuation.definition.property.recfile"},"3":{"patterns":[{"include":"etc#kolon"}]}}},{"name":"meta.record.descriptor.$3.recfile","contentName":"meta.field-list.recfile","begin":"^((%)(allowed|auto|confidential|key|mandatory|prohibit|singular|sort|unique))(:)(?=$|\\s)[ \\t]*","end":"^(?!\\+)","patterns":[{"name":"variable.reference.field.recfile","match":"[a-zA-Z%]\\w*"},{"include":"#fieldInnards"}],"beginCaptures":{"1":{"name":"keyword.operator.property.recfile"},"2":{"name":"punctuation.definition.property.recfile"},"4":{"patterns":[{"include":"etc#kolon"}]}}},{"name":"meta.record.descriptor.typedef.$4.recfile","contentName":"meta.type-definition.recfile","begin":"^((%)typedef)(:)[ \\t]*([a-zA-Z]\\w*)","end":"^(?!\\+)","patterns":[{"include":"#constraint"}],"beginCaptures":{"1":{"name":"keyword.operator.property.recfile"},"2":{"name":"punctuation.definition.property.recfile"},"3":{"patterns":[{"include":"etc#kolon"}]},"4":{"name":"entity.name.type.recfile"}}},{"name":"meta.record.descriptor.type.recfile","contentName":"meta.field-type-definition.recfile","begin":"^((%)type)(:)[ \\t]*([a-zA-Z]\\w*(?:,\\s*[a-zA-Z]\\w*)*+)","end":"^(?!\\+)","patterns":[{"include":"#constraint"}],"beginCaptures":{"1":{"name":"keyword.operator.property.recfile"},"2":{"name":"punctuation.definition.property.recfile"},"3":{"patterns":[{"include":"etc#kolon"}]},"4":{"patterns":[{"name":"variable.reference.field.recfile","match":"\\w+"},{"include":"etc#comma"}]}}},{"name":"meta.record.descriptor.typedef.constraint.recfile","contentName":"meta.selection-expression.recfile","begin":"^((%)constraint)(:)(?=$|\\s)","end":"^(?!\\+)","patterns":[{"include":"#select"}],"beginCaptures":{"1":{"name":"keyword.operator.property.recfile"},"2":{"name":"punctuation.definition.property.recfile"},"3":{"patterns":[{"include":"etc#kolon"}]}}},{"name":"meta.record.descriptor.max-size.recfile","begin":"^((%)size)(:)(?:[ \\t]*([\u003c\u003e]=?))?","end":"^(?!\\+)","patterns":[{"match":"\\G\\s*([^\\\\\\s]+)","captures":{"1":{"patterns":[{"include":"#numberOnly"}]}}},{"include":"#fieldInnards"}],"beginCaptures":{"1":{"name":"keyword.operator.property.recfile"},"2":{"name":"punctuation.definition.property.recfile"},"3":{"patterns":[{"include":"etc#kolon"}]},"4":{"patterns":[{"include":"etc#opCmp"}]}}},{"name":"meta.record.descriptor.rec.recfile","begin":"^((%)rec)(:)\\s*([a-zA-Z]\\w*)","end":"^(?!\\+)","patterns":[{"name":"meta.external-descriptor.recfile","begin":"\\G\\s+(?=\\S)","end":"(?!\\G)","patterns":[{"begin":"\\G(?=(?:(?:git|svn)\\+)?\\w+(?:[-.+]\\w+)*+://)","end":"(?!\\G)","patterns":[{"include":"etc#url"},{"include":"#fieldInnards"}]},{"name":"constant.other.reference.link.pathname.recfile","begin":"\\G","end":"^(?!\\+)","patterns":[{"include":"#fieldInnards"}]}],"applyEndPatternLast":true}],"beginCaptures":{"1":{"name":"keyword.operator.property.recfile"},"2":{"name":"punctuation.definition.property.recfile"},"3":{"patterns":[{"include":"etc#kolon"}]},"4":{"name":"entity.name.type.recfile"}}},{"name":"meta.record.descriptor.$3.recfile","contentName":"entity.name.type.recfile","begin":"^((%)([a-zA-Z]\\w*))(:)(?=$|\\s)","end":"^(?!\\+)","patterns":[{"include":"#fieldInnards"}],"beginCaptures":{"1":{"name":"keyword.operator.property.recfile"},"2":{"name":"punctuation.definition.property.recfile"},"4":{"patterns":[{"include":"etc#kolon"}]}}}]},"field":{"name":"meta.field.${1:/downcase}.recfile","contentName":"string.unquoted.field.recfile","begin":"^([a-zA-Z]\\w*)(:)(?=$|\\s)[ \\t]*","end":"^(?!\\+)","patterns":[{"name":"meta.encrypted-value.recfile","begin":"\\G(encrypted)((-))","end":"^(?!\\+)","patterns":[{"include":"#fieldInnards"},{"name":"invalid.illegal.syntax.non-ascii.recfile","match":"[^\\s -~]+"}],"beginCaptures":{"1":{"name":"constant.language.encryption.recfile"},"2":{"name":"meta.separator.dash.recfile"},"3":{"name":"punctuation.separator.key-value.encryption.recfile"}}},{"include":"#fieldInnards"}],"beginCaptures":{"1":{"name":"variable.assignment.field.recfile"},"2":{"patterns":[{"include":"etc#kolon"}]}},"applyEndPatternLast":true},"fieldInnards":{"patterns":[{"begin":"((\\\\))$[\\r\\n]*","end":"^\\s*(?!\\\\$)\\S","beginCaptures":{"0":{"name":"constant.character.escape.newline.recfile"},"1":{"name":"punctuation.definition.escape.backslash.recfile"},"2":{"name":"sublimelinter.gutter-mark"}}},{"name":"markup.inserted.embedded-newline.recfile","match":"^(\\+)( )?","captures":{"1":{"name":"punctuation.definition.inserted.newline.recfile"},"2":{"name":"punctuation.whitespace.separator.recfile"}}}]},"main":{"patterns":[{"include":"#comment"},{"include":"#record"}]},"number":{"patterns":[{"name":"constant.language.integral-extrema.${1:/downcase}.recfile","match":"(?:\\G|^|(?\u003c=\\s|:))(MIN|MAX)(?=\\\\?$|\\s)"},{"name":"constant.numeric.integer.octal.recfile","match":"(?:\\G|^|(?\u003c=\\s|:))-?0[0-7]+(?=\\\\?$|\\s)"},{"name":"constant.numeric.integer.hexadecimal.recfile","match":"(?:\\G|^|(?\u003c=\\s|:))-?0x[0-9A-Fa-f]+(?=\\\\?$|\\s)"},{"name":"constant.numeric.integer.decimal.recfile","match":"(?:\\G|^|(?\u003c=\\s|:))-?\\d+(?=\\\\?$|\\s)"},{"include":"etc#float"}]},"numberOnly":{"patterns":[{"include":"#number"},{"name":"invalid.illegal.syntax.not-a-number.recfile","match":"(?:\\G|^|(?\u003c=\\s|:))[^\\d\\s]+(?=\\\\?$|\\s)"}]},"record":{"name":"meta.record.recfile","begin":"^(?=[a-zA-Z%])","end":"^(?=\\s*$)","patterns":[{"include":"#field"},{"include":"#descriptor"},{"include":"#comment"}]},"regexp":{"patterns":[{"include":"#regexpAnchors"},{"name":"keyword.operator.quantifier.regexp.recfile","match":"[*+?]"},{"match":"(\\\\w)|(\\\\W)","captures":{"1":{"name":"constant.character.escape.word-char.regexp.recfile"},"2":{"name":"constant.character.escape.non-word-char.regexp.recfile"}}},{"name":"keyword.other.back-reference.$1.regexp.recfile","match":"\\\\\\d{1,2}"},{"name":"constant.character.escape.literal.recfile","match":"\\\\."},{"name":"constant.character.wildcard.dot.match.any.regexp.recfile","match":"\\."},{"name":"meta.group.regexp.recfile","begin":"\\(","end":"\\)","patterns":[{"include":"#regexp"}],"beginCaptures":{"0":{"name":"punctuation.definition.group.begin.regexp.recfile"}},"endCaptures":{"0":{"name":"punctuation.definition.group.end.regexp.recfile"}}},{"name":"keyword.operator.logical.or.regexp.recfile","match":"\\|"},{"name":"meta.character-class.set.regexp.recfile","begin":"\\[","end":"\\]","patterns":[{"name":"keyword.operator.logical.not.regexp.recfile","match":"\\G\\^"},{"include":"source.regexp.posix#charClass"},{"name":"punctuation.separator.range.dash.regexp.recfile","match":"(?\u003c!\\G|\\\\[dwshDWSHN])-(?!\\])"},{"name":"constant.single.character.character-class.regexp.recfile","match":"[^\\]]"}],"beginCaptures":{"0":{"name":"punctuation.definition.character-class.set.begin.regexp.recfile"}},"endCaptures":{"0":{"name":"punctuation.definition.character-class.set.end.regexp.recfile"}}},{"include":"source.regexp#quantifierNumeric"}]},"regexpAnchors":{"patterns":[{"name":"keyword.control.anchor.line-start.regexp.recfile","match":"\\^"},{"name":"keyword.control.anchor.line-end.regexp.recfile","match":"\\$"},{"name":"keyword.control.anchor.word-start.regexp.recfile","match":"\\\\\u003c"},{"name":"keyword.control.anchor.word-end.regexp.recfile","match":"\\\\\u003e"},{"name":"keyword.control.anchor.word-boundary.regexp.recfile","match":"\\\\b"},{"name":"keyword.control.anchor.non-word-boundary.regexp.recfile","match":"\\\\B"},{"name":"keyword.control.anchor.input-start.regexp.recfile","match":"\\\\`"},{"name":"keyword.control.anchor.input-end.regexp.recfile","match":"\\\\'"}]},"select":{"patterns":[{"include":"#number"},{"include":"#string"},{"include":"#selectOperator"},{"include":"#selectMatch"},{"include":"#selectGroup"},{"include":"#selectField"},{"include":"#fieldInnards"}]},"selectField":{"patterns":[{"name":"meta.field-counter.recfile","match":"((#))([a-zA-Z]\\w*)","captures":{"1":{"name":"keyword.operator.count.recfile"},"2":{"name":"punctuation.definition.counter.recfile"},"3":{"name":"variable.reference.field.recfile"}}},{"name":"meta.field-value.recfile","match":"([a-zA-Z]\\w*)((\\[)([^\\]]+)(\\]))?","captures":{"1":{"name":"variable.reference.field.recfile"},"2":{"name":"meta.subscript.recfile"},"3":{"name":"punctuation.definition.subscript.bracket.square.begin.recfile"},"4":{"patterns":[{"include":"#numberOnly"}]},"5":{"name":"punctuation.definition.subscript.bracket.square.end.recfile"}}}]},"selectGroup":{"name":"meta.group.expression.recfile","begin":"\\(","end":"\\)","patterns":[{"include":"#select"}],"beginCaptures":{"0":{"name":"punctuation.definition.group.begin.expression.recfile"}},"endCaptures":{"0":{"name":"punctuation.definition.group.end.expression.recfile"}}},"selectMatch":{"name":"meta.regexp-match.recfile","begin":"\\s*(~)\\s*(?=\"|')","end":"(?!\\G)","patterns":[{"include":"#string"}],"beginCaptures":{"1":{"name":"keyword.operator.logical.comparison.pattern-match.recfile"}},"applyEndPatternLast":true},"selectOperator":{"patterns":[{"name":"keyword.operator.logical.comparison.date.before.recfile","match":"\u003c\u003c"},{"name":"keyword.operator.logical.comparison.date.after.recfile","match":"\u003e\u003e"},{"name":"keyword.operator.logical.comparison.date.same-time.recfile","match":"=="},{"name":"keyword.operator.logical.comparison.imply.recfile","match":"=\u003e"},{"match":"[-+*/%!]|\u0026\u0026|\\|{2}|[\u003c\u003e]=?|!=","captures":{"0":{"patterns":[{"include":"etc#op"}]}}},{"name":"keyword.operator.logical.comparison.equals.recfile","match":"="},{"name":"keyword.operator.concatenation.recfile","match":"\u0026"},{"name":"meta.ternary-condition.recfile","begin":"\\?","end":":","patterns":[{"include":"#select"}],"beginCaptures":{"0":{"name":"keyword.operator.logical.ternary.begin.recfile"}},"endCaptures":{"0":{"name":"keyword.operator.logical.ternary.end.recfile"}}}]},"string":{"patterns":[{"name":"string.quoted.double.recfile","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.quote.recfile","match":"\\\\\""}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.recfile"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.recfile"}}},{"name":"string.quoted.single.recfile","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.quote.recfile","match":"\\\\'"}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.recfile"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.recfile"}}}]}},"injections":{"L:meta.regexp-match string.quoted - (meta.group.regexp | meta.character-class)":{"patterns":[{"include":"#regexp"}]}}}
|