github-linguist 7.22.1 → 7.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/grammars/inline.graphql.json +1 -0
- data/grammars/inline.graphql.php.json +1 -0
- data/grammars/inline.graphql.python.json +1 -0
- data/grammars/inline.graphql.re.json +1 -0
- data/grammars/inline.graphql.res.json +1 -0
- data/grammars/inline.prisma.json +1 -1
- data/grammars/liquid.injection.json +1 -1
- data/grammars/markdown.graphql.codeblock.json +1 -0
- data/grammars/markdown.rescript.codeblock.json +1 -0
- data/grammars/source.abapcds.json +1 -1
- data/grammars/source.astro.json +1 -1
- data/grammars/source.bicep.json +1 -1
- data/grammars/source.brs.json +1 -1
- data/grammars/source.cobol.json +1 -1
- data/grammars/source.context.json +1 -0
- data/grammars/source.cs.json +1 -1
- data/grammars/source.curry.json +1 -1
- data/grammars/source.dart.json +1 -1
- data/grammars/source.ditroff.json +1 -1
- data/grammars/source.elvish-transcript.json +1 -0
- data/grammars/source.elvish.in.markdown.json +1 -0
- data/grammars/source.elvish.json +1 -0
- data/grammars/source.fsharp.json +1 -1
- data/grammars/source.ftl.json +1 -1
- data/grammars/source.gdscript.json +1 -1
- data/grammars/source.gdshader.json +1 -1
- data/grammars/source.gemini.json +1 -0
- data/grammars/source.graphql.json +1 -1
- data/grammars/source.hack.json +1 -1
- data/grammars/source.hocon.json +1 -0
- data/grammars/source.jsonnet.json +1 -1
- data/grammars/source.julia.json +1 -1
- data/grammars/source.kusto.json +1 -1
- data/grammars/source.mo.json +1 -1
- data/grammars/source.move.json +1 -1
- data/grammars/source.p4.json +1 -1
- data/grammars/source.pic.json +1 -1
- data/grammars/source.postscript.json +1 -1
- data/grammars/source.ql.json +1 -1
- data/grammars/source.rsc.json +1 -1
- data/grammars/source.scala.json +1 -1
- data/grammars/source.sexp.json +1 -0
- data/grammars/source.stan.json +1 -1
- data/grammars/source.ts.json +1 -1
- data/grammars/source.ts.prismaClientRawSQL.json +1 -0
- data/grammars/source.tsx.json +1 -1
- data/grammars/source.v.json +1 -1
- data/grammars/source.xojo.json +1 -1
- data/grammars/text.adblock.json +1 -0
- data/grammars/text.checksums.json +1 -1
- data/grammars/text.html.liquid.json +1 -1
- data/grammars/text.html.statamic.json +1 -1
- data/grammars/text.info.json +1 -1
- data/grammars/text.marko.json +1 -1
- data/grammars/text.restructuredtext.json +1 -1
- data/grammars/text.roff.json +1 -1
- data/grammars/text.texinfo.json +1 -1
- data/grammars/version +1 -1
- data/lib/linguist/VERSION +1 -1
- data/lib/linguist/generated.rb +2 -2
- data/lib/linguist/generic.yml +1 -0
- data/lib/linguist/heuristics.yml +50 -2
- data/lib/linguist/languages.json +1 -1
- data/lib/linguist/languages.yml +45 -1
- data/lib/linguist/samples.json +1 -1
- metadata +19 -3
data/grammars/source.v.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"V","scopeName":"source.v","patterns":[{"include":"#comments"},{"include":"#function-decl"},{"include":"#as-is"},{"include":"#attributes"},{"include":"#assignment"},{"include":"#module-decl"},{"include":"#import-decl"},{"include":"#hash-decl"},{"include":"#brackets"},{"include":"#builtin-fix"},{"include":"#escaped-fix"},{"include":"#operators"},{"include":"#function-limited-overload-decl"},{"include":"#function-extend-decl"},{"include":"#function-exist"},{"include":"#generic"},{"include":"#constants"},{"include":"#type"},{"include":"#enum"},{"include":"#interface"},{"include":"#struct"},{"include":"#keywords"},{"include":"#storage"},{"include":"#numbers"},{"include":"#strings"},{"include":"#types"},{"include":"#punctuations"},{"include":"#variable-assign"},{"include":"#function-decl"}],"repository":{"as-is":{"begin":"\\s+(as|is)\\s+","end":"([\\w.]*)","beginCaptures":{"1":{"name":"keyword.$1.v"}},"endCaptures":{"1":{"name":"entity.name.alias.v"}}},"assignment":{"name":"meta.definition.variable.v","match":"\\s+((?:\\:|\\+|\\-|\\*|/|\\%|\\\u0026|\\||\\^)?=)\\s+","captures":{"1":{"patterns":[{"include":"#operators"}]}}},"attributes":{"name":"meta.definition.attribute.v","match":"^\\s*((\\[)(deprecated|unsafe_fn|console|heap|debug|manualfree|typedef|live|inline|flag|ref_only|windows_stdcall|direct_array_access)(\\]))","captures":{"1":{"name":"meta.function.attribute.v"},"2":{"name":"punctuation.definition.begin.bracket.square.v"},"3":{"name":"storage.modifier.attribute.v"},"4":{"name":"punctuation.definition.end.bracket.square.v"}}},"brackets":{"patterns":[{"begin":"{","end":"}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.curly.begin.v"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.curly.end.v"}}},{"begin":"\\(","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.round.begin.v"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.round.end.v"}}},{"begin":"\\[","end":"\\]","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.square.begin.v"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.square.end.v"}}}]},"builtin-fix":{"patterns":[{"patterns":[{"name":"storage.modifier.v","match":"(const)(?=\\s*\\()"},{"name":"keyword.$1.v","match":"\\b(fn|type|enum|struct|union|interface|map|assert|sizeof|typeof|__offsetof)\\b(?=\\s*\\()"}]},{"patterns":[{"name":"keyword.control.v","match":"(\\$if|\\$else)(?=\\s*\\()"},{"name":"keyword.control.v","match":"\\b(as|in|is|or|break|continue|default|unsafe|match|if|else|for|go|goto|defer|return|shared|select|rlock|lock|atomic|asm)\\b(?=\\s*\\()"}]},{"patterns":[{"name":"meta.expr.numeric.cast.v","match":"(?\u003c!.)(i?(?:8|16|nt|64|128)|u?(?:16|32|64|128)|f?(?:32|64))(?=\\s*\\()","captures":{"1":{"name":"storage.type.numeric.v"}}},{"name":"meta.expr.bool.cast.v","match":"(bool|byte|byteptr|charptr|voidptr|string|rune|size_t)(?=\\s*\\()","captures":{"1":{"name":"storage.type.$1.v"}}}]}]},"comments":{"patterns":[{"name":"comment.block.documentation.v","begin":"/\\*","end":"\\*/","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.v"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.v"}}},{"name":"comment.line.double-slash.v","begin":"//","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.v"}}}]},"constants":{"name":"constant.language.v","match":"\\b(true|false|none)\\b"},"enum":{"name":"meta.definition.enum.v","match":"^\\s*(?:(pub)?\\s+)?(enum)\\s+(?:\\w+\\.)?(\\w*)","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.enum.v"},"3":{"name":"entity.name.enum.v"}}},"function-decl":{"name":"meta.definition.function.v","match":"^(\\bpub\\b\\s+)?(\\bfn\\b)\\s+(?:\\([^\\)]+\\)\\s+)?(?:(?:C\\.)?)(\\w+)\\s*((?\u003c=[\\w\\s+])(\\\u003c)(\\w+)(\\\u003e))?","captures":{"1":{"name":"storage.modifier.v"},"2":{"name":"keyword.fn.v"},"3":{"name":"entity.name.function.v"},"4":{"patterns":[{"include":"#generic"}]}}},"function-exist":{"name":"meta.support.function.v","match":"(\\w+)((?\u003c=[\\w\\s+])(\\\u003c)(\\w+)(\\\u003e))?(?=\\s*\\()","captures":{"0":{"name":"meta.function.call.v"},"1":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.function.v","match":"\\w+"}]},"2":{"patterns":[{"include":"#generic"}]}}},"function-extend-decl":{"name":"meta.definition.function.v","match":"^\\s*(pub)?\\s*(fn)\\s*(\\()([^\\)]*)(\\))\\s*(?:(?:C\\.)?)(\\w+)\\s*((?\u003c=[\\w\\s+])(\\\u003c)(\\w+)(\\\u003e))?","captures":{"1":{"name":"storage.modifier.v"},"2":{"name":"keyword.fn.v"},"3":{"name":"punctuation.definition.bracket.round.begin.v"},"4":{"patterns":[{"include":"#brackets"},{"include":"#storage"},{"include":"#generic"},{"include":"#types"},{"include":"#punctuation"}]},"5":{"name":"punctuation.definition.bracket.round.end.v"},"6":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.function.v","match":"\\w+"}]},"7":{"patterns":[{"include":"#generic"}]}}},"function-limited-overload-decl":{"name":"meta.definition.function.v","match":"^\\s*(pub)?\\s*(fn)\\s*(\\()([^\\)]*)(\\))\\s*([\\+\\-\\*\\/])?\\s*(\\()([^\\)]*)(\\))\\s*(?:(?:C\\.)?)(\\w+)","captures":{"1":{"name":"storage.modifier.v"},"10":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.function.v","match":"\\w+"}]},"2":{"name":"keyword.fn.v"},"3":{"name":"punctuation.definition.bracket.round.begin.v"},"4":{"patterns":[{"include":"#brackets"},{"include":"#storage"},{"include":"#generic"},{"include":"#types"},{"include":"#punctuation"}]},"5":{"name":"punctuation.definition.bracket.round.end.v"},"6":{"patterns":[{"include":"#operators"}]},"7":{"name":"punctuation.definition.bracket.round.begin.v"},"8":{"patterns":[{"include":"#brackets"},{"include":"#storage"},{"include":"#generic"},{"include":"#types"},{"include":"#punctuation"}]},"9":{"name":"punctuation.definition.bracket.round.end.v"}}},"generic":{"patterns":[{"name":"meta.definition.generic.v","match":"(?\u003c=[\\w\\s+])(\\\u003c)(\\w+)(\\\u003e)","captures":{"1":{"name":"punctuation.definition.bracket.angle.begin.v"},"2":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.generic.v","match":"\\w+"}]},"3":{"name":"punctuation.definition.bracket.angle.end.v"}}}]},"hash-decl":{"name":"markup.bold.v","begin":"^\\s*(#)","end":"$"},"illegal-name":{"name":"invalid.illegal.v","match":"\\d\\w+"},"import-decl":{"name":"meta.import.v","begin":"^\\s*(import)\\s+","end":"([\\w.]+)","beginCaptures":{"1":{"name":"keyword.import.v"}},"endCaptures":{"1":{"name":"entity.name.import.v"}}},"interface":{"name":"meta.definition.interface.v","match":"^\\s*(?:(pub)?\\s+)?(interface)\\s+(\\w*)","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"keyword.interface.v"},"3":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.interface.v","match":"\\w+"}]}}},"keywords":{"patterns":[{"name":"keyword.control.v","match":"(\\$if|\\$else)"},{"name":"keyword.control.v","match":"(?\u003c!@)\\b(as|it|is|in|or|break|continue|default|unsafe|match|if|else|for|go|goto|defer|return|shared|select|rlock|lock|atomic|asm)\\b"},{"name":"keyword.$1.v","match":"(?\u003c!@)\\b(fn|type|typeof|enum|struct|interface|map|assert|sizeof|__offsetof)\\b"}]},"module-decl":{"name":"meta.module.v","begin":"^\\s*(module)\\s+","end":"([\\w.]+)","beginCaptures":{"1":{"name":"keyword.module.v"}},"endCaptures":{"1":{"name":"entity.name.module.v"}}},"numbers":{"patterns":[{"name":"constant.numeric.exponential.v","match":"([0-9]+(_?))+(\\.)([0-9]+[eE][-+]?[0-9]+)"},{"name":"constant.numeric.float.v","match":"([0-9]+(_?))+(\\.)([0-9]+)"},{"name":"constant.numeric.binary.v","match":"(?:0b)(?:(?:[0-1]+)(?:_?))+"},{"name":"constant.numeric.octal.v","match":"(?:0o)(?:(?:[0-7]+)(?:_?))+"},{"name":"constant.numeric.hex.v","match":"(?:0x)(?:(?:[0-9a-fA-F]+)(?:_?))+"},{"name":"constant.numeric.integer.v","match":"(?:(?:[0-9]+)(?:[_]?))+"}]},"operators":{"patterns":[{"name":"keyword.operator.arithmetic.v","match":"(\\+|\\-|\\*|\\/|\\%|\\+\\+|\\-\\-|\\\u003e\\\u003e|\\\u003c\\\u003c)"},{"name":"keyword.operator.relation.v","match":"(\\=\\=|\\!\\=|\\\u003e|\\\u003c|\\\u003e\\=|\\\u003c\\=)"},{"name":"keyword.operator.assignment.v","match":"(\\:\\=|\\=|\\+\\=|\\-\\=|\\*\\=|\\/\\=|\\%\\=|\\\u0026\\=|\\|\\=|\\^\\=|\\~\\=|\\\u0026\\\u0026\\=|\\|\\|\\=|\\\u003e\\\u003e\\=|\\\u003c\\\u003c\\=)"},{"name":"keyword.operator.bitwise.v","match":"(\\\u0026|\\||\\^|\\~|\u003c(?!\u003c)|\u003e(?!\u003e))"},{"name":"keyword.operator.logical.v","match":"(\\\u0026\\\u0026|\\|\\||\\!)"},{"name":"keyword.operator.optional.v","match":"\\?"}]},"punctuation":{"patterns":[{"name":"punctuation.delimiter.period.dot.v","match":"\\."},{"name":"punctuation.delimiter.comma.v","match":","},{"name":"punctuation.separator.key-value.colon.v","match":":"},{"name":"punctuation.definition.other.semicolon.v","match":";"},{"name":"punctuation.definition.other.questionmark.v","match":"\\?"},{"name":"punctuation.hash.v","match":"#"}]},"punctuations":{"patterns":[{"name":"punctuation.accessor.v","match":"(?:\\.)"},{"name":"punctuation.separator.comma.v","match":"(?:,)"}]},"storage":{"name":"storage.modifier.v","match":"\\b(const|mut|pub)\\b"},"string-escaped-char":{"patterns":[{"name":"constant.character.escape.v","match":"\\\\([0-7]{3}|[\\$abfnrtv\\\\'\"]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})"},{"name":"invalid.illegal.unknown-escape.v","match":"\\\\[^0-7\\$xuUabfnrtv\\'\"]"}]},"string-interpolation":{"name":"meta.string.interpolation.v","match":"(\\$([\\w.]+|\\{.*?\\}))","captures":{"1":{"patterns":[{"name":"invalid.illegal.v","match":"\\$\\d[\\.\\w]+"},{"name":"variable.other.interpolated.v","match":"\\$([\\.\\w]+|\\{.*?\\})"}]}}},"string-placeholder":{"name":"constant.other.placeholder.v","match":"%(\\[\\d+\\])?([\\+#\\-0\\x20]{,2}((\\d+|\\*)?(\\.?(\\d+|\\*|(\\[\\d+\\])\\*?)?(\\[\\d+\\])?)?))?[vT%tbcdoqxXUbeEfFgGsp]"},"strings":{"patterns":[{"name":"string.quoted.rune.v","begin":"`","end":"`","patterns":[{"include":"#string-escaped-char"},{"include":"#string-interpolation"},{"include":"#string-placeholder"}]},{"name":"string.quoted.raw.v","begin":"(r)'","end":"'","patterns":[{"include":"#string-interpolation"},{"include":"#string-placeholder"}],"beginCaptures":{"1":{"name":"storage.type.string.v"}}},{"name":"string.quoted.raw.v","begin":"(r)\"","end":"\"","patterns":[{"include":"#string-interpolation"},{"include":"#string-placeholder"}],"beginCaptures":{"1":{"name":"storage.type.string.v"}}},{"name":"string.quoted.v","begin":"(c?)'","end":"'","patterns":[{"include":"#string-escaped-char"},{"include":"#string-interpolation"},{"include":"#string-placeholder"}],"beginCaptures":{"1":{"name":"storage.type.string.v"}}},{"name":"string.quoted.v","begin":"(c?)\"","end":"\"","patterns":[{"include":"#string-escaped-char"},{"include":"#string-interpolation"},{"include":"#string-placeholder"}],"beginCaptures":{"1":{"name":"storage.type.string.v"}}}]},"struct":{"patterns":[{"name":"meta.definition.struct.v","begin":"^\\s*(?:(mut|pub(?:\\s+mut)?|__global)\\s+)?(struct|union)\\s+([\\w.]+)\\s*|({)","end":"\\s*|(})","patterns":[{"include":"#struct-access-modifier"},{"match":"\\b(\\w+)\\s+([\\w\\[\\]\\*\u0026.]+)(?:\\s*(=)\\s*((?:.(?=$|//|/\\*))*+))?","captures":{"1":{"name":"variable.other.property.v"},"2":{"patterns":[{"include":"#numbers"},{"include":"#brackets"},{"include":"#types"},{"name":"storage.type.other.v","match":"\\w+"}]},"3":{"name":"keyword.operator.assignment.v"},"4":{"patterns":[{"include":"$self"}]}}},{"include":"#types"},{"include":"$self"}],"beginCaptures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.struct.v"},"3":{"name":"entity.name.type.v"},"4":{"name":"punctuation.definition.bracket.curly.begin.v"}},"endCaptures":{"1":{"name":"punctuation.definition.bracket.curly.end.v"}}},{"name":"meta.definition.struct.v","match":"^\\s*(?:(mut|pub(?:\\s+mut)?|__global))\\s+?(struct)\\s+(?:\\s+([\\w.]+))?","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.struct.v"},"3":{"name":"entity.name.struct.v"}}}]},"struct-access-modifier":{"match":"(?\u003c=\\s|^)(mut|pub(?:\\s+mut)?|__global)(:|\\b)","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"punctuation.separator.struct.key-value.v"}}},"type":{"name":"meta.definition.type.v","match":"^\\s*(?:(pub)?\\s+)?(type)\\s+(\\w*)\\s+(?:\\w+\\.+)?(\\w*)","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.type.v"},"3":{"patterns":[{"include":"#illegal-name"},{"include":"#types"},{"name":"entity.name.type.v","match":"\\w+"}]},"4":{"patterns":[{"include":"#illegal-name"},{"include":"#types"},{"name":"entity.name.type.v","match":"\\w+"}]}}},"types":{"patterns":[{"name":"storage.type.numeric.v","match":"(?\u003c!\\.)\\b(i(8|16|nt|64|128)|u(8|16|32|64|128)|f(32|64))\\b"},{"name":"storage.type.$1.v","match":"(?\u003c!\\.)\\b(bool|byte|byteptr|charptr|voidptr|string|ustring|rune)\\b"}]},"variable-assign":{"match":"[a-zA-Z_]\\w*(?:,\\s*[a-zA-Z_]\\w*)*(?=\\s*(?:=|:=))","captures":{"0":{"patterns":[{"name":"variable.other.assignment.v","match":"[a-zA-Z_]\\w*"},{"include":"#punctuation"}]}}}}}
|
1
|
+
{"name":"V","scopeName":"source.v","patterns":[{"include":"#comments"},{"include":"#function-decl"},{"include":"#as-is"},{"include":"#attributes"},{"include":"#assignment"},{"include":"#module-decl"},{"include":"#import-decl"},{"include":"#hash-decl"},{"include":"#brackets"},{"include":"#builtin-fix"},{"include":"#escaped-fix"},{"include":"#operators"},{"include":"#function-limited-overload-decl"},{"include":"#function-extend-decl"},{"include":"#function-exist"},{"include":"#generic"},{"include":"#constants"},{"include":"#type"},{"include":"#enum"},{"include":"#interface"},{"include":"#struct"},{"include":"#keywords"},{"include":"#storage"},{"include":"#numbers"},{"include":"#strings"},{"include":"#types"},{"include":"#punctuations"},{"include":"#variable-assign"},{"include":"#function-decl"}],"repository":{"as-is":{"begin":"\\s+(as|is)\\s+","end":"([\\w.]*)","beginCaptures":{"1":{"name":"keyword.$1.v"}},"endCaptures":{"1":{"name":"entity.name.alias.v"}}},"assignment":{"name":"meta.definition.variable.v","match":"\\s+((?:\\:|\\+|\\-|\\*|/|\\%|\\\u0026|\\||\\^)?=)\\s+","captures":{"1":{"patterns":[{"include":"#operators"}]}}},"attributes":{"name":"meta.definition.attribute.v","match":"^\\s*((\\[)(deprecated|unsafe|console|heap|manualfree|typedef|live|inline|flag|ref_only|direct_array_access|callconv)(\\]))","captures":{"1":{"name":"meta.function.attribute.v"},"2":{"name":"punctuation.definition.begin.bracket.square.v"},"3":{"name":"storage.modifier.attribute.v"},"4":{"name":"punctuation.definition.end.bracket.square.v"}}},"brackets":{"patterns":[{"begin":"{","end":"}","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.curly.begin.v"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.curly.end.v"}}},{"begin":"\\(","end":"\\)","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.round.begin.v"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.round.end.v"}}},{"begin":"\\[","end":"\\]","patterns":[{"include":"$self"}],"beginCaptures":{"0":{"name":"punctuation.definition.bracket.square.begin.v"}},"endCaptures":{"0":{"name":"punctuation.definition.bracket.square.end.v"}}}]},"builtin-fix":{"patterns":[{"patterns":[{"name":"storage.modifier.v","match":"(const)(?=\\s*\\()"},{"name":"keyword.$1.v","match":"\\b(fn|type|enum|struct|union|interface|map|assert|sizeof|typeof|__offsetof)\\b(?=\\s*\\()"}]},{"patterns":[{"name":"keyword.control.v","match":"(\\$if|\\$else)(?=\\s*\\()"},{"name":"keyword.control.v","match":"\\b(as|in|is|or|break|continue|default|unsafe|match|if|else|for|go|goto|defer|return|shared|select|rlock|lock|atomic|asm)\\b(?=\\s*\\()"}]},{"patterns":[{"name":"meta.expr.numeric.cast.v","match":"(?\u003c!.)(i?(?:8|16|nt|64|128)|u?(?:16|32|64|128)|f?(?:32|64))(?=\\s*\\()","captures":{"1":{"name":"storage.type.numeric.v"}}},{"name":"meta.expr.bool.cast.v","match":"(bool|byte|byteptr|charptr|voidptr|string|rune|size_t)(?=\\s*\\()","captures":{"1":{"name":"storage.type.$1.v"}}}]}]},"comments":{"patterns":[{"name":"comment.block.documentation.v","begin":"/\\*","end":"\\*/","patterns":[{"include":"#comments"}],"beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.v"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.end.v"}}},{"name":"comment.line.double-slash.v","begin":"//","end":"$","beginCaptures":{"0":{"name":"punctuation.definition.comment.begin.v"}}}]},"constants":{"name":"constant.language.v","match":"\\b(true|false|none)\\b"},"enum":{"name":"meta.definition.enum.v","match":"^\\s*(?:(pub)?\\s+)?(enum)\\s+(?:\\w+\\.)?(\\w*)","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.enum.v"},"3":{"name":"entity.name.enum.v"}}},"function-decl":{"name":"meta.definition.function.v","match":"^(\\bpub\\b\\s+)?(\\bfn\\b)\\s+(?:\\([^\\)]+\\)\\s+)?(?:(?:C\\.)?)(\\w+)\\s*((?\u003c=[\\w\\s+])(\\\u003c)(\\w+)(\\\u003e))?","captures":{"1":{"name":"storage.modifier.v"},"2":{"name":"keyword.fn.v"},"3":{"name":"entity.name.function.v"},"4":{"patterns":[{"include":"#generic"}]}}},"function-exist":{"name":"meta.support.function.v","match":"(\\w+)((?\u003c=[\\w\\s+])(\\\u003c)(\\w+)(\\\u003e))?(?=\\s*\\()","captures":{"0":{"name":"meta.function.call.v"},"1":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.function.v","match":"\\w+"}]},"2":{"patterns":[{"include":"#generic"}]}}},"function-extend-decl":{"name":"meta.definition.function.v","match":"^\\s*(pub)?\\s*(fn)\\s*(\\()([^\\)]*)(\\))\\s*(?:(?:C\\.)?)(\\w+)\\s*((?\u003c=[\\w\\s+])(\\\u003c)(\\w+)(\\\u003e))?","captures":{"1":{"name":"storage.modifier.v"},"2":{"name":"keyword.fn.v"},"3":{"name":"punctuation.definition.bracket.round.begin.v"},"4":{"patterns":[{"include":"#brackets"},{"include":"#storage"},{"include":"#generic"},{"include":"#types"},{"include":"#punctuation"}]},"5":{"name":"punctuation.definition.bracket.round.end.v"},"6":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.function.v","match":"\\w+"}]},"7":{"patterns":[{"include":"#generic"}]}}},"function-limited-overload-decl":{"name":"meta.definition.function.v","match":"^\\s*(pub)?\\s*(fn)\\s*(\\()([^\\)]*)(\\))\\s*([\\+\\-\\*\\/])?\\s*(\\()([^\\)]*)(\\))\\s*(?:(?:C\\.)?)(\\w+)","captures":{"1":{"name":"storage.modifier.v"},"10":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.function.v","match":"\\w+"}]},"2":{"name":"keyword.fn.v"},"3":{"name":"punctuation.definition.bracket.round.begin.v"},"4":{"patterns":[{"include":"#brackets"},{"include":"#storage"},{"include":"#generic"},{"include":"#types"},{"include":"#punctuation"}]},"5":{"name":"punctuation.definition.bracket.round.end.v"},"6":{"patterns":[{"include":"#operators"}]},"7":{"name":"punctuation.definition.bracket.round.begin.v"},"8":{"patterns":[{"include":"#brackets"},{"include":"#storage"},{"include":"#generic"},{"include":"#types"},{"include":"#punctuation"}]},"9":{"name":"punctuation.definition.bracket.round.end.v"}}},"generic":{"patterns":[{"name":"meta.definition.generic.v","match":"(?\u003c=[\\w\\s+])(\\\u003c)(\\w+)(\\\u003e)","captures":{"1":{"name":"punctuation.definition.bracket.angle.begin.v"},"2":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.generic.v","match":"\\w+"}]},"3":{"name":"punctuation.definition.bracket.angle.end.v"}}}]},"hash-decl":{"name":"markup.bold.v","begin":"^\\s*(#)","end":"$"},"illegal-name":{"name":"invalid.illegal.v","match":"\\d\\w+"},"import-decl":{"name":"meta.import.v","begin":"^\\s*(import)\\s+","end":"([\\w.]+)","beginCaptures":{"1":{"name":"keyword.import.v"}},"endCaptures":{"1":{"name":"entity.name.import.v"}}},"interface":{"name":"meta.definition.interface.v","match":"^\\s*(?:(pub)?\\s+)?(interface)\\s+(\\w*)","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"keyword.interface.v"},"3":{"patterns":[{"include":"#illegal-name"},{"name":"entity.name.interface.v","match":"\\w+"}]}}},"keywords":{"patterns":[{"name":"keyword.control.v","match":"(\\$if|\\$else)"},{"name":"keyword.control.v","match":"(?\u003c!@)\\b(as|it|is|in|or|break|continue|default|unsafe|match|if|else|for|go|goto|defer|return|shared|select|rlock|lock|atomic|asm)\\b"},{"name":"keyword.$1.v","match":"(?\u003c!@)\\b(fn|type|typeof|enum|struct|interface|map|assert|sizeof|__offsetof)\\b"}]},"module-decl":{"name":"meta.module.v","begin":"^\\s*(module)\\s+","end":"([\\w.]+)","beginCaptures":{"1":{"name":"keyword.module.v"}},"endCaptures":{"1":{"name":"entity.name.module.v"}}},"numbers":{"patterns":[{"name":"constant.numeric.exponential.v","match":"([0-9]+(_?))+(\\.)([0-9]+[eE][-+]?[0-9]+)"},{"name":"constant.numeric.float.v","match":"([0-9]+(_?))+(\\.)([0-9]+)"},{"name":"constant.numeric.binary.v","match":"(?:0b)(?:(?:[0-1]+)(?:_?))+"},{"name":"constant.numeric.octal.v","match":"(?:0o)(?:(?:[0-7]+)(?:_?))+"},{"name":"constant.numeric.hex.v","match":"(?:0x)(?:(?:[0-9a-fA-F]+)(?:_?))+"},{"name":"constant.numeric.integer.v","match":"(?:(?:[0-9]+)(?:[_]?))+"}]},"operators":{"patterns":[{"name":"keyword.operator.arithmetic.v","match":"(\\+|\\-|\\*|\\/|\\%|\\+\\+|\\-\\-|\\\u003e\\\u003e|\\\u003c\\\u003c)"},{"name":"keyword.operator.relation.v","match":"(\\=\\=|\\!\\=|\\\u003e|\\\u003c|\\\u003e\\=|\\\u003c\\=)"},{"name":"keyword.operator.assignment.v","match":"(\\:\\=|\\=|\\+\\=|\\-\\=|\\*\\=|\\/\\=|\\%\\=|\\\u0026\\=|\\|\\=|\\^\\=|\\~\\=|\\\u0026\\\u0026\\=|\\|\\|\\=|\\\u003e\\\u003e\\=|\\\u003c\\\u003c\\=)"},{"name":"keyword.operator.bitwise.v","match":"(\\\u0026|\\||\\^|\\~|\u003c(?!\u003c)|\u003e(?!\u003e))"},{"name":"keyword.operator.logical.v","match":"(\\\u0026\\\u0026|\\|\\||\\!)"},{"name":"keyword.operator.optional.v","match":"\\?"}]},"punctuation":{"patterns":[{"name":"punctuation.delimiter.period.dot.v","match":"\\."},{"name":"punctuation.delimiter.comma.v","match":","},{"name":"punctuation.separator.key-value.colon.v","match":":"},{"name":"punctuation.definition.other.semicolon.v","match":";"},{"name":"punctuation.definition.other.questionmark.v","match":"\\?"},{"name":"punctuation.hash.v","match":"#"}]},"punctuations":{"patterns":[{"name":"punctuation.accessor.v","match":"(?:\\.)"},{"name":"punctuation.separator.comma.v","match":"(?:,)"}]},"storage":{"name":"storage.modifier.v","match":"\\b(const|mut|pub)\\b"},"string-escaped-char":{"patterns":[{"name":"constant.character.escape.v","match":"\\\\([0-7]{3}|[\\$abfnrtv\\\\'\"]|x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|U[0-9a-fA-F]{8})"},{"name":"invalid.illegal.unknown-escape.v","match":"\\\\[^0-7\\$xuUabfnrtv\\'\"]"}]},"string-interpolation":{"name":"meta.string.interpolation.v","match":"(\\$([\\w.]+|\\{.*?\\}))","captures":{"1":{"patterns":[{"name":"invalid.illegal.v","match":"\\$\\d[\\.\\w]+"},{"name":"variable.other.interpolated.v","match":"\\$([\\.\\w]+|\\{.*?\\})"}]}}},"string-placeholder":{"name":"constant.other.placeholder.v","match":"%(\\[\\d+\\])?([\\+#\\-0\\x20]{,2}((\\d+|\\*)?(\\.?(\\d+|\\*|(\\[\\d+\\])\\*?)?(\\[\\d+\\])?)?))?[vT%tbcdoqxXUbeEfFgGsp]"},"strings":{"patterns":[{"name":"string.quoted.rune.v","begin":"`","end":"`","patterns":[{"include":"#string-escaped-char"},{"include":"#string-interpolation"},{"include":"#string-placeholder"}]},{"name":"string.quoted.raw.v","begin":"(r)'","end":"'","patterns":[{"include":"#string-interpolation"},{"include":"#string-placeholder"}],"beginCaptures":{"1":{"name":"storage.type.string.v"}}},{"name":"string.quoted.raw.v","begin":"(r)\"","end":"\"","patterns":[{"include":"#string-interpolation"},{"include":"#string-placeholder"}],"beginCaptures":{"1":{"name":"storage.type.string.v"}}},{"name":"string.quoted.v","begin":"(c?)'","end":"'","patterns":[{"include":"#string-escaped-char"},{"include":"#string-interpolation"},{"include":"#string-placeholder"}],"beginCaptures":{"1":{"name":"storage.type.string.v"}}},{"name":"string.quoted.v","begin":"(c?)\"","end":"\"","patterns":[{"include":"#string-escaped-char"},{"include":"#string-interpolation"},{"include":"#string-placeholder"}],"beginCaptures":{"1":{"name":"storage.type.string.v"}}}]},"struct":{"patterns":[{"name":"meta.definition.struct.v","begin":"^\\s*(?:(mut|pub(?:\\s+mut)?|__global)\\s+)?(struct|union)\\s+([\\w.]+)\\s*|({)","end":"\\s*|(})","patterns":[{"include":"#struct-access-modifier"},{"match":"\\b(\\w+)\\s+([\\w\\[\\]\\*\u0026.]+)(?:\\s*(=)\\s*((?:.(?=$|//|/\\*))*+))?","captures":{"1":{"name":"variable.other.property.v"},"2":{"patterns":[{"include":"#numbers"},{"include":"#brackets"},{"include":"#types"},{"name":"storage.type.other.v","match":"\\w+"}]},"3":{"name":"keyword.operator.assignment.v"},"4":{"patterns":[{"include":"$self"}]}}},{"include":"#types"},{"include":"$self"}],"beginCaptures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.struct.v"},"3":{"name":"entity.name.type.v"},"4":{"name":"punctuation.definition.bracket.curly.begin.v"}},"endCaptures":{"1":{"name":"punctuation.definition.bracket.curly.end.v"}}},{"name":"meta.definition.struct.v","match":"^\\s*(?:(mut|pub(?:\\s+mut)?|__global))\\s+?(struct)\\s+(?:\\s+([\\w.]+))?","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.struct.v"},"3":{"name":"entity.name.struct.v"}}}]},"struct-access-modifier":{"match":"(?\u003c=\\s|^)(mut|pub(?:\\s+mut)?|__global)(:|\\b)","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"punctuation.separator.struct.key-value.v"}}},"type":{"name":"meta.definition.type.v","match":"^\\s*(?:(pub)?\\s+)?(type)\\s+(\\w*)\\s+(?:\\w+\\.+)?(\\w*)","captures":{"1":{"name":"storage.modifier.$1.v"},"2":{"name":"storage.type.type.v"},"3":{"patterns":[{"include":"#illegal-name"},{"include":"#types"},{"name":"entity.name.type.v","match":"\\w+"}]},"4":{"patterns":[{"include":"#illegal-name"},{"include":"#types"},{"name":"entity.name.type.v","match":"\\w+"}]}}},"types":{"patterns":[{"name":"storage.type.numeric.v","match":"(?\u003c!\\.)\\b(i(8|16|nt|64|128)|u(8|16|32|64|128)|f(32|64))\\b"},{"name":"storage.type.$1.v","match":"(?\u003c!\\.)\\b(bool|byte|byteptr|charptr|voidptr|string|ustring|rune)\\b"}]},"variable-assign":{"match":"[a-zA-Z_]\\w*(?:,\\s*[a-zA-Z_]\\w*)*(?=\\s*(?:=|:=))","captures":{"0":{"patterns":[{"name":"variable.other.assignment.v","match":"[a-zA-Z_]\\w*"},{"include":"#punctuation"}]}}}}}
|
data/grammars/source.xojo.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"xojo","scopeName":"source.xojo","patterns":[{"include":"#comment"},{"include":"#comment-rem"},{"include":"#tags"},{"include":"#string-literal"},{"include":"#
|
1
|
+
{"name":"xojo","scopeName":"source.xojo","patterns":[{"include":"#comment"},{"include":"#comment-rem"},{"include":"#tags"},{"include":"#string-literal"},{"include":"#directives"},{"include":"#keywords-numeric"},{"include":"#keywords-functions"},{"include":"#keywords"},{"include":"#numbers"},{"include":"#numbers-literal"},{"include":"#numbers-binary"}],"repository":{"comment":{"name":"comment","match":"(//|').*$"},"comment-rem":{"name":"comment","match":"(?i)(rem .++)$"},"directives":{"name":"keyword","match":"(?i)#(if|else|elseif|endif|pragma)\\b"},"keywords":{"name":"keyword","match":"\\b(?i)(me|self|super|return|dim|var|const|static|as|if|then|else|elseif|for|next|do|loop|until|while|wend|end if|select case|case|end select|inherits|try|catch|finally|nil|and|or|not|mod|to|downto|new|get|set|end|return|begin)\\b"},"keywords-functions":{"name":"entity.name.function","match":"\\b(?i)(private|protected|public|shared|end)? ?(sub|function|class)(\\s\\w++\\b)?"},"keywords-numeric":{"name":"keyword","match":"\\b(?i)(boolean|integer|double|cgfloat|long|string|color|true|false|(u)*int(8|16|32|64))\\b"},"numbers":{"name":"constant.numeric.xojo","match":"\\b(-)?[0-9.]+\\b"},"numbers-binary":{"name":"constant.numeric.integer","match":"(?i)\u0026b[01]+"},"numbers-literal":{"name":"constant.numeric.integer","match":"(?i)(\u0026h|\u0026c)[0-9a-f]+"},"string-literal":{"name":"string.quoted.double","match":"(\\\".*?\\\")"},"tags":{"name":"entity.name.section","match":"^\\s*#tag.*$"}}}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"name":"Adblock","scopeName":"text.adblock","patterns":[{"include":"#adblockAgent"},{"include":"#preprocessor"},{"include":"#comments"},{"include":"#snippetRulesABP"},{"include":"#cssRules"},{"include":"#scriptletRules"},{"include":"#scriptletRulesUBO"},{"include":"#jsRules"},{"include":"#contentRules"},{"include":"#elemhideRules"},{"include":"#basicRulesNoUrl"},{"include":"#basicRules"}],"repository":{"adblockAgent":{"patterns":[{"match":"^(\\[)([^\\]]+)(\\])\\s*$","captures":{"1":{"name":"punctuation.definition.array.start.ablock.agent"},"2":{"patterns":[{"include":"#adblockData"},{"name":"punctuation.separator","match":";"},{"name":"invalid.illegal","match":".*"}]},"3":{"name":"punctuation.definition.array.end.ablock.agent"}}}]},"adblockData":{"patterns":[{"match":"(?:\\s*)([Aa]d[Bb]lock(?:\\s[Pp]lus)?|u[Bb]lock(?:\\s[Oo]rigin)?|[Aa]d[Gg]uard)(?:\\s+(\\d+(?:\\.\\d+)*+\\+?))?(?:\\s*)","captures":{"1":{"name":"constant.language.agent.adblocker.name"},"2":{"name":"constant.numeric.decimal"}}}]},"appListPipeSeparated":{"patterns":[{"match":"((~?)([a-zA-Z0-9.-_]+)(\\|?))","captures":{"2":{"name":"keyword.other.adblock"},"3":{"name":"string.unquoted.adblock"},"4":{"name":"punctuation.definition.adblock"}}},{"name":"invalid.illegal.app-list","match":".*"}]},"basicRules":{"patterns":[{"match":"^(.+?)((\\$(?!\\/))(.*))?$","captures":{"1":{"patterns":[{"include":"#urlPattern"}]},"3":{"name":"keyword.control.adblock"},"4":{"patterns":[{"include":"#basicRulesOptions"}]}}}]},"basicRulesNoUrl":{"patterns":[{"match":"^(\\$)(.+)$","captures":{"1":{"name":"keyword.control.adblock"},"2":{"patterns":[{"include":"#basicRulesOptions"}]}}}]},"basicRulesOptions":{"patterns":[{"name":"keyword.other.adblock","match":"replace=((\\/)(((\\\\\\/)|[^,/]|(\\\\,))+?)(\\/)(((\\\\\\/)|[^,/]|(\\\\,))*?)(\\/)([a-z]*))","captures":{"1":{"name":"string.regexp.adblock"}}},{"match":"(domain|denyallow)(=)([^,]+)","captures":{"1":{"name":"keyword.other.adblock"},"2":{"name":"keyword.operator.adblock"},"3":{"patterns":[{"include":"#domainListPipeSeparated"}]}}},{"match":"(app)(=)([^,]+)","captures":{"1":{"name":"keyword.other.adblock"},"2":{"name":"keyword.operator.adblock"},"3":{"patterns":[{"include":"#appListPipeSeparated"}]}}},{"match":"(dnstype)(=)([^,]+)","captures":{"1":{"name":"keyword.other.adblock"},"2":{"name":"keyword.operator.adblock"},"3":{"patterns":[{"include":"#dnsTypesPipeSeparated"}]}}},{"match":"(client|ctag)(=)(((\\\\,)|[^,])+)","captures":{"1":{"name":"keyword.other.adblock"},"2":{"name":"keyword.operator.adblock"},"3":{"patterns":[{"include":"#dnsClientsPipeSeparated"}]}}},{"name":"keyword.other.adblock","match":"(redirect|redirect-rule|csp|cookie)(=)(((\\\\,)|[^,])+)","captures":{"1":{"name":"keyword.other.adblock"},"2":{"name":"keyword.operator.adblock"},"3":{"name":"string.unquoted.adblock"}}},{"name":"keyword.other.adblock","match":"(dnsrewrite)(=)(((\\\\,)|[^,])+)","captures":{"1":{"name":"keyword.other.adblock"},"2":{"name":"keyword.operator.adblock"},"3":{"patterns":[{"name":"keyword.other.delimiter","match":";"},{"name":"string.unquoted.adblock","match":"[^;]*"}]}}},{"name":"keyword.other.adblock","match":"(removeheader)(=)(((\\\\,)|[^,])+)","captures":{"1":{"name":"keyword.other.adblock"},"2":{"name":"keyword.operator.adblock"},"3":{"patterns":[{"name":"keyword.other.delimiter","match":":"},{"name":"string.unquoted.adblock","match":"[^:]*"}]}}},{"name":"keyword.other.adblock","match":"(rewrite)(=)(abp-resource:)([^,]+)","captures":{"1":{"name":"keyword.other.adblock"},"2":{"name":"keyword.operator.adblock"},"3":{"name":"keyword.other.adblock"},"4":{"name":"string.unquoted.adblock"}}},{"name":"keyword.other.adblock","match":"(removeparam|queryprune)(=)(~)?(((\\\\,)|[^,])+)","captures":{"1":{"name":"keyword.other.adblock"},"2":{"name":"keyword.operator.adblock"},"3":{"name":"keyword.other.adblock"},"4":{"name":"string.unquoted.adblock"}}},{"name":"keyword.other.adblock","match":"(inline-script|inline-font|mp4|empty|badfilter|genericblock|generichide|network|popup|popunder|important|cookie|csp|replace|stealth|removeparam|queryprune)"},{"name":"keyword.other.adblock","match":"(~?)(xhr|first-party|third-party|match-case|elemhide|content|jsinject|urlblock|document|image|stylesheet|script|object-subrequest|object|font|media|subdocument|xmlhttprequest|websocket|other|webrtc|ping|extension|all|1p|3p|css|frame|ghide|ehide|shide|specifichide)"},{"name":"punctuation.definition.adblock","match":","},{"name":"invalid.illegal.redundant.modifier.separator","match":"\\$"}]},"comments":{"patterns":[{"name":"comment.line","match":"^!.*"},{"name":"comment.line.batch-style","match":"^# .*"},{"name":"comment.line.batch-style","match":"^#$"}]},"contentAttributes":{"patterns":[{"match":"(\\[)([^\"=]+?)(\\=)(\".+?\")(\\])","captures":{"1":{"name":"punctuation.section.adblock"},"2":{"name":"keyword.other.adblock"},"3":{"name":"keyword.operator.adblock"},"4":{"name":"string.quoted.adblock"},"5":{"name":"punctuation.section.adblock"}}},{"name":"invalid.illegal.adblock","match":".*"}]},"contentRules":{"patterns":[{"match":"^(\\[.+?\\])?(.*?)(\\$@?\\$)(.+?)(\\[.+)?$","captures":{"1":{"patterns":[{"include":"#cosmeticRulesOptions"}]},"2":{"patterns":[{"include":"#domainListCommaSeparated"}]},"3":{"name":"keyword.control.adblock"},"4":{"name":"entity.name.function.adblock"},"5":{"patterns":[{"include":"#contentAttributes"}]}}}]},"cosmeticRulesOptions":{"match":"(\\[)(.+?)(\\])","captures":{"1":{"name":"keyword.control.adblock"},"2":{"patterns":[{"match":"(path)(=)(((\\\\,)|[^,])+)","captures":{"1":{"name":"keyword.other.adblock"},"2":{"name":"keyword.operator.adblock"},"3":{"name":"string.unquoted.adblock"}}},{"match":"(domain)(=)([^,]+)","captures":{"1":{"name":"keyword.other.adblock"},"2":{"name":"keyword.operator.adblock"},"3":{"patterns":[{"include":"#domainListPipeSeparated"}]}}},{"match":"(app)(=)([^,]+)","captures":{"1":{"name":"keyword.other.adblock"},"2":{"name":"keyword.operator.adblock"},"3":{"patterns":[{"include":"#appListPipeSeparated"}]}}},{"name":"keyword.control.adblock","match":"\\$"},{"name":"punctuation.definition.adblock","match":","},{"name":"invalid.illegal.adblock","match":".*"}]},"3":{"name":"keyword.control.adblock"}}},"cssRules":{"patterns":[{"match":"^(\\[.+?\\])?(.*?)(#@?\\$\\??#)(.+)$","captures":{"1":{"patterns":[{"include":"#cosmeticRulesOptions"}]},"2":{"patterns":[{"include":"#domainListCommaSeparated"}]},"3":{"name":"keyword.control.adblock"},"4":{"patterns":[{"include":"#cssStyle"}]}}}]},"cssSelector":{"patterns":[{"name":"entity.name.function.adblock","match":".+"}]},"cssStyle":{"patterns":[{"match":"([^{}]+)\\s*((\\{)(.+?)(\\}))","captures":{"1":{"name":"entity.name.function.adblock"},"3":{"name":"punctuation.section.adblock"},"4":{"name":"string.quoted.adblock"},"5":{"name":"punctuation.section.adblock"}}},{"name":"invalid.illegal.adblock","match":".*"}]},"dnsClientsPipeSeparated":{"patterns":[{"match":"((~?)([^|]+)(\\|?))","captures":{"2":{"name":"keyword.other.adblock"},"3":{"name":"string.unquoted.adblock"},"4":{"name":"punctuation.definition.adblock"}}},{"name":"invalid.illegal.app-list","match":".*"}]},"dnsTypesPipeSeparated":{"patterns":[{"match":"((~?)([a-zA-Z0-9.-_]+)(\\|?))","captures":{"2":{"name":"keyword.other.adblock"},"3":{"name":"string.unquoted.adblock"},"4":{"name":"punctuation.definition.adblock"}}},{"name":"invalid.illegal.app-list","match":".*"}]},"domainListCommaSeparated":{"patterns":[{"match":"(~?)([a-zA-Z0-9.*-]+)(,?)","captures":{"1":{"name":"keyword.other.adblock"},"2":{"name":"string.unquoted.adblock"},"3":{"name":"punctuation.definition.adblock"}}},{"name":"invalid.illegal.domain-list","match":".*"}]},"domainListPipeSeparated":{"patterns":[{"match":"(~?)([a-zA-Z0-9.*-]+)(\\|?)","captures":{"1":{"name":"keyword.other.adblock"},"2":{"name":"string.unquoted.adblock"},"3":{"name":"punctuation.definition.adblock"}}},{"name":"invalid.illegal.domain-list","match":".*"}]},"elemhideRules":{"patterns":[{"match":"^(\\[.+?\\])?(.*?)(#@?\\??#\\^?)(.+)$","captures":{"1":{"patterns":[{"include":"#cosmeticRulesOptions"}]},"2":{"patterns":[{"include":"#domainListCommaSeparated"}]},"3":{"name":"keyword.control.adblock"},"4":{"patterns":[{"include":"#cssSelector"}]}}}]},"jsFunction":{"patterns":[{"name":"constant.character.jscode.adblock","match":".+"}]},"jsRules":{"patterns":[{"match":"^(.*?)(#@?%#)(.+)$","captures":{"1":{"patterns":[{"include":"#domainListCommaSeparated"}]},"2":{"name":"keyword.control.adblock"},"3":{"patterns":[{"include":"#jsFunction"}]}}}]},"preprocessor":{"patterns":[{"match":"^(!#if) (.*)$","captures":{"1":{"name":"keyword.preprocessor.directive"},"2":{"patterns":[{"name":"constant.language.platform.name","match":"(adguard_app_windows|adguard_app_mac|adguard_app_android|adguard_app_ios|adguard_ext_chromium|adguard_ext_firefox|adguard_ext_edge|adguard_ext_safari|adguard_ext_opera|adguard_ext_android_cb|adguard|ext_abp|ext_ublock|env_chromium|env_edge|env_firefox|env_mobile|env_safari|false|cap_html_filtering|cap_user_stylesheet)"},{"name":"keyword.control.characters","match":"(\u0026\u0026|!|\\|\\|| )"},{"name":"keyword.control.characters","match":"(\\(|\\))"},{"name":"invalid.illegal","match":".*"}]}}},{"match":"^(!#include) (.*)$","captures":{"1":{"name":"keyword.preprocessor.directive"},"2":{"name":"string.unquoted"}}},{"name":"keyword.preprocessor.directive","match":"^!#endif\\s*$"},{"match":"^(!#safari_cb_affinity)(.*)$","captures":{"1":{"name":"keyword.preprocessor.directive"},"2":{"patterns":[{"name":"constant.language.contentblocker.name","match":"(all|general|privacy|social|security|other|custom)"},{"name":"keyword.control.characters","match":"(\\(|\\)|,)"},{"name":"invalid.illegal","match":".*"}]}}},{"match":"^(!\\+) (.*)$","captures":{"1":{"name":"keyword.preprocessor.hint"},"2":{"patterns":[{"name":"keyword.control.hint.name","match":"(NOT_OPTIMIZED|OPTIMIZED|PLATFORM|NOT_PLATFORM)"},{"name":"constant.language.platform.name","match":"(windows|mac|android|ios|ext_chromium|ext_ff|ext_edge|ext_opera|ext_ublock|ext_safari|ext_android_cb)"},{"name":"keyword.control.characters","match":"(\\(|\\)|,)"}]}}},{"name":"invalid.preprocessor","match":"^!#.+$"}]},"scriptletFunction":{"patterns":[{"match":"((['|\"])(.*?)(?\u003c!\\\\)(\\2))(,\\s*)?","captures":{"1":{"name":"string.quoted.adblock"},"5":{"name":"keyword.operator.adblock"}}},{"name":"invalid.illegal.adblock","match":".*"}]},"scriptletFunctionUBO":{"patterns":[{"match":"([^,]+)(,\\s*)?","captures":{"1":{"name":"string.quoted.adblock"},"2":{"name":"keyword.operator.adblock"}}},{"name":"invalid.illegal.adblock","match":".*"}]},"scriptletRules":{"patterns":[{"match":"^(\\[.+?\\])?(.*?)(#@?%#)(\\/\\/scriptlet)(\\()(.+)(\\)\\s*)$","captures":{"1":{"patterns":[{"include":"#cosmeticRulesOptions"}]},"2":{"patterns":[{"include":"#domainListCommaSeparated"}]},"3":{"name":"keyword.control.adblock"},"4":{"name":"entity.name.function.adblock"},"5":{"name":"punctuation.section.adblock"},"6":{"patterns":[{"include":"#scriptletFunction"}]},"7":{"name":"punctuation.section.adblock"}}}]},"scriptletRulesUBO":{"patterns":[{"match":"^(.*?)(##)(\\+js)(\\()(.+)(\\)\\s*)$","captures":{"1":{"patterns":[{"include":"#domainListCommaSeparated"}]},"2":{"name":"keyword.control.adblock"},"3":{"name":"entity.name.function.adblock"},"4":{"name":"punctuation.section.adblock"},"5":{"patterns":[{"include":"#scriptletFunctionUBO"}]},"6":{"name":"punctuation.section.adblock"}}}]},"snippetRulesABP":{"patterns":[{"match":"^(.*?)(#\\$#)([^{]+)$","captures":{"1":{"patterns":[{"include":"#domainListCommaSeparated"}]},"2":{"name":"keyword.control.adblock"},"3":{"name":"constant.character.snippet.adblock"}}}]},"urlPattern":{"patterns":[{"name":"string.regexp.adblock","match":"^(@@)?(\\/)(.+)\\/$","captures":{"1":{"name":"keyword.other.adblock"}}},{"name":"keyword.other.adblock","match":"^@@\\|?\\|?"},{"name":"keyword.other.adblock","match":"^\\|\\|"},{"name":"keyword.other.adblock","match":"^\\|"},{"name":"keyword.other.adblock","match":"\\|$"},{"name":"keyword.other.adblock","match":"\\^"},{"name":"keyword.other.adblock","match":"\\*"}]}}}
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"Checksums","scopeName":"text.checksums","patterns":[{"include":"#main"}],"repository":{"bsd-style":{"name":"meta.bsd-style.checksum","
|
1
|
+
{"name":"Checksums","scopeName":"text.checksums","patterns":[{"include":"#main"}],"repository":{"bsd-style":{"name":"meta.bsd-style.checksum","begin":"(?ix) (?:^|\\G) \\s*\n(?=[-/A-Z0-9]+\\s*\\(.+?\\)\\s*=\\s*(?:[A-F0-9]+|[A-Za-z0-9+/=]{4,})\\s*$)\n(?=\n\t(?:CRC-?32 \\b .+?=\\s* (?:[A-F0-9]{8} | [A-Za-z0-9+/=]{12} )\n\t| MD[245] \\b .+?=\\s* (?:[A-F0-9]{32} | [A-Za-z0-9+/=]{44} )\n\t| MD6 \\b .+?=\\s* (?:[A-F0-9]{128} | [A-Za-z0-9+/=]{172} )\n\t| SHA-?[01] \\b .+?=\\s* (?:[A-F0-9]{40} | [A-Za-z0-9+/=]{56} )\n\t| SHA-?224 \\b .+?=\\s* (?:[A-F0-9]{56} | [A-Za-z0-9+/=]{76} )\n\t| SHA-?256 \\b .+?=\\s* (?:[A-F0-9]{64} | [A-Za-z0-9+/=]{88} )\n\t| SHA-?384 \\b .+?=\\s* (?:[A-F0-9]{96} | [A-Za-z0-9+/=]{128} )\n\t| SHA-?512 \\b .+?=\\s* (?:[A-F0-9]{128} | [A-Za-z0-9+/=]{172} )\n\t| SHA-?512/224 \\b .+?=\\s* (?:[A-F0-9]{56} | [A-Za-z0-9+/=]{76} )\n\t| SHA-?512/256 \\b .+?=\\s* (?:[A-F0-9]{64} | [A-Za-z0-9+/=]{88} )\n\t| SHA3-?224 \\b .+?=\\s* (?:[A-F0-9]{56} | [A-Za-z0-9+/=]{76} )\n\t| SHA3-?256 \\b .+?=\\s* (?:[A-F0-9]{64} | [A-Za-z0-9+/=]{88} )\n\t| SHA3-?384 \\b .+?=\\s* (?:[A-F0-9]{96} | [A-Za-z0-9+/=]{128} )\n\t| SHA3-?512 \\b .+?=\\s* (?:[A-F0-9]{128} | [A-Za-z0-9+/=]{172} )\n\t| SHAKE-?128 \\b .+?=\\s* (?:[A-F0-9]{64} | [A-Za-z0-9+/=]{88} )\n\t| SHAKE-?256 \\b .+?=\\s* (?:[A-F0-9]{128} | [A-Za-z0-9+/=]{172} )\n\t| (?:RMD|RIPEMD-?)128 \\b .+?=\\s* (?:[A-F0-9]{32} | [A-Za-z0-9+/=]{44} )\n\t| (?:RMD|RIPEMD-?)160 \\b .+?=\\s* (?:[A-F0-9]{40} | [A-Za-z0-9+/=]{56} )\n\t| (?:RMD|RIPEMD-?)256 \\b .+?=\\s* (?:[A-F0-9]{64} | [A-Za-z0-9+/=]{88} )\n\t| (?:RMD|RIPEMD-?)320 \\b .+?=\\s* (?:[A-F0-9]{80} | [A-Za-z0-9+/=]{108} )\n\t| SHA-?2 \\b .*? \\b (?:[A-F0-9]{56} | [A-F0-9]{64}|[A-F0-9]{96}|[A-F0-9]{128})\n\t| SHA-?3 \\b .*? \\b [A-F0-9]+\n\t) \\s* $\n) ","end":"\\b([A-Fa-f0-9]+)(?=\\s*$)|(?=$)","patterns":[{"name":"keyword.operator.hash-function.${1:/downcase}.checksum","match":"\\G([-/A-Za-f0-9]+)(?=\\s|\\()"},{"name":"string.quoted.other.filename.checksum","begin":"(\\()","end":"(\\))(?=\\s*=\\s*[A-Fa-f0-9]+\\s*$)|(?=$)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.checksum"},"1":{"name":"brackethighlighter.round.checksum"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.checksum"},"1":{"name":"brackethighlighter.round.checksum"}}},{"include":"etc#eql"}],"endCaptures":{"1":{"name":"constant.numeric.integer.int.hexadecimal.hex.checksum"}}},"digest":{"patterns":[{"include":"etc#base64"},{"include":"etc#hexNoSign"},{"name":"invalid.illegal.bad-character.checksum","match":"\\S+"}]},"geo-style":{"name":"meta.geo-style.checksum","match":"(?:^|\\G)\\s*(((?:crypt|digest)[1-9]|plain)(:))(?:(?\u003c=\\d:)([A-Za-z0-9+/=]{4,})|(?\u003c=n:)(\\S+))(?=\\s|$)","captures":{"1":{"name":"keyword.operator.encryption-prefix.${2:/downcase}.checksum"},"3":{"patterns":[{"include":"etc#colon"}]},"4":{"patterns":[{"include":"etc#base64"}]},"5":{"name":"constant.other.password.checksum"}}},"gnu-style":{"name":"meta.gnu-style.checksum","match":"^\\s*(?=\\S{24})([A-Za-z0-9+/]=*|[A-Fa-f0-9]+) (?: |(\\*))(\\S.*)","captures":{"1":{"patterns":[{"include":"#digest"}]},"2":{"name":"storage.modifier.binary-mode.checksum"},"3":{"name":"string.unquoted.other.filename.checksum"}}},"isolated":{"name":"constant.numeric.integer.int.hexadecimal.hex.checksum","match":"(?ix) (?:^|\\G)\n( [A-F0-9]{8} # CRC-32\n| [A-F0-9]{32} # MD2 MD4 MD5 RMD128\n| [A-F0-9]{40} # SHA-1 RMD160\n| [A-F0-9]{56} # SHA-224 SHA-512/224 SHA3-224\n| [A-F0-9]{64} # SHA-256 SHA-512/256 SHA3-256 SHAKE128 RMD256\n| [A-F0-9]{80} # RMD320\n| [A-F0-9]{96} # SHA-384 SHA3-384\n| [A-F0-9]{128} # SHA-512 SHA3-512 SHAKE256 MD6\n) \\s*$"},"main":{"patterns":[{"include":"#bsd-style"},{"include":"#gnu-style"},{"include":"#geo-style"},{"include":"#isolated"}]}}}
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"Liquid HTML","scopeName":"text.html.liquid","patterns":[{"include":"#core"}],"repository":{"attribute":{"begin":"\\w+:","end":"(?=,|%}|}}|\\|)","patterns":[{"include":"#value_expression"}],"beginCaptures":{"0":{"name":"entity.other.attribute-name.liquid"}}},"attribute_liquid":{"begin":"\\w+:","end":"(?=,|\\|)|$","patterns":[{"include":"#value_expression"}],"beginCaptures":{"0":{"name":"entity.other.attribute-name.liquid"}}},"comment_block":{"name":"comment.block.liquid","begin":"{%-?\\s*comment\\s*-?%}","end":"{%-?\\s*endcomment\\s*-?%}","patterns":[{"match":"(.(?!{%-?\\s*endcomment\\s*-?%}))*."}]},"comment_inline":{"name":"comment.line.number-sign.liquid","begin":"{%-?\\s*#","end":"-?%}"},"core":{"patterns":[{"include":"#raw_tag"},{"include":"#comment_block"},{"include":"#comment_inline"},{"include":"#style_codefence"},{"include":"#json_codefence"},{"include":"#javascript_codefence"},{"include":"#object"},{"include":"#tag"},{"include":"text.html.basic"}]},"filter":{"match":"\\|\\s*((?![\\.0-9])[a-zA-Z0-9_-]+\\:?)\\s*","captures":{"1":{"name":"support.function.liquid"}}},"injection":{"patterns":[{"include":"#raw_tag"},{"include":"#comment_block"},{"include":"#comment_inline"},{"include":"#object"},{"include":"#tag_injection"}]},"invalid_range":{"name":"invalid.illegal.range.liquid","match":"\\((.(?!\\.\\.))+\\)"},"javascript_codefence":{"name":"meta.block.javascript.liquid","contentName":"meta.embedded.block.js","begin":"({%-?)\\s*(javascript)\\s*(-?%})","end":"({%-?)\\s*(endjavascript)\\s*(-?%})","patterns":[{"include":"source.js"}],"beginCaptures":{"0":{"name":"meta.tag.metadata.javascript.start.liquid"},"1":{"name":"punctuation.definition.tag.begin.liquid"},"2":{"name":"entity.name.tag.javascript.liquid"},"3":{"name":"punctuation.definition.tag.begin.liquid"}},"endCaptures":{"0":{"name":"meta.tag.metadata.javascript.end.liquid"},"1":{"name":"punctuation.definition.tag.end.liquid"},"2":{"name":"entity.name.tag.javascript.liquid"},"3":{"name":"punctuation.definition.tag.end.liquid"}}},"json_codefence":{"name":"meta.block.schema.liquid","contentName":"meta.embedded.block.json","begin":"({%-?)\\s*(schema)\\s*(-?%})","end":"({%-?)\\s*(endschema)\\s*(-?%})","patterns":[{"include":"source.json"}],"beginCaptures":{"0":{"name":"meta.tag.metadata.schema.start.liquid"},"1":{"name":"punctuation.definition.tag.begin.liquid"},"2":{"name":"entity.name.tag.schema.liquid"},"3":{"name":"punctuation.definition.tag.begin.liquid"}},"endCaptures":{"0":{"name":"meta.tag.metadata.schema.end.liquid"},"1":{"name":"punctuation.definition.tag.end.liquid"},"2":{"name":"entity.name.tag.schema.liquid"},"3":{"name":"punctuation.definition.tag.end.liquid"}}},"language_constant":{"name":"constant.language.liquid","match":"\\b(false|true|nil|blank)\\b|empty(?!\\?)"},"number":{"name":"constant.numeric.liquid","match":"((-|\\+)\\s*)?[0-9]+(\\.[0-9]+)?"},"object":{"name":"meta.object.liquid","begin":"(?\u003c!comment %})(?\u003c!comment -%})(?\u003c!comment%})(?\u003c!comment-%})(?\u003c!raw %})(?\u003c!raw -%})(?\u003c!raw%})(?\u003c!raw-%}){{-?","end":"-?}}","patterns":[{"include":"#filter"},{"include":"#attribute"},{"include":"#value_expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.liquid"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.liquid"}}},"operator":{"match":"(?:(?\u003c=\\s)|\\b)(\\=\\=|!\\=|\\\u003e|\\\u003c|\\\u003e\\=|\\\u003c\\=|or|and|contains)(?:(?=\\s)|\\b)","captures":{"1":{"name":"keyword.operator.expression.liquid"}}},"range":{"name":"meta.range.liquid","begin":"\\(","end":"\\)","patterns":[{"name":"punctuation.range.liquid","match":"\\.\\."},{"include":"#variable_lookup"},{"include":"#number"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.liquid"}},"endCaptures":{"0":{"name":"punctuation.section.parens.end.liquid"}}},"raw_tag":{"name":"meta.entity.tag.raw.liquid","contentName":"string.unquoted.liquid","begin":"{%-?\\s*(raw)\\s*-?%}","end":"{%-?\\s*(endraw)\\s*-?%}","patterns":[{"match":"(.(?!{%-?\\s*endraw\\s*-?%}))*."}],"beginCaptures":{"1":{"name":"entity.name.tag.liquid"}},"endCaptures":{"1":{"name":"entity.name.tag.liquid"}}},"string":{"patterns":[{"include":"#string_single"},{"include":"#string_double"}]},"string_double":{"name":"string.quoted.double.liquid","begin":"\"","end":"\""},"string_single":{"name":"string.quoted.single.liquid","begin":"'","end":"'"},"style_codefence":{"name":"meta.block.style.liquid","contentName":"meta.embedded.block.css","begin":"({%-?)\\s*(style)\\s*(-?%})","end":"({%-?)\\s*(endstyle)\\s*(-?%})","patterns":[{"include":"source.css"}],"beginCaptures":{"0":{"name":"meta.tag.metadata.style.start.liquid"},"1":{"name":"punctuation.definition.tag.begin.liquid"},"2":{"name":"entity.name.tag.style.liquid"},"3":{"name":"punctuation.definition.tag.begin.liquid"}},"endCaptures":{"0":{"name":"meta.tag.metadata.style.end.liquid"},"1":{"name":"punctuation.definition.tag.end.liquid"},"2":{"name":"entity.name.tag.style.liquid"},"3":{"name":"punctuation.definition.tag.end.liquid"}}},"tag":{"name":"meta.tag.liquid","begin":"(?\u003c!comment %})(?\u003c!comment -%})(?\u003c!comment%})(?\u003c!comment-%})(?\u003c!raw %})(?\u003c!raw -%})(?\u003c!raw%})(?\u003c!raw-%}){%-?","end":"-?%}","patterns":[{"include":"#tag_body"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.liquid"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.liquid"}}},"tag_assign":{"name":"meta.entity.tag.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(assign|echo)\\b","end":"(?=%})","patterns":[{"include":"#filter"},{"include":"#attribute"},{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"entity.name.tag.liquid"}}},"tag_assign_liquid":{"name":"meta.entity.tag.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(assign|echo)\\b","end":"$","patterns":[{"include":"#filter"},{"include":"#attribute_liquid"},{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"entity.name.tag.liquid"}}},"tag_body":{"patterns":[{"include":"#tag_liquid"},{"include":"#tag_assign"},{"include":"#tag_case"},{"include":"#tag_conditional"},{"include":"#tag_for"},{"include":"#tag_paginate"},{"include":"#tag_render"},{"include":"#tag_tablerow"},{"include":"#tag_expression"}]},"tag_case":{"name":"meta.entity.tag.case.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(case|when)\\b","end":"(?=%})","patterns":[{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"keyword.control.case.liquid"}}},"tag_case_liquid":{"name":"meta.entity.tag.case.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(case|when)\\b","end":"$","patterns":[{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"keyword.control.case.liquid"}}},"tag_comment_liquid":{"name":"comment.block.liquid","begin":"(?:^\\s*)(comment)\\b","end":"(?:^\\s*)(endcomment)\\b"},"tag_conditional":{"name":"meta.entity.tag.conditional.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(if|elsif|unless)\\b","end":"(?=%})","patterns":[{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"keyword.control.conditional.liquid"}}},"tag_conditional_liquid":{"name":"meta.entity.tag.conditional.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(if|elsif|unless)\\b","end":"$","patterns":[{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"keyword.control.conditional.liquid"}}},"tag_expression":{"patterns":[{"include":"#tag_expression_without_arguments"},{"name":"meta.entity.tag.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(\\w+)","end":"(?=%})","patterns":[{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"entity.name.tag.liquid"}}}]},"tag_expression_liquid":{"patterns":[{"include":"#tag_expression_without_arguments"},{"name":"meta.entity.tag.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(\\w+)","end":"$","patterns":[{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"entity.name.tag.liquid"}}}]},"tag_expression_without_arguments":{"patterns":[{"match":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(endunless|endif)\\b","captures":{"1":{"name":"keyword.control.conditional.liquid"}}},{"match":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(endfor|endtablerow|endpaginate)\\b","captures":{"1":{"name":"keyword.control.loop.liquid"}}},{"match":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(endcase)\\b","captures":{"1":{"name":"keyword.control.case.liquid"}}},{"match":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(capture|case|comment|for|form|if|javascript|paginate|schema|style)\\b","captures":{"1":{"name":"keyword.control.other.liquid"}}},{"match":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(endcapture|endcase|endcomment|endfor|endform|endif|endjavascript|endpaginate|endschema|endstyle)\\b","captures":{"1":{"name":"keyword.control.other.liquid"}}},{"match":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(else|break|continue)\\b","captures":{"1":{"name":"keyword.control.other.liquid"}}}]},"tag_for":{"name":"meta.entity.tag.for.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(for)\\b","end":"(?=%})","patterns":[{"include":"#tag_for_body"}],"beginCaptures":{"1":{"name":"keyword.control.for.liquid"}}},"tag_for_body":{"patterns":[{"name":"keyword.control.liquid","match":"\\b(in|reversed)\\b"},{"name":"keyword.control.liquid","match":"\\b(offset|limit):"},{"include":"#value_expression"}]},"tag_for_liquid":{"name":"meta.entity.tag.for.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(for)\\b","end":"$","patterns":[{"include":"#tag_for_body"}],"beginCaptures":{"1":{"name":"keyword.control.for.liquid"}}},"tag_injection":{"name":"meta.tag.liquid","begin":"(?\u003c!comment %})(?\u003c!comment -%})(?\u003c!comment%})(?\u003c!comment-%})(?\u003c!raw %})(?\u003c!raw -%})(?\u003c!raw%})(?\u003c!raw-%}){%-?(?!-?\\s*(endstyle|endjavascript|endcomment|endraw))","end":"-?%}","patterns":[{"include":"#tag_body"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.liquid"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.liquid"}}},"tag_liquid":{"name":"meta.entity.tag.liquid.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(liquid)\\b","end":"(?=%})","patterns":[{"include":"#tag_comment_liquid"},{"include":"#tag_assign_liquid"},{"include":"#tag_case_liquid"},{"include":"#tag_conditional_liquid"},{"include":"#tag_for_liquid"},{"include":"#tag_paginate_liquid"},{"include":"#tag_render_liquid"},{"include":"#tag_tablerow_liquid"},{"include":"#tag_expression_liquid"}],"beginCaptures":{"1":{"name":"keyword.control.liquid.liquid"}}},"tag_paginate":{"name":"meta.entity.tag.paginate.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(paginate)\\b","end":"(?=%})","patterns":[{"include":"#tag_paginate_body"}],"beginCaptures":{"1":{"name":"keyword.control.paginate.liquid"}}},"tag_paginate_body":{"patterns":[{"name":"keyword.control.liquid","match":"\\b(by)\\b"},{"include":"#value_expression"}]},"tag_paginate_liquid":{"name":"meta.entity.tag.paginate.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(paginate)\\b","end":"$","patterns":[{"include":"#tag_paginate_body"}],"beginCaptures":{"1":{"name":"keyword.control.paginate.liquid"}}},"tag_render":{"name":"meta.entity.tag.render.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(render)\\b","end":"(?=%})","patterns":[{"include":"#tag_render_special_keywords"},{"include":"#attribute"},{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"entity.name.tag.render.liquid"}}},"tag_render_liquid":{"name":"meta.entity.tag.render.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(render)\\b","end":"$","patterns":[{"include":"#tag_render_special_keywords"},{"include":"#attribute_liquid"},{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"entity.name.tag.render.liquid"}}},"tag_render_special_keywords":{"name":"keyword.control.other.liquid","match":"\\b(with|as|for)\\b"},"tag_tablerow":{"name":"meta.entity.tag.tablerow.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(tablerow)\\b","end":"(?=%})","patterns":[{"include":"#tag_tablerow_body"}],"beginCaptures":{"1":{"name":"keyword.control.tablerow.liquid"}}},"tag_tablerow_body":{"patterns":[{"name":"keyword.control.liquid","match":"\\b(in)\\b"},{"name":"keyword.control.liquid","match":"\\b(cols|offset|limit):"},{"include":"#value_expression"}]},"tag_tablerow_liquid":{"name":"meta.entity.tag.tablerow.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(tablerow)\\b","end":"$","patterns":[{"include":"#tag_tablerow_body"}],"beginCaptures":{"1":{"name":"keyword.control.tablerow.liquid"}}},"value_expression":{"patterns":[{"match":"(\\[)(\\|)(?=[^\\]]*)(?=\\])","captures":{"2":{"name":"invalid.illegal.filter.liquid"},"3":{"name":"invalid.illegal.filter.liquid"}}},{"name":"invalid.illegal.filter.liquid","match":"(?\u003c=\\s)(\\+|\\-|\\/|\\*)(?=\\s)"},{"include":"#language_constant"},{"include":"#operator"},{"include":"#invalid_range"},{"include":"#range"},{"include":"#number"},{"include":"#string"},{"include":"#variable_lookup"}]},"variable_lookup":{"patterns":[{"name":"variable.language.liquid","match":"\\b(additional_checkout_buttons|address|all_country_option_tags|all_products|article|articles|block|blog|blogs|canonical_url|cart|checkout|collection|collections|comment|content_for_additional_checkout_buttons|content_for_header|content_for_index|content_for_layout|country_option_tags|currency|current_page|current_tags|customer|customer_address|discount_allocation|discount_application|external_video|font|forloop|form|fulfillment|gift_card|handle|image|images|line_item|link|linklist|linklists|location|localization|metafield|model|model_source|order|page|page_description|page_image|page_title|pages|paginate|part|policy|powered_by_link|predictive_search|product|product_option|product_variant|recommendations|request|routes|script|scripts|search|section|selling_plan|selling_plan_allocation|selling_plan_group|settings|shipping_method|shop|shop_locale|store_availability|tablerow|tax_line|template|theme|transaction|unit_price_measurement|variant|video|video_source)\\b"},{"name":"variable.parameter.liquid","match":"((?\u003c=\\w\\:\\s)\\w+)"},{"name":"meta.brackets.liquid","begin":"(?\u003c=\\w)\\[","end":"\\]","patterns":[{"include":"#string"}],"beginCaptures":{"0":{"name":"punctuation.section.brackets.begin.liquid"}},"endCaptures":{"0":{"name":"punctuation.section.brackets.end.liquid"}}},{"name":"variable.other.member.liquid","match":"(?\u003c=(\\w|\\])\\.)([-\\w]+\\??)"},{"name":"punctuation.accessor.liquid","match":"(?\u003c=\\w)\\.(?=\\w)"},{"name":"variable.other.liquid","match":"(?i)[a-z_](\\w|(?:-(?!\\}\\})))*"}]}},"injections":{"L:meta.embedded.block.js, L:meta.embedded.block.css, L:meta.embedded.block.html, L:string.quoted":{"patterns":[{"include":"#injection"}]}}}
|
1
|
+
{"name":"Liquid HTML","scopeName":"text.html.liquid","patterns":[{"include":"#core"}],"repository":{"attribute":{"begin":"\\w+:","end":"(?=,|%}|}}|\\|)","patterns":[{"include":"#value_expression"}],"beginCaptures":{"0":{"name":"entity.other.attribute-name.liquid"}}},"attribute_liquid":{"begin":"\\w+:","end":"(?=,|\\|)|$","patterns":[{"include":"#value_expression"}],"beginCaptures":{"0":{"name":"entity.other.attribute-name.liquid"}}},"comment_block":{"name":"comment.block.liquid","begin":"{%-?\\s*comment\\s*-?%}","end":"{%-?\\s*endcomment\\s*-?%}","patterns":[{"include":"#comment_block"},{"match":"(.(?!{%-?\\s*(comment|endcomment)\\s*-?%}))*."}]},"comment_inline":{"name":"comment.line.number-sign.liquid","begin":"{%-?\\s*#","end":"-?%}"},"core":{"patterns":[{"include":"#raw_tag"},{"include":"#comment_block"},{"include":"#comment_inline"},{"include":"#style_codefence"},{"include":"#json_codefence"},{"include":"#javascript_codefence"},{"include":"#object"},{"include":"#tag"},{"include":"text.html.basic"}]},"filter":{"match":"\\|\\s*((?![\\.0-9])[a-zA-Z0-9_-]+\\:?)\\s*","captures":{"1":{"name":"support.function.liquid"}}},"injection":{"patterns":[{"include":"#raw_tag"},{"include":"#comment_block"},{"include":"#comment_inline"},{"include":"#object"},{"include":"#tag_injection"}]},"invalid_range":{"name":"invalid.illegal.range.liquid","match":"\\((.(?!\\.\\.))+\\)"},"javascript_codefence":{"name":"meta.block.javascript.liquid","contentName":"meta.embedded.block.js","begin":"({%-?)\\s*(javascript)\\s*(-?%})","end":"({%-?)\\s*(endjavascript)\\s*(-?%})","patterns":[{"include":"source.js"}],"beginCaptures":{"0":{"name":"meta.tag.metadata.javascript.start.liquid"},"1":{"name":"punctuation.definition.tag.begin.liquid"},"2":{"name":"entity.name.tag.javascript.liquid"},"3":{"name":"punctuation.definition.tag.begin.liquid"}},"endCaptures":{"0":{"name":"meta.tag.metadata.javascript.end.liquid"},"1":{"name":"punctuation.definition.tag.end.liquid"},"2":{"name":"entity.name.tag.javascript.liquid"},"3":{"name":"punctuation.definition.tag.end.liquid"}}},"json_codefence":{"name":"meta.block.schema.liquid","contentName":"meta.embedded.block.json","begin":"({%-?)\\s*(schema)\\s*(-?%})","end":"({%-?)\\s*(endschema)\\s*(-?%})","patterns":[{"include":"source.json"}],"beginCaptures":{"0":{"name":"meta.tag.metadata.schema.start.liquid"},"1":{"name":"punctuation.definition.tag.begin.liquid"},"2":{"name":"entity.name.tag.schema.liquid"},"3":{"name":"punctuation.definition.tag.begin.liquid"}},"endCaptures":{"0":{"name":"meta.tag.metadata.schema.end.liquid"},"1":{"name":"punctuation.definition.tag.end.liquid"},"2":{"name":"entity.name.tag.schema.liquid"},"3":{"name":"punctuation.definition.tag.end.liquid"}}},"language_constant":{"name":"constant.language.liquid","match":"\\b(false|true|nil|blank)\\b|empty(?!\\?)"},"number":{"name":"constant.numeric.liquid","match":"((-|\\+)\\s*)?[0-9]+(\\.[0-9]+)?"},"object":{"name":"meta.object.liquid","begin":"(?\u003c!comment %})(?\u003c!comment -%})(?\u003c!comment%})(?\u003c!comment-%})(?\u003c!raw %})(?\u003c!raw -%})(?\u003c!raw%})(?\u003c!raw-%}){{-?","end":"-?}}","patterns":[{"include":"#filter"},{"include":"#attribute"},{"include":"#value_expression"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.liquid"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.liquid"}}},"operator":{"match":"(?:(?\u003c=\\s)|\\b)(\\=\\=|!\\=|\\\u003e|\\\u003c|\\\u003e\\=|\\\u003c\\=|or|and|contains)(?:(?=\\s)|\\b)","captures":{"1":{"name":"keyword.operator.expression.liquid"}}},"range":{"name":"meta.range.liquid","begin":"\\(","end":"\\)","patterns":[{"name":"punctuation.range.liquid","match":"\\.\\."},{"include":"#variable_lookup"},{"include":"#number"}],"beginCaptures":{"0":{"name":"punctuation.section.parens.begin.liquid"}},"endCaptures":{"0":{"name":"punctuation.section.parens.end.liquid"}}},"raw_tag":{"name":"meta.entity.tag.raw.liquid","contentName":"string.unquoted.liquid","begin":"{%-?\\s*(raw)\\s*-?%}","end":"{%-?\\s*(endraw)\\s*-?%}","patterns":[{"match":"(.(?!{%-?\\s*endraw\\s*-?%}))*."}],"beginCaptures":{"1":{"name":"entity.name.tag.liquid"}},"endCaptures":{"1":{"name":"entity.name.tag.liquid"}}},"string":{"patterns":[{"include":"#string_single"},{"include":"#string_double"}]},"string_double":{"name":"string.quoted.double.liquid","begin":"\"","end":"\""},"string_single":{"name":"string.quoted.single.liquid","begin":"'","end":"'"},"style_codefence":{"name":"meta.block.style.liquid","contentName":"meta.embedded.block.css","begin":"({%-?)\\s*(style)\\s*(-?%})","end":"({%-?)\\s*(endstyle)\\s*(-?%})","patterns":[{"include":"source.css"}],"beginCaptures":{"0":{"name":"meta.tag.metadata.style.start.liquid"},"1":{"name":"punctuation.definition.tag.begin.liquid"},"2":{"name":"entity.name.tag.style.liquid"},"3":{"name":"punctuation.definition.tag.begin.liquid"}},"endCaptures":{"0":{"name":"meta.tag.metadata.style.end.liquid"},"1":{"name":"punctuation.definition.tag.end.liquid"},"2":{"name":"entity.name.tag.style.liquid"},"3":{"name":"punctuation.definition.tag.end.liquid"}}},"tag":{"name":"meta.tag.liquid","begin":"(?\u003c!comment %})(?\u003c!comment -%})(?\u003c!comment%})(?\u003c!comment-%})(?\u003c!raw %})(?\u003c!raw -%})(?\u003c!raw%})(?\u003c!raw-%}){%-?","end":"-?%}","patterns":[{"include":"#tag_body"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.liquid"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.liquid"}}},"tag_assign":{"name":"meta.entity.tag.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(assign|echo)\\b","end":"(?=%})","patterns":[{"include":"#filter"},{"include":"#attribute"},{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"entity.name.tag.liquid"}}},"tag_assign_liquid":{"name":"meta.entity.tag.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(assign|echo)\\b","end":"$","patterns":[{"include":"#filter"},{"include":"#attribute_liquid"},{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"entity.name.tag.liquid"}}},"tag_body":{"patterns":[{"include":"#tag_liquid"},{"include":"#tag_assign"},{"include":"#tag_case"},{"include":"#tag_conditional"},{"include":"#tag_for"},{"include":"#tag_paginate"},{"include":"#tag_render"},{"include":"#tag_tablerow"},{"include":"#tag_expression"}]},"tag_case":{"name":"meta.entity.tag.case.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(case|when)\\b","end":"(?=%})","patterns":[{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"keyword.control.case.liquid"}}},"tag_case_liquid":{"name":"meta.entity.tag.case.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(case|when)\\b","end":"$","patterns":[{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"keyword.control.case.liquid"}}},"tag_comment_liquid":{"name":"comment.block.liquid","begin":"(?:^\\s*)(comment)\\b","end":"(?:^\\s*)(endcomment)\\b"},"tag_conditional":{"name":"meta.entity.tag.conditional.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(if|elsif|unless)\\b","end":"(?=%})","patterns":[{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"keyword.control.conditional.liquid"}}},"tag_conditional_liquid":{"name":"meta.entity.tag.conditional.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(if|elsif|unless)\\b","end":"$","patterns":[{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"keyword.control.conditional.liquid"}}},"tag_expression":{"patterns":[{"include":"#tag_expression_without_arguments"},{"name":"meta.entity.tag.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(\\w+)","end":"(?=%})","patterns":[{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"entity.name.tag.liquid"}}}]},"tag_expression_liquid":{"patterns":[{"include":"#tag_expression_without_arguments"},{"name":"meta.entity.tag.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(\\w+)","end":"$","patterns":[{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"entity.name.tag.liquid"}}}]},"tag_expression_without_arguments":{"patterns":[{"match":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(endunless|endif)\\b","captures":{"1":{"name":"keyword.control.conditional.liquid"}}},{"match":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(endfor|endtablerow|endpaginate)\\b","captures":{"1":{"name":"keyword.control.loop.liquid"}}},{"match":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(endcase)\\b","captures":{"1":{"name":"keyword.control.case.liquid"}}},{"match":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(capture|case|comment|for|form|if|javascript|paginate|schema|style)\\b","captures":{"1":{"name":"keyword.control.other.liquid"}}},{"match":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(endcapture|endcase|endcomment|endfor|endform|endif|endjavascript|endpaginate|endschema|endstyle)\\b","captures":{"1":{"name":"keyword.control.other.liquid"}}},{"match":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(else|break|continue)\\b","captures":{"1":{"name":"keyword.control.other.liquid"}}}]},"tag_for":{"name":"meta.entity.tag.for.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(for)\\b","end":"(?=%})","patterns":[{"include":"#tag_for_body"}],"beginCaptures":{"1":{"name":"keyword.control.for.liquid"}}},"tag_for_body":{"patterns":[{"name":"keyword.control.liquid","match":"\\b(in|reversed)\\b"},{"name":"keyword.control.liquid","match":"\\b(offset|limit):"},{"include":"#value_expression"}]},"tag_for_liquid":{"name":"meta.entity.tag.for.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(for)\\b","end":"$","patterns":[{"include":"#tag_for_body"}],"beginCaptures":{"1":{"name":"keyword.control.for.liquid"}}},"tag_injection":{"name":"meta.tag.liquid","begin":"(?\u003c!comment %})(?\u003c!comment -%})(?\u003c!comment%})(?\u003c!comment-%})(?\u003c!raw %})(?\u003c!raw -%})(?\u003c!raw%})(?\u003c!raw-%}){%-?(?!-?\\s*(endstyle|endjavascript|endcomment|endraw))","end":"-?%}","patterns":[{"include":"#tag_body"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.liquid"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.liquid"}}},"tag_liquid":{"name":"meta.entity.tag.liquid.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(liquid)\\b","end":"(?=%})","patterns":[{"include":"#tag_comment_liquid"},{"include":"#tag_assign_liquid"},{"include":"#tag_case_liquid"},{"include":"#tag_conditional_liquid"},{"include":"#tag_for_liquid"},{"include":"#tag_paginate_liquid"},{"include":"#tag_render_liquid"},{"include":"#tag_tablerow_liquid"},{"include":"#tag_expression_liquid"}],"beginCaptures":{"1":{"name":"keyword.control.liquid.liquid"}}},"tag_paginate":{"name":"meta.entity.tag.paginate.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(paginate)\\b","end":"(?=%})","patterns":[{"include":"#tag_paginate_body"}],"beginCaptures":{"1":{"name":"keyword.control.paginate.liquid"}}},"tag_paginate_body":{"patterns":[{"name":"keyword.control.liquid","match":"\\b(by)\\b"},{"include":"#value_expression"}]},"tag_paginate_liquid":{"name":"meta.entity.tag.paginate.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(paginate)\\b","end":"$","patterns":[{"include":"#tag_paginate_body"}],"beginCaptures":{"1":{"name":"keyword.control.paginate.liquid"}}},"tag_render":{"name":"meta.entity.tag.render.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(render)\\b","end":"(?=%})","patterns":[{"include":"#tag_render_special_keywords"},{"include":"#attribute"},{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"entity.name.tag.render.liquid"}}},"tag_render_liquid":{"name":"meta.entity.tag.render.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(render)\\b","end":"$","patterns":[{"include":"#tag_render_special_keywords"},{"include":"#attribute_liquid"},{"include":"#value_expression"}],"beginCaptures":{"1":{"name":"entity.name.tag.render.liquid"}}},"tag_render_special_keywords":{"name":"keyword.control.other.liquid","match":"\\b(with|as|for)\\b"},"tag_tablerow":{"name":"meta.entity.tag.tablerow.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(tablerow)\\b","end":"(?=%})","patterns":[{"include":"#tag_tablerow_body"}],"beginCaptures":{"1":{"name":"keyword.control.tablerow.liquid"}}},"tag_tablerow_body":{"patterns":[{"name":"keyword.control.liquid","match":"\\b(in)\\b"},{"name":"keyword.control.liquid","match":"\\b(cols|offset|limit):"},{"include":"#value_expression"}]},"tag_tablerow_liquid":{"name":"meta.entity.tag.tablerow.liquid","begin":"(?:(?:(?\u003c={%)|(?\u003c={%-)|^)\\s*)(tablerow)\\b","end":"$","patterns":[{"include":"#tag_tablerow_body"}],"beginCaptures":{"1":{"name":"keyword.control.tablerow.liquid"}}},"value_expression":{"patterns":[{"match":"(\\[)(\\|)(?=[^\\]]*)(?=\\])","captures":{"2":{"name":"invalid.illegal.filter.liquid"},"3":{"name":"invalid.illegal.filter.liquid"}}},{"name":"invalid.illegal.filter.liquid","match":"(?\u003c=\\s)(\\+|\\-|\\/|\\*)(?=\\s)"},{"include":"#language_constant"},{"include":"#operator"},{"include":"#invalid_range"},{"include":"#range"},{"include":"#number"},{"include":"#string"},{"include":"#variable_lookup"}]},"variable_lookup":{"patterns":[{"name":"variable.language.liquid","match":"\\b(additional_checkout_buttons|address|all_country_option_tags|all_products|article|articles|block|blog|blogs|canonical_url|cart|checkout|collection|collections|comment|content_for_additional_checkout_buttons|content_for_header|content_for_index|content_for_layout|country_option_tags|currency|current_page|current_tags|customer|customer_address|discount_allocation|discount_application|external_video|font|forloop|form|fulfillment|gift_card|handle|image|images|line_item|link|linklist|linklists|location|localization|metafield|model|model_source|order|page|page_description|page_image|page_title|pages|paginate|part|policy|powered_by_link|predictive_search|product|product_option|product_variant|recommendations|request|routes|script|scripts|search|section|selling_plan|selling_plan_allocation|selling_plan_group|settings|shipping_method|shop|shop_locale|store_availability|tablerow|tax_line|template|theme|transaction|unit_price_measurement|variant|video|video_source)\\b"},{"name":"variable.parameter.liquid","match":"((?\u003c=\\w\\:\\s)\\w+)"},{"name":"meta.brackets.liquid","begin":"(?\u003c=\\w)\\[","end":"\\]","patterns":[{"include":"#string"}],"beginCaptures":{"0":{"name":"punctuation.section.brackets.begin.liquid"}},"endCaptures":{"0":{"name":"punctuation.section.brackets.end.liquid"}}},{"name":"variable.other.member.liquid","match":"(?\u003c=(\\w|\\])\\.)([-\\w]+\\??)"},{"name":"punctuation.accessor.liquid","match":"(?\u003c=\\w)\\.(?=\\w)"},{"name":"variable.other.liquid","match":"(?i)[a-z_](\\w|(?:-(?!\\}\\})))*"}]}},"injections":{"L:meta.embedded.block.js, L:meta.embedded.block.css, L:meta.embedded.block.html, L:string.quoted":{"patterns":[{"include":"#injection"}]}}}
|
@@ -1 +1 @@
|
|
1
|
-
{"name":"Antlers (Statamic Syntax)","scopeName":"text.html.statamic","patterns":[{"include":"#php-tag"},{"include":"#statamic-comments"},{"include":"#frontMatter"},{"include":"#antlers-tags"}],"repository":{"antlers-conditionals":{"name":"keyword.control.statamic","match":"(?\u003c!:)(/?else|/?elseif|/?if|/?unless|endif|endunless|unlesselse|stop)"},"antlers-constants":{"match":"(\\G|\\s|\\b)(true|TRUE|false|FALSE|yes|YES|no|NO|null|as)\\s","captures":{"2":{"name":"constant.language.statamic"}}},"antlers-expression":{"patterns":[{"name":"punctuation.terminator.expression.statamic","match":";"},{"include":"#antlers-strings"},{"include":"#antlers-numbers"},{"name":"keyword.operator.key.statamic","match":"=\u003e"},{"name":"keyword.operator.class.statamic","match":"-\u003e"},{"include":"#statamic-explicit-tags"},{"include":"#statamic-core-tags"},{"name":"keyword.operator.comparison.statamic","match":"===|==|!==|!=|\u003c\u003e"},{"name":"keyword.operator.string.statamic","match":"\\\u0026=?"},{"name":"keyword.operator.assignment.statamic","match":"=|\\+=|\\-=|\\*\\*?=|/=|%=|\\|=|\\^=|\u003c\u003c=|\u003e\u003e="},{"name":"keyword.operator.logical.statamic","match":"(?i)(!|\\?\\?|\\?=|\\?|\u0026\u0026|\u0026|\\|\\|)|\\b(and|or|xor)\\b"},{"name":"keyword.operator.bitwise.statamic","match":"(?i)\\b(bwa|bwo|bxor|bnot|bsl|bsr)\\b"},{"name":"keyword.operator.comparison.statamic","match":"\u003c=\u003e|\u003c=|\u003e=|\u003c|\u003e"},{"name":"keyword.operator.arithmetic.statamic","match":"\\-|\\+|\\*\\*?|/|%"},{"name":"meta.array.statamic","begin":"(arr|list|switch)\\s*(\\()","end":"\\)|(?=\\?\u003e)","patterns":[{"include":"#antlers-expression"}],"beginCaptures":{"1":{"name":"support.function.construct.statamic"},"2":{"name":"punctuation.definition.array.begin.bracket.round.statamic"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.bracket.round.statamic"}}},{"begin":"(?\u003c!@){(\\s?)","end":"(\\s?)}","patterns":[{"include":"#antlers-expression"}]},{"include":"#antlers-tag-parameter-variable"},{"include":"#antlers-language-operators"},{"include":"#antlers-variable"},{"include":"#antlers-modifier-pipe"},{"include":"#antlers-variable-modifier-name"},{"include":"#antlers-variable-modifiers"},{"include":"#antlers-constants"}]},"antlers-language-operators":{"match":"(\\w+)[\\s]","captures":{"1":{"name":"variable.statamic","patterns":[{"include":"#antlers-numbers"},{"include":"#language-operators"}]}}},"antlers-modifier-pipe":{"name":"keyword.operator.other.statamic","match":"(\\|)"},"antlers-numbers":{"name":"constant.numeric.statamic","match":"0|[1-9](?:_?[0-9]+)*"},"antlers-strings":{"patterns":[{"include":"#string-double-quoted"},{"include":"#string-single-quoted"}]},"antlers-tag-parameter-variable":{"match":"(:?([\\S:]+?)(=)('|\")([^\\4]*?)(\\4))","captures":{"1":{"patterns":[{"match":":([\\S:]+?)(=)('|\")(.*?)(\\3)","captures":{"1":{"name":"entity.other.attribute-name"},"2":{"name":"keyword.operator.assignment.statamic"},"3":{"name":"punctuation.definition.string.begin.statamic"},"4":{"patterns":[{"include":"#antlers-expression"}]},"5":{"name":"punctuation.definition.string.end.statamic"}}},{"match":"([\\S]+?)(=)(('|\")(.*?)(\\4))","captures":{"1":{"name":"entity.other.attribute-name"},"2":{"name":"keyword.operator.assignment.statamic"},"3":{"patterns":[{"include":"#string-single-quoted"},{"include":"#string-double-quoted"}]}}}]}}},"antlers-tags":{"name":"meta.embedded.block.statamic","begin":"(?\u003c!@){{(?!\\$)(\\s?)","end":"(\\s?)}}","patterns":[{"include":"#statamic-comments"},{"include":"#php-tag"},{"include":"#antlers-conditionals"},{"include":"#antlers-expression"}]},"antlers-variable":{"match":"(/?\\w+)(:)?(\\w+)?","captures":{"1":{"name":"variable.statamic"},"2":{"name":"keyword.operator.statamic"},"3":{"name":"variable.statamic","patterns":[{"include":"$self"}]}}},"antlers-variable-modifier-name":{"match":"(\\s)?(\\|)(\\s)?(\\w+((^:([a-zA-Z0-9-_/-@]+)){1,2})?|((-|\\+|\\*|/|\\^|\\%):(\\d*)?\\.?(\\d+)))+","captures":{"2":{"name":"keyword.operator.statamic"},"4":{"name":"support.function.statamic"}}},"antlers-variable-modifiers":{"match":"(\\s)?(\\|)(\\s)?(\\w+((:([a-zA-Z0-9-_/-@]+)){1,2})?|((-|\\+|\\*|/|\\^|\\%):(\\d*)?\\.?(\\d+)))+","captures":{"2":{"name":"keyword.operator.statamic"},"4":{"name":"support.function.statamic","patterns":[{"include":"#antlers-expression"}]}}},"core-tag-names":{"patterns":[{"name":"entity.name.tag.statamic","match":"(?i)\\b(taxonomy|collection|asset|vite|mount_url|form|assets|cache|can|dd|ddd|dump|get_content|get_error|get_errors|get_files|glide|in|increment|installed|is|iterate|foreach|link|locales|markdown|member|mix|nav|not_found|404|obfuscate|parent|partial|path|query|range|loop|redirect|relate|rotate|route|scope|section|session|set|structure|svg|theme|trans|trans_choice|user|users|widont|yields|yield|slot|once|noparse|view|stack|push)\\b"}]},"frontMatter":{"contentName":"meta.embedded.block.frontmatter","begin":"\\A-{3}\\s*$","end":"(^|\\G)-{3}|\\.{3}\\s*$","patterns":[{"include":"source.yaml"}]},"language-operators":{"patterns":[{"name":"support.function.array.statamic","match":"(?i)\\b(pluck|take|skip|arr|orderby|groupby|merge|where|switch|bwa|bwo|bxor|bnot|bsl|bsr|if|elseif|else|void)(\\b)"}]},"php-tag":{"patterns":[{"name":"meta.embedded.block.statamic","contentName":"source.php","begin":"\u003c\\?(?i:php|=)?(?![^?]*\\?\u003e)","end":"(\\?)\u003e","patterns":[{"include":"text.html.php"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.statamic"},"1":{"name":"source.php"}}},{"name":"meta.embedded.line.statamic","contentName":"source.php","begin":"(?\u003c!@){{([\\$\\?]\\s?)","end":"(\\s?)[\\$\\?]}}","patterns":[{"include":"text.html.php"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.statamic"},"1":{"name":"source.php"}}},{"name":"meta.embedded.line.statamic","contentName":"source.php","begin":"\u003c\\?(?i:php|=)?","end":"(\\?)\u003e","patterns":[{"include":"text.html.php"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.statamic"},"1":{"name":"source.php"}}}]},"statamic-comments":{"name":"comment.block.statamic","begin":"{{#","end":"#}}"},"statamic-core-closing-tags":{"match":"\\/(\\w+)+","captures":{"1":{"name":"variable.statamic","patterns":[{"include":"#core-tag-names"}]}}},"statamic-core-tags":{"match":"\\G(/?\\w+)+","captures":{"1":{"name":"variable.statamic","patterns":[{"include":"#core-tag-names"}]}}},"statamic-explicit-tags":{"match":"\\G(/?%\\w+)+","captures":{"1":{"name":"entity.name.tag.statamic"}}},"string-double-quoted":{"name":"string.quoted.double.statamic","begin":"\"","end":"\"","patterns":[{"begin":"(?\u003c!@){(\\s?)","end":"(\\s?)}","patterns":[{"include":"#antlers-expression"}]}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.statamic"}}},"string-single-quoted":{"name":"string.quoted.single.statamic","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.statamic","match":"\\\\[\\\\']"},{"begin":"(?\u003c!@){(\\s?)","end":"(\\s?)}","patterns":[{"include":"#antlers-expression"}]}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.statamic"}}}},"injections":{"text.html.statamic":{"patterns":[{"include":"#statamic-comments"},{"include":"#antlers-tags"}]},"text.html.statamic - (meta.embedded | meta.tag | comment.block.statamic), L:(text.html.statamic meta.tag - (comment.block.statamic | meta.embedded.statamic))":{"patterns":[{"include":"text.html.basic"}]},"text.html.statamic - (meta.embedded | meta.tag), L:((text.html.statamic meta.tag) - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.js - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.css - (meta.embedded.block.php | meta.embedded.line.php))":{"patterns":[{"include":"#php-tag"}]}}}
|
1
|
+
{"name":"Antlers (Statamic Syntax)","scopeName":"text.html.statamic","patterns":[{"include":"#php-tag"},{"include":"#statamic-comments"},{"include":"#frontMatter"},{"include":"#antlers-tags"}],"repository":{"antlers-conditionals":{"name":"keyword.control.statamic","match":"(?\u003c!:)(/?else|/?elseif|/?if|/?unless|endif|endunless|unlesselse|stop)"},"antlers-constants":{"match":"(\\G|\\s|\\b)(true|TRUE|false|FALSE|yes|YES|no|NO|null|as)\\s","captures":{"2":{"name":"constant.language.statamic"}}},"antlers-expression":{"patterns":[{"name":"punctuation.terminator.expression.statamic","match":";"},{"include":"#antlers-strings"},{"include":"#antlers-numbers"},{"name":"keyword.operator.key.statamic","match":"=\u003e"},{"name":"keyword.operator.class.statamic","match":"-\u003e"},{"include":"#statamic-explicit-tags"},{"include":"#statamic-core-tags"},{"name":"keyword.operator.comparison.statamic","match":"===|==|!==|!=|\u003c\u003e"},{"name":"keyword.operator.string.statamic","match":"\\\u0026=?"},{"name":"keyword.operator.assignment.statamic","match":"=|\\+=|\\-=|\\*\\*?=|/=|%=|\\|=|\\^=|\u003c\u003c=|\u003e\u003e="},{"name":"keyword.operator.logical.statamic","match":"(?i)(!|\\?\\?|\\?=|\\?|\u0026\u0026|\u0026|\\|\\|)|\\b(and|or|xor)\\b"},{"name":"keyword.operator.bitwise.statamic","match":"(?i)\\b(bwa|bwo|bxor|bnot|bsl|bsr)\\b"},{"name":"keyword.operator.comparison.statamic","match":"\u003c=\u003e|\u003c=|\u003e=|\u003c|\u003e"},{"name":"keyword.operator.arithmetic.statamic","match":"\\-|\\+|\\*\\*?|/|%"},{"name":"meta.array.statamic","begin":"(arr|list|switch)\\s*(\\()","end":"\\)|(?=\\?\u003e)","patterns":[{"include":"#antlers-expression"}],"beginCaptures":{"1":{"name":"support.function.construct.statamic"},"2":{"name":"punctuation.definition.array.begin.bracket.round.statamic"}},"endCaptures":{"0":{"name":"punctuation.definition.array.end.bracket.round.statamic"}}},{"begin":"(?\u003c!@){(\\s?)","end":"(\\s?)}","patterns":[{"include":"#antlers-expression"}]},{"include":"#antlers-tag-parameter-variable"},{"include":"#antlers-language-operators"},{"include":"#antlers-variable"},{"include":"#antlers-modifier-pipe"},{"include":"#antlers-variable-modifier-name"},{"include":"#antlers-variable-modifiers"},{"include":"#antlers-constants"}]},"antlers-language-operators":{"match":"(\\w+)[\\s]","captures":{"1":{"name":"variable.statamic","patterns":[{"include":"#antlers-numbers"},{"include":"#language-operators"}]}}},"antlers-modifier-pipe":{"name":"keyword.operator.other.statamic","match":"(\\|)"},"antlers-numbers":{"name":"constant.numeric.statamic","match":"0|[1-9](?:_?[0-9]+)*"},"antlers-strings":{"patterns":[{"include":"#string-double-quoted"},{"include":"#string-single-quoted"}]},"antlers-tag-parameter-variable":{"match":"(:?([\\S:]+?)(=)('|\")([^\\4]*?)(\\4))","captures":{"1":{"patterns":[{"match":":([\\S:]+?)(=)('|\")(.*?)(\\3)","captures":{"1":{"name":"entity.other.attribute-name"},"2":{"name":"keyword.operator.assignment.statamic"},"3":{"name":"punctuation.definition.string.begin.statamic"},"4":{"patterns":[{"include":"#antlers-expression"}]},"5":{"name":"punctuation.definition.string.end.statamic"}}},{"match":"([\\S]+?)(=)(('|\")(.*?)(\\4))","captures":{"1":{"name":"entity.other.attribute-name"},"2":{"name":"keyword.operator.assignment.statamic"},"3":{"patterns":[{"include":"#string-single-quoted"},{"include":"#string-double-quoted"}]}}}]}}},"antlers-tags":{"name":"meta.embedded.block.statamic","begin":"(?\u003c!@){{(?!\\$)(\\s?)","end":"(\\s?)}}","patterns":[{"include":"#statamic-comments"},{"include":"#php-tag"},{"include":"#antlers-conditionals"},{"include":"#antlers-expression"}]},"antlers-variable":{"match":"(/?\\w+)(:)?(\\w+)?","captures":{"1":{"name":"variable.statamic"},"2":{"name":"keyword.operator.statamic"},"3":{"name":"variable.statamic","patterns":[{"include":"$self"}]}}},"antlers-variable-modifier-name":{"match":"(\\s)?(\\|)(\\s)?(\\w+((^:([a-zA-Z0-9-_/-@]+)){1,2})?|((-|\\+|\\*|/|\\^|\\%):(\\d*)?\\.?(\\d+)))+","captures":{"2":{"name":"keyword.operator.statamic"},"4":{"name":"support.function.statamic"}}},"antlers-variable-modifiers":{"match":"(\\s)?(\\|)(\\s)?(\\w+((:([a-zA-Z0-9-_/-@]+)){1,2})?|((-|\\+|\\*|/|\\^|\\%):(\\d*)?\\.?(\\d+)))+","captures":{"2":{"name":"keyword.operator.statamic"},"4":{"name":"support.function.statamic","patterns":[{"include":"#antlers-expression"}]}}},"core-tag-names":{"patterns":[{"name":"entity.name.tag.statamic","match":"(?i)\\b(taxonomy|user_groups|user_roles|collection|asset|nocache|vite|mount_url|form|assets|cache|can|dd|ddd|dump|get_content|get_error|get_errors|get_files|glide|in|increment|installed|is|iterate|foreach|link|locales|markdown|member|mix|nav|not_found|404|obfuscate|parent|partial|path|query|range|loop|redirect|relate|rotate|route|scope|section|session|set|structure|svg|theme|trans|trans_choice|user|users|widont|yields|yield|slot|once|noparse|view|stack|push)\\b"}]},"frontMatter":{"contentName":"meta.embedded.block.frontmatter","begin":"\\A-{3}\\s*$","end":"(^|\\G)-{3}|\\.{3}\\s*$","patterns":[{"include":"source.yaml"}]},"language-operators":{"patterns":[{"name":"support.function.array.statamic","match":"(?i)\\b(pluck|take|skip|arr|orderby|groupby|merge|where|switch|bwa|bwo|bxor|bnot|bsl|bsr|if|elseif|else|void)(\\b)"}]},"php-tag":{"patterns":[{"name":"meta.embedded.block.statamic","contentName":"source.php","begin":"\u003c\\?(?i:php|=)?(?![^?]*\\?\u003e)","end":"(\\?)\u003e","patterns":[{"include":"text.html.php"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.statamic"},"1":{"name":"source.php"}}},{"name":"meta.embedded.line.statamic","contentName":"source.php","begin":"(?\u003c!@){{([\\$\\?]\\s?)","end":"(\\s?)[\\$\\?]}}","patterns":[{"include":"text.html.php"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.statamic"},"1":{"name":"source.php"}}},{"name":"meta.embedded.line.statamic","contentName":"source.php","begin":"\u003c\\?(?i:php|=)?","end":"(\\?)\u003e","patterns":[{"include":"text.html.php"}],"beginCaptures":{"0":{"name":"punctuation.section.embedded.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.end.statamic"},"1":{"name":"source.php"}}}]},"statamic-comments":{"name":"comment.block.statamic","begin":"{{#","end":"#}}"},"statamic-core-closing-tags":{"match":"\\/(\\w+)+","captures":{"1":{"name":"variable.statamic","patterns":[{"include":"#core-tag-names"}]}}},"statamic-core-tags":{"match":"\\G(/?\\w+)+","captures":{"1":{"name":"variable.statamic","patterns":[{"include":"#core-tag-names"}]}}},"statamic-explicit-tags":{"match":"\\G(/?%\\w+)+","captures":{"1":{"name":"entity.name.tag.statamic"}}},"string-double-quoted":{"name":"string.quoted.double.statamic","begin":"\"","end":"\"","patterns":[{"begin":"(?\u003c!@){(\\s?)","end":"(\\s?)}","patterns":[{"include":"#antlers-expression"}]}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.statamic"}}},"string-single-quoted":{"name":"string.quoted.single.statamic","begin":"'","end":"'","patterns":[{"name":"constant.character.escape.statamic","match":"\\\\[\\\\']"},{"begin":"(?\u003c!@){(\\s?)","end":"(\\s?)}","patterns":[{"include":"#antlers-expression"}]}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.statamic"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.statamic"}}}},"injections":{"text.html.statamic":{"patterns":[{"include":"#statamic-comments"},{"include":"#antlers-tags"}]},"text.html.statamic - (meta.embedded | meta.tag | comment.block.statamic), L:(text.html.statamic meta.tag - (comment.block.statamic | meta.embedded.statamic))":{"patterns":[{"include":"text.html.basic"}]},"text.html.statamic - (meta.embedded | meta.tag), L:((text.html.statamic meta.tag) - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.js - (meta.embedded.block.php | meta.embedded.line.php)), L:(source.css - (meta.embedded.block.php | meta.embedded.line.php))":{"patterns":[{"include":"#php-tag"}]}}}
|
data/grammars/text.info.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"Info","scopeName":"text.info","patterns":[{"include":"#main"}],"repository":{"border":{"name":"markup.heading.info","match":"^((?:\\*|=|-){2,})[ \\t]*$","captures":{"1":{"name":"punctuation.definition.heading.info"}}},"dir":{"patterns":[{"name":"meta.dir-section.info","begin":"^INFO-DIR-SECTION(?=\\s|$)","end":"[^\\s\\x1F][^\\x1F]*","beginCaptures":{"0":{"name":"keyword.operator.dir-section.info"}},"endCaptures":{"0":{"name":"entity.name.dir-section.info"}}},{"name":"meta.dir-entry.info","begin":"^START-INFO-DIR-ENTRY(?=\\s|$)","end":"^END-INFO-DIR-ENTRY(?=\\s|$)","patterns":[{"include":"#menuItem"}],"beginCaptures":{"0":{"name":"keyword.operator.dir-entry.begin.info"}},"endCaptures":{"0":{"name":"keyword.operator.dir-entry.end.info"}}}]},"escape":{"name":"string.quoted.other.info","begin":"\\x7F(?=.*?\\x7F)","end":"\\x7F","beginCaptures":{"0":{"name":"punctuation.definition.escape.c0.ctrl-char.delete.begin.info"}},"endCaptures":{"0":{"name":"punctuation.definition.escape.c0.ctrl-char.delete.end.info"}}},"image":{"name":"meta.image.info","begin":"(\\x00)(\\x08)(\\[)(image)","end":"(\\x00)(\\x08)(\\])","patterns":[{"name":"meta.$1-attribute.info","begin":"([a-z]+)(=)","end":"((?!\")[^\\s\\x00]+)|(?\u003c=\")|(?=\\x00\\x08\\])","patterns":[{"name":"string.quoted.double.info","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.backslash.info","match":"(\\\\).","captures":{"1":{"name":"punctuation.definition.escape.info"}}}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.info"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.info"}}}],"beginCaptures":{"1":{"name":"entity.other.attribute-name.info"},"2":{"name":"punctuation.separator.key-value.info"}},"endCaptures":{"1":{"name":"string.unquoted.info"}}},{"name":"invalid.illegal.bad-attribute.info","match":"[^\\s\\x00]+"}],"beginCaptures":{"1":{"name":"punctuation.c0.ctrl-char.null-byte.info"},"2":{"name":"punctuation.c0.ctrl-char.backspace.info"},"3":{"name":"punctuation.definition.image.begin.info"},"4":{"name":"storage.type.image.info"}},"endCaptures":{"1":{"name":"punctuation.c0.ctrl-char.null-byte.info"},"2":{"name":"punctuation.c0.ctrl-char.backspace.info"},"3":{"name":"punctuation.definition.image.end.info"}}},"index":{"name":"meta.index.info","match":"(\\x00)(\\x08)(\\[)(index)(\\x00)(\\x08)(\\])","captures":{"1":{"name":"punctuation.c0.ctrl-char.null-byte.info"},"2":{"name":"punctuation.c0.ctrl-char.backspace.info"},"3":{"name":"punctuation.definition.index.begin.info"},"4":{"name":"storage.type.index.info"},"5":{"name":"punctuation.c0.ctrl-char.null-byte.info"},"6":{"name":"punctuation.c0.ctrl-char.backspace.info"},"7":{"name":"punctuation.definition.index.end.info"}}},"main":{"patterns":[{"include":"#node"},{"include":"#dir"},{"include":"#nodeInnards"}]},"manualName":{"name":"meta.manual-name.info","contentName":"constant.other.reference.link.info","begin":"\\G(\\()(?=.*?\\))","end":"\\)","patterns":[{"include":"#escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.reference.manual.begin.info"}},"endCaptures":{"0":{"name":"punctuation.definition.reference.manual.end.info"}}},"menu":{"name":"meta.menu.info","begin":"^(\\*)\\s+([Mm]enu)(:)(.*)","end":"(?=^[^\\s*]|\\x1F|\\f)","patterns":[{"include":"#menuItem"},{"include":"#nodeInnards"}],"beginCaptures":{"0":{"name":"markup.list.unnumbered.menu.info"},"1":{"name":"punctuation.definition.list.info"},"2":{"name":"keyword.operator.begin-menu.info"},"3":{"name":"punctuation.delimiter.separator.colon.info"},"4":{"name":"comment.line.ignored.info"}}},"menuItem":{"patterns":[{"name":"meta.topic.single-name.info","contentName":"string.unquoted.description.info","begin":"^(\\*)\\s+((?![\\s*\\x1F]|:\\s)(?:(?!:\\s).)+)(::)(?=\\s|$)[ \\t]*","end":"(?=^[\\*\\x1F\\f]|^[ \\t]*$|\\x1F|\\f)","beginCaptures":{"0":{"name":"markup.list.unnumbered.menu.info"},"1":{"name":"punctuation.definition.list.info"},"2":{"name":"entity.name.tag.topic.info","patterns":[{"include":"#escape"}]},"3":{"name":"punctuation.delimiter.separator.colon.info"}}},{"name":"meta.topic.info","begin":"^(\\*)\\s+((?![\\s*\\x1F]|:\\s)(?:(?!:\\s).)+)(:)(?=\\s|$)[ \\t]*","end":"(?=^[\\*\\x1F\\f]|^[ \\t]*$|\\x1F|\\f|^END-INFO-DIR-ENTRY(?:\\s|$))","patterns":[{"contentName":"entity.name.node.info","begin":"\\G(?=[^\\s.,])","end":"[.,\\t]|$","patterns":[{"include":"#manualName"},{"include":"#escape"}],"endCaptures":{"0":{"name":"punctuation.terminator.topic.info"}}},{"name":"string.unquoted.description.info","begin":"(?\u003c=[.,\\t])[ \\t]*","end":"(?=^[\\*\\x1F\\f]|^[ \\t]*$|\\x1F|\\f|^END-INFO-DIR-ENTRY(?:\\s|$))","patterns":[{"begin":"\\G","end":"((\\()line +\\d+(\\)))(?=[ \\t]*$)|(?=\\S|^\\s*$)","endCaptures":{"1":{"name":"constant.numeric.line-number.info"},"2":{"name":"punctuation.definition.line-number.begin.info"},"3":{"name":"punctuation.definition.line-number.end.info"}}}]}],"beginCaptures":{"0":{"name":"markup.list.unnumbered.menu.info"},"1":{"name":"punctuation.definition.list.info"},"2":{"name":"entity.name.tag.topic.info","patterns":[{"include":"#escape"}]},"3":{"name":"punctuation.delimiter.separator.colon.info"}}}]},"node":{"name":"meta.node.info","begin":"(\\x1F)(\\f)?","end":"\\f|(?=\\x1F)","patterns":[{"begin":"(?\u003c=\\x1F\\f|\\x1F)","end":"(?:\\G|^)(?!(?i:Indirect|Tag Table|Local Variables):[ \\t]*$)([^\\x1F\\f]*?)(?=\\s*$)|(?=\\x1F|\\f)","patterns":[{"include":"#tables"}],"endCaptures":{"0":{"name":"markup.heading.1.info"},"1":{"patterns":[{"include":"#pointer"}]}}},{"include":"#nodeInnards"}],"beginCaptures":{"1":{"name":"punctuation.c0.ctrl-char.unit-separator.info"},"2":{"name":"punctuation.whitespace.form-feed.info"}},"endCaptures":{"0":{"name":"punctuation.whitespace.form-feed.info"}}},"nodeInnards":{"patterns":[{"include":"#menu"},{"include":"#xref"},{"include":"#image"},{"include":"#index"},{"include":"#border"},{"include":"#notes"}]},"notes":{"name":"meta.footnotes.info","begin":"^([ \\t]+)(-+) (Footnotes) (-+)$","end":"(?=\\x1F|^(?![ \\t]*$|\\1[ \\t]*\\S))","patterns":[{"name":"markup.list.numbered.footnote.info","contentName":"markup.quote.footnote.info","begin":"^([ \\t]+)((\\()\\d+(\\)))[ \\t]+","end":"(?=\\x1F|^(?![ \\t]*$|\\1[ \\t]*\\S))|(?=^[ \\t]+\\(\\d+\\)\\s)","beginCaptures":{"1":{"name":"punctuation.whitespace.leading.indentation.info"},"2":{"name":"constant.numeric.list-number.info"},"3":{"name":"punctuation.definition.list-number.begin.info"},"4":{"name":"punctuation.definition.list-number.end.info"}}}],"beginCaptures":{"1":{"name":"punctuation.whitespace.leading.indentation.info"},"2":{"name":"punctuation.definition.heading.footnotes.left.info"},"3":{"name":"markup.heading.3.info"},"4":{"name":"punctuation.definition.heading.footnotes.right.info"}}},"pointer":{"name":"meta.pointer.info","contentName":"constant.other.reference.link.info","begin":"(?\u003c=^|\\G|\\s|,)(([Ff]ile|[Nn]ode|[Nn]ext|[Pp]rev|[Uu]p)(:))[ \\t]+","end":" *(?:(,)|(\\t)|$)","beginCaptures":{"1":{"name":"variable.pointer.${2:/downcase}.info"},"3":{"name":"keyword.operator.assignment.key-value.colon.info"}},"endCaptures":{"1":{"name":"punctuation.delimiter.comma.info"},"2":{"name":"punctuation.whitespace.tab.info"}}},"tables":{"patterns":[{"name":"meta.indirect-table.info","begin":"(?i)(?:^|\\G)(Indirect)(:)[ \\t]*$","end":"(?=\\f|\\x1F|^[ \\t]+\\S)","patterns":[{"name":"meta.offset.info","match":"^[ \\t]*([^:\\s][^:]*)(:)[ \\t]*(\\d+)[ \\t]*$","captures":{"1":{"name":"entity.name.file.filename.info"},"2":{"name":"keyword.operator.assignment.key-value.colon.info"},"3":{"name":"constant.decimal.integer.int.byte-offset.info"}}}],"beginCaptures":{"1":{"name":"markup.heading.1.info"},"2":{"name":"punctuation.definition.table.colon.info"}}},{"name":"meta.tag-table.info","begin":"(?i)(?:^|\\G)(Tag Table)(:)[ \\t]*$","end":"(?=\\f|\\x1F|^[ \\t]+\\S)","patterns":[{"begin":"\\G","end":"^((\\()Indirect(\\)))\\s*$|(?=\\S)","endCaptures":{"1":{"name":"storage.modifier.indirect.info"},"2":{"name":"punctuation.definition.modifier.begin.info"},"3":{"name":"punctuation.definition.modifier.end.info"}}},{"match":"^(?:(File)(:)[ \\t]*(.*?)(,)[ \\t]+)?(Node|Ref)(:)[ \\t]*([^\\s\\x1F\\x7F][^\\x1F\\x7F]*)(\\x7F)(\\d+)[ \\t]*$","captures":{"1":{"name":"storage.type.file.info"},"2":{"name":"punctuation.delimiter.separator.colon.info"},"3":{"name":"constant.other.reference.link.info"},"4":{"name":"punctuation.delimiter.comma.info"},"5":{"name":"storage.type.tag.${1:/downcase}.info"},"6":{"name":"punctuation.delimiter.separator.colon.info"},"7":{"name":"entity.name.tag.info"},"8":{"name":"punctuation.separator.tag.c0.ctrl-char.delete.info"},"9":{"name":"constant.decimal.integer.int.byte-offset.info"}}}],"beginCaptures":{"1":{"name":"markup.heading.1.info"},"2":{"name":"punctuation.definition.table.colon.info"}}},{"name":"meta.local-variables.info","begin":"(?i)(?:^|\\G)(Local Variables)(:)[ \\t]*$","end":"(?i)(?=\\f|\\x1F|^[ \\t]+\\S)|^(End)(:)[ \\t]*$","patterns":[{"name":"meta.local-variable.info","contentName":"constant.other.local-variable.info","begin":"(?i)^(?!End[ \\t]*:)([-\\w]+)[ \\t]*(:)[ \\t]*","end":"[ \\t]*$","beginCaptures":{"1":{"name":"variable.other.constant.info"},"2":{"name":"keyword.operator.assignment.key-value.colon.info"}}}],"captures":{"1":{"name":"markup.heading.1.info"},"2":{"name":"punctuation.definition.table.colon.info"}}}]},"xref":{"name":"meta.xref.info","begin":"(\\*)([Nn]ote)(?=\\s|$)","end":"(::|\\.|,)|(?=\\x1F)","patterns":[{"name":"entity.name.tag.topic.info","begin":"\\G","end":"(?=:(?::|\\s|$))|(?=\\x1F)","patterns":[{"include":"#escape"}]},{"contentName":"entity.name.node.info","begin":":(?!:)[ \\t]*","end":"(?=[ \\t]*[.,\\x1F])","beginCaptures":{"0":{"name":"punctuation.delimiter.separator.colon.info"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.reference.info"},"2":{"name":"storage.type.reference.info"}},"endCaptures":{"1":{"name":"punctuation.terminator.reference.info"}}}}}
|
1
|
+
{"name":"Info","scopeName":"text.info","patterns":[{"include":"#main"}],"repository":{"border":{"name":"markup.heading.info","match":"^((?:\\*|=|-){2,})[ \\t]*$","captures":{"1":{"name":"punctuation.definition.heading.info"}}},"dir":{"patterns":[{"name":"meta.dir-section.info","begin":"^INFO-DIR-SECTION(?=\\s|$)","end":"[^\\s\\x1F][^\\x1F]*","beginCaptures":{"0":{"name":"keyword.operator.dir-section.info"}},"endCaptures":{"0":{"name":"entity.name.dir-section.info"}}},{"name":"meta.dir-entry.info","begin":"^START-INFO-DIR-ENTRY(?=\\s|$)","end":"^END-INFO-DIR-ENTRY(?=\\s|$)","patterns":[{"include":"#menuItem"}],"beginCaptures":{"0":{"name":"keyword.operator.dir-entry.begin.info"}},"endCaptures":{"0":{"name":"keyword.operator.dir-entry.end.info"}}}]},"escape":{"name":"string.quoted.other.info","begin":"\\x7F(?=.*?\\x7F)","end":"\\x7F","beginCaptures":{"0":{"name":"punctuation.definition.escape.c0.ctrl-char.delete.begin.info"}},"endCaptures":{"0":{"name":"punctuation.definition.escape.c0.ctrl-char.delete.end.info"}}},"image":{"name":"meta.image.info","begin":"(\\x00)(\\x08)(\\[)(image)","end":"(\\x00)(\\x08)(\\])","patterns":[{"name":"meta.$1-attribute.info","begin":"([a-z]+)(=)","end":"((?!\")[^\\s\\x00]+)|(?\u003c=\")|(?=\\x00\\x08\\])","patterns":[{"name":"string.quoted.double.info","begin":"\"","end":"\"","patterns":[{"name":"constant.character.escape.backslash.info","match":"(\\\\).","captures":{"1":{"name":"punctuation.definition.escape.info"}}}],"beginCaptures":{"0":{"name":"punctuation.definition.string.begin.info"}},"endCaptures":{"0":{"name":"punctuation.definition.string.end.info"}}}],"beginCaptures":{"1":{"name":"entity.other.attribute-name.info"},"2":{"name":"punctuation.separator.key-value.info"}},"endCaptures":{"1":{"name":"string.unquoted.info"}}},{"name":"invalid.illegal.bad-attribute.info","match":"[^\\s\\x00]+"}],"beginCaptures":{"1":{"name":"punctuation.c0.ctrl-char.null-byte.info"},"2":{"name":"punctuation.c0.ctrl-char.backspace.info"},"3":{"name":"punctuation.definition.image.begin.info"},"4":{"name":"storage.type.image.info"}},"endCaptures":{"1":{"name":"punctuation.c0.ctrl-char.null-byte.info"},"2":{"name":"punctuation.c0.ctrl-char.backspace.info"},"3":{"name":"punctuation.definition.image.end.info"}}},"index":{"name":"meta.index.info","match":"(\\x00)(\\x08)(\\[)(index)(\\x00)(\\x08)(\\])","captures":{"1":{"name":"punctuation.c0.ctrl-char.null-byte.info"},"2":{"name":"punctuation.c0.ctrl-char.backspace.info"},"3":{"name":"punctuation.definition.index.begin.info"},"4":{"name":"storage.type.index.info"},"5":{"name":"punctuation.c0.ctrl-char.null-byte.info"},"6":{"name":"punctuation.c0.ctrl-char.backspace.info"},"7":{"name":"punctuation.definition.index.end.info"}}},"main":{"patterns":[{"include":"#node"},{"include":"#dir"},{"include":"#nodeInnards"}]},"manualName":{"name":"meta.manual-name.info","contentName":"constant.other.reference.link.info","begin":"(?:^|\\G)(\\()(?=.*?\\))","end":"\\)","patterns":[{"include":"#escape"}],"beginCaptures":{"1":{"name":"punctuation.definition.reference.manual.begin.info"}},"endCaptures":{"0":{"name":"punctuation.definition.reference.manual.end.info"}}},"menu":{"name":"meta.menu.info","begin":"^(\\*)\\s+([Mm]enu)(:)(.*)","end":"(?=\\x1F|\\f)","patterns":[{"include":"#menuItem"},{"include":"#nodeInnards"}],"beginCaptures":{"0":{"name":"markup.list.unnumbered.menu.info"},"1":{"name":"punctuation.definition.list.info"},"2":{"name":"keyword.operator.begin-menu.info"},"3":{"name":"punctuation.delimiter.separator.colon.info"},"4":{"name":"comment.line.ignored.info"}}},"menuItem":{"patterns":[{"name":"meta.topic.single-name.info","contentName":"string.unquoted.description.info","begin":"^(\\*)\\s+(\\(.+?\\)\\s*)?((?![\\s*\\x1F]|:\\s)(?:(?!:\\s).)+)(::)(?=\\s|$)[ \\t]*","end":"(?=^[\\*\\x1F\\f]|^[ \\t]*$|\\x1F|\\f)","beginCaptures":{"0":{"name":"markup.list.unnumbered.menu.info"},"1":{"name":"punctuation.definition.list.info"},"2":{"patterns":[{"include":"#manualName"}]},"3":{"name":"entity.name.tag.topic.info","patterns":[{"include":"#escape"}]},"4":{"name":"punctuation.delimiter.separator.colon.info"}}},{"name":"meta.topic.info","begin":"^(\\*)\\s+((?![\\s*\\x1F]|:\\s)(?:(?!:\\s).)+)(:)(?=\\s|$)[ \\t]*","end":"(?=^[\\*\\x1F\\f]|^[ \\t]*$|\\x1F|\\f|^END-INFO-DIR-ENTRY(?:\\s|$))","patterns":[{"contentName":"entity.name.node.info","begin":"\\G(\\(.+?\\))?(?=[^\\s.,])","end":"[.,\\t]|$","patterns":[{"include":"#manualName"},{"include":"#escape"}],"beginCaptures":{"1":{"patterns":[{"include":"#manualName"}]}},"endCaptures":{"0":{"name":"punctuation.terminator.topic.info"}}},{"name":"string.unquoted.description.info","begin":"(?\u003c=[.,\\t])[ \\t]*","end":"(?=^[\\*\\x1F\\f]|^[ \\t]*$|\\x1F|\\f|^END-INFO-DIR-ENTRY(?:\\s|$))","patterns":[{"begin":"\\G","end":"((\\()line +\\d+(\\)))(?=[ \\t]*$)|(?=\\S|^\\s*$)","endCaptures":{"1":{"name":"constant.numeric.line-number.info"},"2":{"name":"punctuation.definition.line-number.begin.info"},"3":{"name":"punctuation.definition.line-number.end.info"}}}]}],"beginCaptures":{"0":{"name":"markup.list.unnumbered.menu.info"},"1":{"name":"punctuation.definition.list.info"},"2":{"name":"entity.name.tag.topic.info","patterns":[{"include":"#escape"}]},"3":{"name":"punctuation.delimiter.separator.colon.info"}}}]},"node":{"name":"meta.node.info","begin":"(\\x1F)(\\f)?","end":"\\f|(?=\\x1F)","patterns":[{"begin":"(?\u003c=\\x1F\\f|\\x1F)","end":"(?:\\G|^)(?!(?i:Indirect|Tag Table|Local Variables):[ \\t]*$)([^\\x1F\\f]*?)(?=\\s*$)|(?=\\x1F|\\f)","patterns":[{"include":"#tables"}],"endCaptures":{"0":{"name":"markup.heading.1.info"},"1":{"patterns":[{"include":"#pointer"}]}}},{"include":"#nodeInnards"}],"beginCaptures":{"1":{"name":"punctuation.c0.ctrl-char.unit-separator.info"},"2":{"name":"punctuation.whitespace.form-feed.info"}},"endCaptures":{"0":{"name":"punctuation.whitespace.form-feed.info"}}},"nodeInnards":{"patterns":[{"include":"#menu"},{"include":"#xref"},{"include":"#image"},{"include":"#index"},{"include":"#border"},{"include":"#notes"}]},"notes":{"name":"meta.footnotes.info","begin":"^([ \\t]+)(-+) (Footnotes) (-+)$","end":"(?=\\x1F|^(?![ \\t]*$|\\1[ \\t]*\\S))","patterns":[{"name":"markup.list.numbered.footnote.info","contentName":"markup.quote.footnote.info","begin":"^([ \\t]+)((\\()\\d+(\\)))[ \\t]+","end":"(?=\\x1F|^(?![ \\t]*$|\\1[ \\t]*\\S))|(?=^[ \\t]+\\(\\d+\\)\\s)","beginCaptures":{"1":{"name":"punctuation.whitespace.leading.indentation.info"},"2":{"name":"constant.numeric.list-number.info"},"3":{"name":"punctuation.definition.list-number.begin.info"},"4":{"name":"punctuation.definition.list-number.end.info"}}}],"beginCaptures":{"1":{"name":"punctuation.whitespace.leading.indentation.info"},"2":{"name":"punctuation.definition.heading.footnotes.left.info"},"3":{"name":"markup.heading.3.info"},"4":{"name":"punctuation.definition.heading.footnotes.right.info"}}},"pointer":{"name":"meta.pointer.info","contentName":"constant.other.reference.link.info","begin":"(?\u003c=^|\\G|\\s|,)(([Ff]ile|[Nn]ode|[Nn]ext|[Pp]rev|[Uu]p)(:))[ \\t]+","end":" *(?:(,)|(\\t)|$)","beginCaptures":{"1":{"name":"variable.pointer.${2:/downcase}.info"},"3":{"name":"keyword.operator.assignment.key-value.colon.info"}},"endCaptures":{"1":{"name":"punctuation.delimiter.comma.info"},"2":{"name":"punctuation.whitespace.tab.info"}}},"tables":{"patterns":[{"name":"meta.indirect-table.info","begin":"(?i)(?:^|\\G)(Indirect)(:)[ \\t]*$","end":"(?=\\f|\\x1F|^[ \\t]+\\S)","patterns":[{"name":"meta.offset.info","match":"^[ \\t]*([^:\\s][^:]*)(:)[ \\t]*(\\d+)[ \\t]*$","captures":{"1":{"name":"entity.name.file.filename.info"},"2":{"name":"keyword.operator.assignment.key-value.colon.info"},"3":{"name":"constant.decimal.integer.int.byte-offset.info"}}}],"beginCaptures":{"1":{"name":"markup.heading.1.info"},"2":{"name":"punctuation.definition.table.colon.info"}}},{"name":"meta.tag-table.info","begin":"(?i)(?:^|\\G)(Tag Table)(:)[ \\t]*$","end":"(?=\\f|\\x1F|^[ \\t]+\\S)","patterns":[{"begin":"\\G","end":"^((\\()Indirect(\\)))\\s*$|(?=\\S)","endCaptures":{"1":{"name":"storage.modifier.indirect.info"},"2":{"name":"punctuation.definition.modifier.begin.info"},"3":{"name":"punctuation.definition.modifier.end.info"}}},{"match":"^(?:(File)(:)[ \\t]*(.*?)(,)[ \\t]+)?(Node|Ref)(:)[ \\t]*([^\\s\\x1F\\x7F][^\\x1F\\x7F]*)(\\x7F)(\\d+)[ \\t]*$","captures":{"1":{"name":"storage.type.file.info"},"2":{"name":"punctuation.delimiter.separator.colon.info"},"3":{"name":"constant.other.reference.link.info"},"4":{"name":"punctuation.delimiter.comma.info"},"5":{"name":"storage.type.tag.${1:/downcase}.info"},"6":{"name":"punctuation.delimiter.separator.colon.info"},"7":{"name":"entity.name.tag.info"},"8":{"name":"punctuation.separator.tag.c0.ctrl-char.delete.info"},"9":{"name":"constant.decimal.integer.int.byte-offset.info"}}}],"beginCaptures":{"1":{"name":"markup.heading.1.info"},"2":{"name":"punctuation.definition.table.colon.info"}}},{"name":"meta.local-variables.info","begin":"(?i)(?:^|\\G)(Local Variables)(:)[ \\t]*$","end":"(?i)(?=\\f|\\x1F|^[ \\t]+\\S)|^(End)(:)[ \\t]*$","patterns":[{"name":"meta.local-variable.info","contentName":"constant.other.local-variable.info","begin":"(?i)^(?!End[ \\t]*:)([-\\w]+)[ \\t]*(:)[ \\t]*","end":"[ \\t]*$","beginCaptures":{"1":{"name":"variable.other.constant.info"},"2":{"name":"keyword.operator.assignment.key-value.colon.info"}}}],"captures":{"1":{"name":"markup.heading.1.info"},"2":{"name":"punctuation.definition.table.colon.info"}}}]},"xref":{"name":"meta.xref.info","begin":"(\\*)([Nn]ote)(?=\\s|$)","end":"(::|\\.|,)|(?=\\x1F)","patterns":[{"name":"entity.name.tag.topic.info","begin":"\\G","end":"(?=:(?::|\\s|$))|(?=\\x1F)","patterns":[{"include":"#escape"}]},{"contentName":"entity.name.node.info","begin":":(?!:)[ \\t]*","end":"(?=[ \\t]*[.,\\x1F])","beginCaptures":{"0":{"name":"punctuation.delimiter.separator.colon.info"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.reference.info"},"2":{"name":"storage.type.reference.info"}},"endCaptures":{"1":{"name":"punctuation.terminator.reference.info"}}}}}
|
data/grammars/text.marko.json
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"name":"Marko","scopeName":"text.marko","patterns":[{"name":"meta.embedded.css","contentName":"source.css","begin":"^\\s*(style)\\s+(\\{)","end":"\\}","patterns":[{"include":"source.css"}],"beginCaptures":{"1":{"name":"storage.type.marko.css"},"2":{"name":"punctuation.section.scope.begin.marko.css"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}}},{"name":"meta.embedded.less","contentName":"source.less","begin":"^\\s*(style)\\.(less)\\s+(\\{)","end":"\\}","patterns":[{"include":"source.css.less"}],"beginCaptures":{"1":{"name":"storage.type.marko.css"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}}},{"name":"meta.embedded.scss","contentName":"source.scss","begin":"^\\s*(style)\\.(scss)\\s+(\\{)","end":"\\}","patterns":[{"include":"source.css.scss"}],"beginCaptures":{"1":{"name":"storage.type.marko.css"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}}},{"name":"meta.embedded.js","contentName":"source.js","begin":"^\\s*(?:(static )|(?=(?:class|import|export) ))","end":"(?=\\n|$)","patterns":[{"include":"#javascript-statement"}],"beginCaptures":{"1":{"name":"keyword.control.static.marko"}}},{"include":"#content-concise-mode"}],"repository":{"attrs":{"patterns":[{"name":"meta.marko-attribute","begin":"(?:\\s+|,)(?:(key|on[a-zA-Z0-9_$-]+|[a-zA-Z0-9_$]+Change|no-update(?:-body)?(?:-if)?)|([a-zA-Z0-9_$][a-zA-Z0-9_$-]*))(:[a-zA-Z0-9_$][a-zA-Z0-9_$-]*)?","end":"(?=.|$)","patterns":[{"include":"#html-args-or-method"},{"name":"meta.embedded.js","contentName":"source.js","begin":"\\s*(:?=)\\s*","end":"(?=.|$)","patterns":[{"include":"#javascript-expression"}],"beginCaptures":{"1":{"patterns":[{"include":"source.js"}]}},"applyEndPatternLast":true}],"beginCaptures":{"1":{"name":"support.type.attribute-name.marko"},"2":{"name":"entity.other.attribute-name.marko"},"3":{"name":"support.function.attribute-name.marko"}},"applyEndPatternLast":true},{"name":"meta.marko-spread-attribute","contentName":"source.js","begin":"(?:\\s+|,)\\.\\.\\.","end":"(?=.|$)","patterns":[{"include":"#javascript-expression"}],"beginCaptures":{"1":{"name":"keyword.operator.spread.marko"}},"applyEndPatternLast":true},{"begin":"\\s*(,(?!,))","end":"(?!\\S)","captures":{"1":{"patterns":[{"include":"source.js"}]}}},{"include":"#javascript-comment-multiline"},{"include":"#invalid"}]},"concise-html-block":{"name":"meta.section.marko-html-block","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-html-mode"}],"beginCaptures":{"2":{"name":"punctuation.section.scope.begin.marko"}},"endCaptures":{"1":{"name":"punctuation.section.scope.end.marko"}}},"concise-html-line":{"name":"meta.section.marko-html-line","match":"\\s*(--+)(?=\\s+\\S)(.*$)","captures":{"1":{"name":"punctuation.section.scope.begin.marko"},"2":{"patterns":[{"include":"#html-comments"},{"include":"#tag-html"},{"name":"string","match":"\\\\."},{"include":"#placeholder"},{"name":"string","match":".+?"}]}}},"concise-open-tag-content":{"patterns":[{"include":"#tag-before-attrs"},{"begin":"\\s*\\[","end":"]","patterns":[{"include":"#attrs"},{"include":"#invalid"}],"beginCaptures":{"0":{"name":"punctuation.section.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko"}}},{"begin":"(?!^)(?= )","end":"(?=--)|(?\u003c!,)(?=\\n)","patterns":[{"include":"#attrs"},{"include":"#invalid"}]}]},"concise-script-block":{"name":"meta.section.marko-script-block","begin":"(\\s+)(--+)\\s*$","end":"(\\2)|(?=^(?!\\1)\\s*\\S)","patterns":[{"include":"#content-embedded-script"}],"beginCaptures":{"2":{"name":"punctuation.section.scope.begin.marko"}},"endCaptures":{"1":{"name":"punctuation.section.scope.end.marko"}}},"concise-script-line":{"name":"meta.section.marko-script-line","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-script"}],"beginCaptures":{"1":{"name":"punctuation.section.scope.begin.marko"}},"applyEndPatternLast":true},"concise-style-block":{"name":"meta.section.marko-style-block","contentName":"source.css","begin":"(\\s+)(--+)\\s*$","end":"(\\2)|(?=^(?!\\1)\\s*\\S)","patterns":[{"include":"#content-embedded-style"}],"beginCaptures":{"2":{"name":"punctuation.section.scope.begin.marko"}},"endCaptures":{"1":{"name":"punctuation.section.scope.end.marko"}}},"concise-style-block-less":{"name":"meta.section.marko-style-block","contentName":"source.less","begin":"(\\s+)(--+)\\s*$","end":"(\\2)|(?=^(?!\\1)\\s*\\S)","patterns":[{"include":"#content-embedded-style-less"}],"beginCaptures":{"2":{"name":"punctuation.section.scope.begin.marko"}},"endCaptures":{"1":{"name":"punctuation.section.scope.end.marko"}}},"concise-style-block-scss":{"name":"meta.section.marko-style-block","contentName":"source.scss","begin":"(\\s+)(--+)\\s*$","end":"(\\2)|(?=^(?!\\1)\\s*\\S)","patterns":[{"include":"#content-embedded-style-scss"}],"beginCaptures":{"2":{"name":"punctuation.section.scope.begin.marko"}},"endCaptures":{"1":{"name":"punctuation.section.scope.end.marko"}}},"concise-style-line":{"name":"meta.section.marko-style-line","contentName":"source.css","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-style"}],"beginCaptures":{"1":{"name":"punctuation.section.scope.begin.marko"}},"applyEndPatternLast":true},"concise-style-line-less":{"name":"meta.section.marko-style-line","contentName":"source.less","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-style-less"}],"beginCaptures":{"1":{"name":"punctuation.section.scope.begin.marko"}},"applyEndPatternLast":true},"concise-style-line-scss":{"name":"meta.section.marko-style-line","contentName":"source.scss","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-style-scss"}],"beginCaptures":{"1":{"name":"punctuation.section.scope.begin.marko"}},"applyEndPatternLast":true},"content-concise-mode":{"name":"meta.marko-concise-content","patterns":[{"include":"#scriptlet"},{"include":"#javascript-comments"},{"include":"#html-comments"},{"include":"#concise-html-block"},{"include":"#concise-html-line"},{"include":"#tag-html"},{"patterns":[{"begin":"^(\\s*)(?=style\\.less\\b)","while":"(?=^\\1\\s+(\\S|$))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-style-block-less"},{"include":"#concise-style-line-less"}]},{"begin":"^(\\s*)(?=style\\.scss\\b)","while":"(?=^\\1\\s+(\\S|$))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-style-block-scss"},{"include":"#concise-style-line-scss"}]},{"begin":"^(\\s*)(?=style\\b)","while":"(?=^\\1\\s+(\\S|$))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-style-block"},{"include":"#concise-style-line"}]},{"begin":"^(\\s*)(?=script\\b)","while":"(?=^\\1\\s+(\\S|$))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-script-block"},{"include":"#concise-script-line"}]},{"begin":"^(\\s*)(?=[a-zA-Z0-9_$@])","while":"(?=^\\1\\s+(\\S|$))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#content-concise-mode"}]}]},{"include":"#invalid"}]},"content-embedded-script":{"name":"meta.embedded.js","patterns":[{"include":"#placeholder"},{"include":"source.js"}]},"content-embedded-style":{"name":"meta.embedded.css","patterns":[{"include":"#placeholder"},{"include":"source.css"}]},"content-embedded-style-less":{"name":"meta.embedded.css.less","patterns":[{"include":"#placeholder"},{"include":"source.css.less"}]},"content-embedded-style-scss":{"name":"meta.embedded.css.scss","patterns":[{"include":"#placeholder"},{"include":"source.css.scss"}]},"content-html-mode":{"patterns":[{"include":"#scriptlet"},{"include":"#html-comments"},{"include":"#tag-html"},{"name":"string","match":"\\\\."},{"include":"#placeholder"},{"name":"string","match":".+?"}]},"html-args-or-method":{"patterns":[{"include":"#javascript-args"},{"name":"meta.embedded.js","contentName":"source.js","begin":"(?\u003c=\\))\\s*(?=\\{)","end":"(?\u003c=\\})","patterns":[{"include":"source.js"}]}]},"html-comments":{"patterns":[{"name":"comment.block.marko","begin":"\\s*(\u003c!(--)?)","end":"\\2\u003e","beginCaptures":{"1":{"name":"punctuation.definition.comment.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.marko"}}},{"name":"comment.block.marko","begin":"\\s*(\u003chtml-comment\u003e)","end":"\u003c/html-comment\u003e","beginCaptures":{"1":{"name":"punctuation.definition.comment.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.marko"}}}]},"invalid":{"name":"invalid.illegal.character-not-allowed-here.marko","match":"[^\\s]"},"javascript-args":{"name":"meta.embedded.js","contentName":"source.js","begin":"(?=\\()","end":"(?\u003c=\\))","patterns":[{"include":"source.js"}]},"javascript-comment-line":{"contentName":"source.js","match":"\\s*//.*$","captures":{"0":{"patterns":[{"include":"source.js"}]}}},"javascript-comment-multiline":{"contentName":"source.js","begin":"\\s*(?=/\\*)","end":"(?\u003c=\\*/)","patterns":[{"include":"source.js"}]},"javascript-comments":{"patterns":[{"include":"#javascript-comment-multiline"},{"include":"#javascript-comment-line"}]},"javascript-enclosed":{"patterns":[{"include":"#javascript-comments"},{"include":"#javascript-args"},{"begin":"(?={)","end":"(?\u003c=})","patterns":[{"include":"source.js"}]},{"begin":"(?=\\[)","end":"(?\u003c=])","patterns":[{"include":"source.js"}]},{"begin":"(?=\")","end":"(?\u003c=\")","patterns":[{"include":"source.js"}]},{"begin":"(?=')","end":"(?\u003c=')","patterns":[{"include":"source.js"}]},{"begin":"(?=`)","end":"(?\u003c=`)","patterns":[{"include":"source.js"}]},{"contentName":"source.js","begin":"/(?!\u003c[\\]})A-Z0-9.\u003c%]\\s*/)(?!/?\u003e|$)","end":"/[gimsuy]*","patterns":[{"include":"source.js#regexp"},{"include":"source.js"}],"captures":{"0":{"name":"string.regexp.js"}}},{"begin":"(?x)\\s*(?:\n\t\t\t\t\t\t\t\t(?:\\b(?:new|typeof|instanceof|in)\\b)| # Keyword operators\n\t\t\t\t\t\t\t\t\\\u0026\\\u0026|\\|\\|| # Logical operators\n\t\t\t\t\t\t\t\t[\\^|\u0026]| # Bitwise operators\n\t\t\t\t\t\t\t\t[!=]=|[!=]==|\u003c|\u003c[=\u003c]|=\u003e| # Comparison operators (Note you cannot use * or ? here)\n\t\t\t\t\t\t\t\t[?:]| # Ternary operators\n\t\t\t\t\t\t\t\t[-+*%](?!-) # Arithmetic operators\n\t\t\t\t\t\t\t)","end":"(?=\\S)","captures":{"0":{"patterns":[{"include":"source.js"}]}}}]},"javascript-expression":{"patterns":[{"include":"#javascript-enclosed"},{"match":"[0-9a-zA-Z$_.]+","captures":{"0":{"patterns":[{"include":"source.js"}]}}}]},"javascript-statement":{"patterns":[{"include":"#javascript-enclosed"},{"include":"source.js"}]},"open-tag-content":{"patterns":[{"include":"#tag-before-attrs"},{"begin":"(?= )","end":"(?=/?\u003e)","patterns":[{"include":"#attrs"}]}]},"placeholder":{"contentName":"source.js","begin":"\\$!?{","end":"}","patterns":[{"include":"source.js"}],"beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.js"}},"endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.js"}}},"scriptlet":{"name":"meta.embedded.js","contentName":"source.js","begin":"^\\s*(\\$)\\s+","end":"$","patterns":[{"include":"#javascript-statement"}],"beginCaptures":{"1":{"name":"keyword.control.scriptlet.marko"}}},"tag-before-attrs":{"patterns":[{"include":"#tag-name"},{"name":"entity.other.attribute-name.marko","match":"[#.][a-zA-Z0-9_$][a-zA-Z0-9_$-]*"},{"name":"meta.embedded.js","contentName":"source.js","begin":"/(?!/)","end":"(?=:?\\=|\\s|\u003e|$|\\||\\(|/)","patterns":[{"name":"variable.other.constant.object.js","match":"[a-zA-Z$_][0-9a-zA-Z$_]*"},{"include":"source.js#object-binding-pattern"},{"include":"source.js#array-binding-pattern"},{"include":"source.js#var-single-variable"},{"include":"#javascript-expression"}],"beginCaptures":{"0":{"name":"punctuation.separator.key-value.marko"}}},{"name":"meta.embedded.js","contentName":"source.js","begin":"\\s*(:?=)\\s*","end":"(?=.|$)","patterns":[{"include":"#javascript-expression"}],"beginCaptures":{"1":{"patterns":[{"include":"source.js"}]}},"applyEndPatternLast":true},{"begin":"\\|","end":"\\|","patterns":[{"include":"source.js#function-parameters-body"},{"include":"source.js"}],"beginCaptures":{"0":{"name":"punctuation.section.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko"}}},{"include":"#html-args-or-method"}]},"tag-html":{"patterns":[{"begin":"\\s*(\u003c)(?=(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)\\b)","end":"/?\u003e","patterns":[{"include":"#open-tag-content"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=style\\.less\\b)","end":"/\u003e|(?\u003c=\\\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.less","begin":"\u003e","end":"\\s*(\u003c/)(style)?(\u003e)","patterns":[{"include":"#content-embedded-style-less"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.end.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=style\\.scss\\b)","end":"/\u003e|(?\u003c=\\\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.less","begin":"\u003e","end":"\\s*(\u003c/)(style)?(\u003e)","patterns":[{"include":"#content-embedded-style-scss"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.end.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=style\\b)","end":"/\u003e|(?\u003c=\\\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.css","begin":"\u003e","end":"\\s*(\u003c/)(style)?(\u003e)","patterns":[{"include":"#content-embedded-style"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.end.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=script\\b)","end":"/\u003e|(?\u003c=\\\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.js","begin":"\u003e","end":"\\s*(\u003c/)(script)?(\u003e)","patterns":[{"include":"#content-embedded-script"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.end.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=[a-zA-Z0-9_$@])","end":"/\u003e|(?\u003c=\\\u003e)","patterns":[{"include":"#open-tag-content"},{"begin":"\u003e","end":"\\s*(\u003c/)([a-zA-Z0-9_$:@-]+)?(.*?)(\u003e)","patterns":[{"include":"#content-html-mode"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.end.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"patterns":[{"include":"#invalid"}]},"4":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}}]},"tag-name":{"patterns":[{"begin":"\\${","end":"}","patterns":[{"include":"source.js"}],"beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.js"}},"endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.js"}}},{"match":"(style)\\.([a-zA-Z0-9$_-]+(?:\\.[a-zA-Z0-9$_-]+)*)|([a-zA-Z0-9_$@][a-zA-Z0-9_$@:-]*)","captures":{"1":{"name":"entity.name.tag.marko"},"2":{"name":"storage.type.marko.css"},"3":{"patterns":[{"name":"support.type.builtin.marko","match":"(attrs|return|import)(?=\\b)"},{"name":"support.function.marko","match":"(for|if|while|else-if|else|macro|tag|await|let|const|effect|set|get|id|lifecycle)(?=\\b)"},{"name":"entity.other.attribute-name.marko","match":"@.+"},{"name":"entity.name.tag.marko","match":".+"}]}}}]}}}
|
1
|
+
{"name":"Marko","scopeName":"text.marko","patterns":[{"name":"meta.embedded.css","contentName":"source.css","begin":"^\\s*(style)(\\b[^\\s]*\\.css)?\\s+({)","end":"}","patterns":[{"include":"source.css"}],"beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}}},{"name":"meta.embedded.less","contentName":"source.less","begin":"^\\s*(style)(\\b[^\\s]*\\.less)\\s+({)","end":"}","patterns":[{"include":"source.css.less"}],"beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}}},{"name":"meta.embedded.scss","contentName":"source.scss","begin":"^\\s*(style)(\\b[^\\s]*\\.scss)\\s+({)","end":"}","patterns":[{"include":"source.css.scss"}],"beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}}},{"name":"meta.embedded.ts","contentName":"source.ts","begin":"^\\s*(style)(\\b[^\\s]*\\.[tj]s)\\s+({)","end":"}","patterns":[{"include":"source.ts"}],"beginCaptures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.modifier.marko.css"},"3":{"name":"punctuation.section.scope.begin.marko.css"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko.css"}}},{"name":"meta.embedded.ts","contentName":"source.ts","begin":"^\\s*(?:(static\\b)|(?=(?:class|import|export)\\b))","end":"(?=\\n|$)","patterns":[{"include":"source.ts"}],"beginCaptures":{"1":{"name":"keyword.control.static.marko"}}},{"include":"#content-concise-mode"}],"repository":{"attr-value":{"name":"meta.embedded.ts","contentName":"source.ts","begin":"\\s*(:?=)\\s*","patterns":[{"include":"#javascript-expression"}],"beginCaptures":{"1":{"patterns":[{"include":"source.ts"}]}}},"attrs":{"patterns":[{"include":"#javascript-comments"},{"name":"meta.marko-attribute","begin":"(?:(key|on[a-zA-Z0-9_$-]+|[a-zA-Z0-9_$]+Change|no-update(?:-body)?(?:-if)?)|([a-zA-Z0-9_$][a-zA-Z0-9_$-]*)|(#[a-zA-Z0-9_$][a-zA-Z0-9_$-]*))(:[a-zA-Z0-9_$][a-zA-Z0-9_$-]*)?","end":"(?=.|$)","patterns":[{"include":"#html-args-or-method"},{"include":"#attr-value"}],"beginCaptures":{"1":{"name":"support.type.attribute-name.marko"},"2":{"name":"entity.other.attribute-name.marko"},"3":{"name":"support.function.attribute-name.marko"},"4":{"name":"support.function.attribute-name.marko"}},"applyEndPatternLast":true},{"name":"meta.marko-spread-attribute","contentName":"source.ts","begin":"(\\.\\.\\.)","patterns":[{"include":"#javascript-expression"}],"beginCaptures":{"1":{"name":"keyword.operator.spread.marko"}}},{"begin":"\\s*(,(?!,))","end":"(?=\\S)","captures":{"1":{"name":"punctuation.separator.comma.marko"}}},{"include":"#invalid"}]},"cdata":{"name":"meta.tag.metadata.cdata.marko","contentName":"string.other.inline-data.marko","begin":"\\s*\u003c!\\[CDATA\\[","end":"]]\u003e","beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},"concise-attr-group":{"begin":"\\s*(\\[)","end":"]","patterns":[{"include":"#concise-attr-group"},{"begin":"\\s+","end":"(?=\\S)"},{"include":"#attrs"},{"include":"#invalid"}],"beginCaptures":{"1":{"name":"punctuation.section.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko"}}},"concise-comment-block":{"name":"meta.section.marko-comment-block","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-embedded-comment"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-comment-line":{"name":"meta.section.marko-comment-line","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-comment"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"applyEndPatternLast":true},"concise-html-block":{"name":"meta.section.marko-html-block","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-html-mode"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-html-line":{"name":"meta.section.marko-html-line","match":"\\s*(--+)(?=\\s+\\S)(.*)($)","captures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"},"2":{"patterns":[{"include":"#cdata"},{"include":"#doctype"},{"include":"#declaration"},{"include":"#javascript-comments-after-whitespace"},{"include":"#html-comment"},{"include":"#tag-html"},{"name":"text.marko","match":"\\\\."},{"include":"#placeholder"},{"name":"text.marko","match":".+?"}]},"3":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-open-tag-content":{"patterns":[{"include":"#tag-before-attrs"},{"include":"#concise-semi-eol"},{"begin":"(?!^)[ \\t]","end":"(?=--)|(?=\\n)","patterns":[{"include":"#concise-semi-eol"},{"include":"#concise-attr-group"},{"begin":"[ \\t]+","end":"(?=\\S|\\n)"},{"include":"#attrs"},{"include":"#invalid"}]}]},"concise-script-block":{"name":"meta.section.marko-script-block","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-embedded-script"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-script-line":{"name":"meta.section.marko-script-line","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-script"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"applyEndPatternLast":true},"concise-semi-eol":{"begin":"\\s*(;)","end":"$","patterns":[{"include":"#javascript-comments"},{"include":"#html-comment"},{"include":"#invalid"}],"beginCaptures":{"1":{"name":"punctuation.terminator.marko"}}},"concise-style-block":{"name":"meta.section.marko-style-block","contentName":"source.css","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-embedded-style"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-style-block-less":{"name":"meta.section.marko-style-block","contentName":"source.less","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-embedded-style-less"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-style-block-scss":{"name":"meta.section.marko-style-block","contentName":"source.scss","begin":"\\s*(--+)\\s*$","end":"\\1","patterns":[{"include":"#content-embedded-style-scss"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}}},"concise-style-line":{"name":"meta.section.marko-style-line","contentName":"source.css","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-style"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"applyEndPatternLast":true},"concise-style-line-less":{"name":"meta.section.marko-style-line","contentName":"source.less","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-style-less"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"applyEndPatternLast":true},"concise-style-line-scss":{"name":"meta.section.marko-style-line","contentName":"source.scss","begin":"\\s*(--+)","end":"$","patterns":[{"include":"#content-embedded-style-scss"}],"beginCaptures":{"1":{"name":"punctuation.section.embedded.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.embedded.scope.end.marko"}},"applyEndPatternLast":true},"content-concise-mode":{"name":"meta.marko-concise-content","patterns":[{"include":"#scriptlet"},{"include":"#javascript-comments"},{"include":"#cdata"},{"include":"#doctype"},{"include":"#declaration"},{"include":"#html-comment"},{"include":"#concise-html-block"},{"include":"#concise-html-line"},{"include":"#invalid-close-tag"},{"include":"#tag-html"},{"patterns":[{"begin":"^(\\s*)(?=html-comment\\b)","while":"(?=^(?:[})\\]`]|\\*/|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-comment-block"},{"include":"#concise-comment-line"}]},{"begin":"^(\\s*)(?=style\\b[^\\s]*\\.less\\b)","while":"(?=^(?:[})\\]`]|\\*/|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-style-block-less"},{"include":"#concise-style-line-less"}]},{"begin":"^(\\s*)(?=style\\b[^\\s]*\\.scss\\b)","while":"(?=^(?:[})\\]`]|\\*/|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-style-block-scss"},{"include":"#concise-style-line-scss"}]},{"begin":"^(\\s*)(?=style\\b[^\\s]*\\.[tj]s\\b)","while":"(?=^(?:[})\\]`]|\\*/|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-script-block"},{"include":"#concise-script-line"}]},{"begin":"^(\\s*)(?=style\\b)","while":"(?=^(?:[})\\]`]|\\*/|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-style-block"},{"include":"#concise-style-line"}]},{"begin":"^(\\s*)(?=script\\b)","while":"(?=^(?:[})\\]`]|\\*/|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#concise-script-block"},{"include":"#concise-script-line"}]},{"begin":"^([ \\t]*)(?=[a-zA-Z0-9_$@.#])","while":"(?=^(?:[})\\]`]|\\*/|\\1\\s+(\\S|$)))","patterns":[{"include":"#concise-open-tag-content"},{"include":"#content-concise-mode"}]}]}]},"content-embedded-comment":{"patterns":[{"include":"#placeholder"},{"name":"comment.block.marko","match":"."}]},"content-embedded-script":{"name":"meta.embedded.ts","patterns":[{"include":"#placeholder"},{"include":"source.ts"}]},"content-embedded-style":{"name":"meta.embedded.css","patterns":[{"include":"#placeholder"},{"include":"source.css"}]},"content-embedded-style-less":{"name":"meta.embedded.css.less","patterns":[{"include":"#placeholder"},{"include":"source.css.less"}]},"content-embedded-style-scss":{"name":"meta.embedded.css.scss","patterns":[{"include":"#placeholder"},{"include":"source.css.scss"}]},"content-html-mode":{"patterns":[{"include":"#scriptlet"},{"include":"#cdata"},{"include":"#doctype"},{"include":"#declaration"},{"include":"#javascript-comments-after-whitespace"},{"include":"#html-comment"},{"include":"#invalid-close-tag"},{"include":"#tag-html"},{"name":"text.marko","match":"\\\\."},{"include":"#placeholder"},{"name":"text.marko","match":".+?"}]},"declaration":{"name":"meta.tag.metadata.processing.xml.marko","begin":"(\u003c\\?)\\s*([a-zA-Z0-9_$-]*)","end":"(\\??\u003e)","patterns":[{"match":"((?:[^\\s=?\u003e]+|\\?(?!\u003e))+)(=)(?:(\"(?:[^\"\\\\]+|\\\\.)*\")|('(?:[^'\\\\]+|\\\\.)*')|((?:[^\\s?\u003e]+|\\?(?!\u003e))+))","captures":{"1":{"name":"entity.other.attribute-name.marko"},"2":{"name":"punctuation.separator.key-value.html"},"3":{"name":"string.quoted.double.marko"},"4":{"name":"string.quoted.single.marko"},"5":{"name":"string.unquoted.marko"}}}],"captures":{"1":{"name":"punctuation.definition.tag.marko"},"2":{"name":"entity.name.tag.marko"}}},"doctype":{"name":"meta.tag.metadata.doctype.marko","begin":"\\s*\u003c!(?=(?i:DOCTYPE\\s))","end":"\u003e","patterns":[{"name":"entity.name.tag.marko","match":"\\G(?i:DOCTYPE)"},{"name":"string.quoted.double.marko","begin":"\"","end":"\""},{"name":"entity.other.attribute-name.marko","match":"[^\\s\u003e]+"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},"html-args-or-method":{"patterns":[{"name":"meta.embedded.ts","contentName":"source.ts","begin":"\\s*(?=\\()","end":"(?\u003c=\\))","patterns":[{"include":"source.ts"}]},{"name":"meta.embedded.ts","contentName":"source.ts","begin":"(?\u003c=\\))\\s*(?={)","end":"(?\u003c=})","patterns":[{"include":"source.ts"}]}]},"html-comment":{"name":"comment.block.marko","begin":"\\s*(\u003c!(--)?)","end":"\\2\u003e","beginCaptures":{"1":{"name":"punctuation.definition.comment.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.comment.marko"}}},"invalid":{"name":"invalid.illegal.character-not-allowed-here.marko","match":"\\S"},"invalid-close-tag":{"name":"invalid.illegal.character-not-allowed-here.marko","begin":"\\s*\u003c/.*?","end":"\u003e"},"javascript-comments":{"patterns":[{"contentName":"source.ts","begin":"\\s*(?=/\\*)","end":"(?\u003c=\\*/)","patterns":[{"include":"source.ts"}]},{"contentName":"source.ts","match":"\\s*//.*$","captures":{"0":{"patterns":[{"include":"source.ts"}]}}}]},"javascript-comments-after-whitespace":{"patterns":[{"contentName":"source.ts","begin":"(?:^|\\s+)(?=/\\*)","end":"(?\u003c=\\*/)","patterns":[{"include":"source.ts"}]},{"contentName":"source.ts","match":"(?:^|\\s+)//.*$","captures":{"0":{"patterns":[{"include":"source.ts"}]}}}]},"javascript-expression":{"patterns":[{"include":"#javascript-comments"},{"match":"(?:\\s*\\b(?:as|await|extends|in|instanceof|keyof|new|typeof|void))+\\s+(?![:=/,;\u003e])[a-zA-Z0-9_$@#]*","captures":{"0":{"patterns":[{"include":"source.ts"}]}}},{"contentName":"source.ts","match":"(?\u003c![a-zA-Z0-9%).\u003c\\]}])\\s*/(?:[^\\\\\\[/]+|\\\\.|\\[(?:[^\\\\\\]]+|\\\\.)*\\])*/[a-zA-Z]*","captures":{"0":{"name":"string.regexp.ts","patterns":[{"include":"source.ts#regexp"},{"include":"source.ts"}]}},"applyEndPatternLast":true},{"include":"source.ts"}]},"javascript-placeholder":{"contentName":"source.ts","begin":"\\${","end":"}","patterns":[{"include":"source.ts"}],"beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}}},"open-tag-content":{"patterns":[{"include":"#tag-before-attrs"},{"begin":"(?!/?\u003e)","end":"(?=/?\u003e)","patterns":[{"include":"#attrs"}]}]},"placeholder":{"contentName":"source.ts","begin":"\\$!?{","end":"}","patterns":[{"include":"source.ts"}],"beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}}},"scriptlet":{"name":"meta.embedded.ts","contentName":"source.ts","begin":"^\\s*(\\$)\\s+","end":"$","patterns":[{"include":"source.ts"}],"beginCaptures":{"1":{"name":"keyword.control.scriptlet.marko"}}},"tag-before-attrs":{"patterns":[{"include":"#tag-name"},{"include":"#tag-shorthand-class-or-id"},{"name":"meta.embedded.ts","contentName":"source.ts","begin":"/(?![/*])","end":"(?=[,;(|/\u003e]|:?=|\\s+[^:]|$)","patterns":[{"name":"variable.other.constant.object.ts","match":"[a-zA-Z$_][0-9a-zA-Z$_]*"},{"begin":"{","end":"}","patterns":[{"include":"source.ts#object-binding-element"},{"include":"#javascript-expression"}],"captures":{"0":{"name":"punctuation.definition.binding-pattern.object.ts"}}},{"begin":"\\[","end":"]","patterns":[{"include":"source.ts#array-binding-element"},{"include":"#javascript-expression"}],"captures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}}},{"begin":"\\s*(:)(?!=)","patterns":[{"include":"source.ts#type"},{"include":"#javascript-expression"}],"beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}}},{"include":"#javascript-expression"}],"beginCaptures":{"0":{"name":"punctuation.separator.tag-variable.marko"}}},{"contentName":"source.ts","begin":"\\|","end":"\\|","patterns":[{"include":"source.ts#function-parameters-body"},{"include":"source.ts"}],"beginCaptures":{"0":{"name":"punctuation.section.scope.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.section.scope.end.marko"}}},{"include":"#html-args-or-method"},{"include":"#attr-value"}]},"tag-html":{"patterns":[{"begin":"\\s*(\u003c)(?=(area|base|br|col|embed|hr|img|input|link|meta|param|source|track|wbr)\\b)","end":"/?\u003e","patterns":[{"include":"#open-tag-content"}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=html-comment\\b)","end":"/\u003e|(?\u003c=\\\u003e)","patterns":[{"include":"#open-tag-content"},{"begin":"\u003e","end":"\\s*(\u003c/)(html-comment)?(\u003e)","patterns":[{"include":"#content-embedded-comment"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=style\\b[^\\s]*\\.less\\b)","end":"/\u003e|(?\u003c=\\\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.less","begin":"\u003e","end":"\\s*(\u003c/)(style)?(\u003e)","patterns":[{"include":"#content-embedded-style-less"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=style\\b[^\\s]*\\.scss\\b)","end":"/\u003e|(?\u003c=\\\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.less","begin":"\u003e","end":"\\s*(\u003c/)(style)?(\u003e)","patterns":[{"include":"#content-embedded-style-scss"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=style\\b[^\\s]*\\.[tj]s\\b)","end":"/\u003e|(?\u003c=\\\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.ts","begin":"\u003e","end":"\\s*(\u003c/)(style)?(\u003e)","patterns":[{"include":"#content-embedded-script"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=style\\b)","end":"/\u003e|(?\u003c=\\\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.css","begin":"\u003e","end":"\\s*(\u003c/)(style)?(\u003e)","patterns":[{"include":"#content-embedded-style"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=script\\b)","end":"/\u003e|(?\u003c=\\\u003e)","patterns":[{"include":"#open-tag-content"},{"contentName":"source.ts","begin":"\u003e","end":"\\s*(\u003c/)(script)?(\u003e)","patterns":[{"include":"#content-embedded-script"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"}]},"3":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}},{"begin":"\\s*(\u003c)(?=[a-zA-Z0-9_$@.#])","end":"/\u003e|(?\u003c=\\\u003e)","patterns":[{"include":"#open-tag-content"},{"begin":"\u003e","end":"\\s*(\u003c/)([a-zA-Z0-9_$:@.#-]+)?(.*?)(\u003e)","patterns":[{"include":"#content-html-mode"}],"beginCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}},"endCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"},"2":{"patterns":[{"include":"#tag-name"},{"include":"#tag-shorthand-class-or-id"}]},"3":{"patterns":[{"include":"#invalid"}]},"4":{"name":"punctuation.definition.tag.end.marko"}}}],"beginCaptures":{"1":{"name":"punctuation.definition.tag.begin.marko"}},"endCaptures":{"0":{"name":"punctuation.definition.tag.end.marko"}}}]},"tag-name":{"patterns":[{"match":"\\G(style)\\b(\\.[a-zA-Z0-9$_-]+(?:\\.[a-zA-Z0-9$_-]+)*)|([a-zA-Z0-9_@](?:[a-zA-Z0-9_@-]+|:(?!=))*)","captures":{"1":{"name":"support.type.builtin.marko"},"2":{"name":"storage.type.marko.css"},"3":{"patterns":[{"name":"support.type.builtin.marko","match":"(attrs|style|effect|lifecycle)(?=\\b)"},{"name":"keyword.control.flow.marko","match":"(for|if|while|else-if|else|try|await|return)(?=\\b)"},{"name":"support.function.marko","match":"(macro|tag|async|let|const|set|get|id|html-comment)(?=\\b)(?![-:@])"},{"name":"entity.other.attribute-name.marko","match":"@.+"},{"name":"entity.name.tag.marko","match":".+"}]}}},{"begin":"(?=[a-zA-Z0-9$_]|-[^-])","end":"(?=[^a-zA-Z0-9$_-]|$)","patterns":[{"include":"#javascript-placeholder"},{"name":"entity.name.tag.marko","match":"(?:[a-zA-Z0-9_-]+|\\$(?!{))+"}]}]},"tag-shorthand-class-or-id":{"begin":"(?=[#.])","end":"$|(?=--|[^a-zA-Z0-9_$#.-])","patterns":[{"include":"#javascript-placeholder"},{"name":"entity.other.attribute-name.marko","match":"(?:[#.a-zA-Z0-9_-]+|\\$(?!{))+"}]}}}
|