shiki 1.10.2 → 1.10.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,4 @@
1
- const lang = Object.freeze({ "displayName": "YAML", "name": "yaml", "patterns": [{ "include": "#stream" }], "repository": { "alias": { "begin": "(\\*)([\\x{85}[^ ,\\[\\]{}\\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]++)|(\\*)", "captures": { "0": { "name": "keyword.control.flow.alias.yaml" }, "1": { "name": "punctuation.definition.alias.yaml" }, "2": { "name": "variable.other.alias.yaml" }, "3": { "name": "invalid.illegal.flow.alias.yaml" } }, "end": "(?=:[\n,\\[\\]{}]|[,\\[\\]{}])", "patterns": [{ "include": "#presentation-detail" }] }, "anchor-property": { "captures": { "0": { "name": "keyword.control.flow.anchor.yaml" }, "1": { "name": "punctuation.definition.anchor.yaml" }, "2": { "name": "variable.other.anchor.yaml" }, "3": { "name": "invalid.illegal.flow.anchor.yaml" } }, "match": "(&)([\\x{85}[^ ,\\[\\]{}\\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]++)|(&)" }, "block-map-key-double": { "begin": '\\G"', "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#double-quoted-style (BLOCK-KEY)", "end": '"', "endCaptures": { "0": { "name": "punctuation.definition.string.end.yaml" } }, "name": "meta.map.key.yaml string.quoted.double.yaml entity.name.tag.yaml", "patterns": [{ "match": ".[ ]*+$", "name": "invalid.illegal.multiline-key.yaml" }, { "match": "[^ -\\x{10FFFF}]++", "name": "invalid.illegal.character.yaml" }, { "include": "#double-escape" }] }, "block-map-key-explicit": { "begin": "(?=((?<=[-?:]) )?+)\\G( *+)(\\?)(?=[\n])", "beginCaptures": { "2": { "name": "punctuation.whitespace.indentation.yaml" }, "3": { "name": "punctuation.definition.map.key.yaml" }, "4": { "name": "punctuation.whitespace.separator.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#rule-c-l-block-map-explicit-key", "name": "meta.map.explicit.yaml", "patterns": [{ "include": "#key-double" }, { "include": "source.yaml#key-single" }, { "include": "#flow-key-plain-out" }, { "include": "#block-map-value" }, { "include": "#block-node" }], "while": "\\G(?>(\\1\\2)(?![?:0-9A-Za-z$()+./;<=\\\\^_~\\x{85}\\x{A0}-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{010000}-\\x{10FFFF}&&[^\\x{FEFF}]])((?> [ ]*+)?+[^\r\n #\\-\\[\\]{}])?+|(?!\\1\\2)( *+)([ ]*+[^\r\n#])?+)", "whileCaptures": { "1": { "name": "punctuation.whitespace.indentation.yaml" }, "2": { "name": "invalid.illegal.expected-indentation.yaml" }, "3": { "name": "punctuation.whitespace.indentation.yaml" }, "4": { "name": "invalid.illegal.expected-indentation.yaml" } } }, "block-map-key-plain": { "begin": "\\G(?=[\\x{85}[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]|[?:-](?![\n]))", "comment": "https://yaml.org/spec/1.2.2/#rule-ns-plain-one-line (BLOCK-KEY)", "end": "(?=[ ]*+:[\n]|(?>[ ]++|\\G)#)", "name": "meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", "patterns": [{ "include": "#tag-implicit-plain-out" }, { "captures": { "1": { "name": "punctuation.whitespace.separator.yaml" }, "2": { "name": "invalid.illegal.multiline-key.yaml" } }, "match": "\\G([ ]++)(.)" }, { "match": "[ ]++$", "name": "punctuation.whitespace.separator.yaml" }, { "match": "\\x{FEFF}", "name": "invalid.illegal.bom.yaml" }, { "include": "source.yaml#non-printable" }] }, "block-map-value": { "begin": ":(?=[\n])", "beginCaptures": { "0": { "name": "punctuation.separator.map.value.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#rule-c-l-block-map-implicit-value", "name": "meta.map.value.yaml", "patterns": [{ "include": "#block-node" }], "while": `\\G(?![?:!"'0-9A-Za-z$()+./;<=\\\\^_~\\[{\\x{85}\\x{A0}-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{010000}-\\x{10FFFF}&&[^\\x{FEFF}]]|-[^\r
2
- ])` }, "block-mapping": { "//": "The check for plain keys is expensive", "begin": `(?=((?<=[-?:]) )?+)(?<![^ ][ ]*+:|---)\\G( *+)([ ]*+)(?>((?>[!&*][^
3
- ]*+[ ]++)*+)(?=(?>(?#Double Quote)"(?>[^\\\\"]++|\\\\.)*+"|(?#Single Quote)'(?>[^']++|'')*+'|(?#Flow-Map){(?>[^}]++|}[ ]*+(?!:[
4
- ]))++}|(?#Flow-Seq)\\[(?>[^]]++|][ ]*+(?!:[
5
- ]))++]|(?#Plain)(?>[\\x{85}[^-?:,\\[\\]{}#&*!|>'"%@\` \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]|[?:-](?![
6
- ]))(?>[^:#]++|:(?![
7
- ])|(?<! | )#++)*+)?+(?#Map Value)[ ]*+:[
8
- ])|(?#Explicit)(?=\\?[
9
- ]))`, "beginCaptures": { "2": { "name": "punctuation.whitespace.indentation.yaml" }, "3": { "name": "punctuation.whitespace.separator.yaml" }, "4": { "comment": "May cause lag on long lines starting with a tag, anchor or alias", "patterns": [{ "include": "#tag-property" }, { "include": "#anchor-property" }, { "include": "#alias" }, { "include": "#presentation-detail" }] } }, "name": "meta.mapping.yaml", "patterns": [{ "include": "#block-map-key-double" }, { "include": "source.yaml#block-map-key-single" }, { "include": "#block-map-key-plain" }, { "include": "#block-map-key-explicit" }, { "include": "#block-map-value" }, { "include": "#flow-mapping" }, { "include": "#flow-sequence" }, { "include": "#presentation-detail" }], "while": `\\G(?>(\\1\\2)((?>[!&*][^\r
10
- ]*+[ ]++)*+)((?> [ ]*+)?+[^\r
11
- ?:\\-#!&*"'\\[\\]{}0-9A-Za-z$()+./;<=\\\\^_~\\x{85}\\x{A0}-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{010000}-\\x{10FFFF}])?+|( *+)([ ]*+[^\r
12
- #])?+)`, "whileCaptures": { "1": { "name": "punctuation.whitespace.indentation.yaml" }, "2": { "comment": "May cause lag on long lines starting with a tag, anchor or alias", "patterns": [{ "include": "#tag-property" }, { "include": "#anchor-property" }, { "include": "#alias" }, { "include": "#presentation-detail" }] }, "3": { "name": "invalid.illegal.expected-indentation.yaml" }, "4": { "name": "punctuation.whitespace.indentation.yaml" }, "5": { "name": "invalid.illegal.expected-indentation.yaml" } } }, "block-node": { "patterns": [{ "include": "#block-sequence" }, { "include": "#block-mapping" }, { "include": "#block-scalar" }, { "include": "#anchor-property" }, { "include": "#tag-property" }, { "include": "#alias" }, { "begin": `(?="|')`, "patterns": [{ "begin": "(?!\\G)", "patterns": [{ "include": "#presentation-detail" }], "while": "\\G" }, { "include": "#double" }, { "include": "#single" }], "while": "\\G" }, { "begin": "(?={)", "end": "$", "patterns": [{ "include": "#flow-mapping" }, { "include": "#presentation-detail" }] }, { "begin": "(?=\\[)", "end": "$", "patterns": [{ "include": "#flow-sequence" }, { "include": "#presentation-detail" }] }, { "include": "#block-plain-out" }, { "include": "#presentation-detail" }] }, "block-plain-out": { "begin": "(?=[\\x{85}[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]|[?:-](?![\n]))", "comment": "https://yaml.org/spec/1.2.2/#rule-ns-plain-multi-line (FLOW-OUT)", "patterns": [{ "begin": "\\G", "end": "(?=(?>[ ]++|\\G)#)", "name": "string.unquoted.plain.out.yaml", "patterns": [{ "include": "#tag-implicit-plain-out" }, { "match": ":(?=[\n])", "name": "invalid.illegal.multiline-key.yaml" }, { "match": "\\G[ ]++", "name": "punctuation.whitespace.separator.yaml" }, { "match": "[ ]++$", "name": "punctuation.whitespace.separator.yaml" }, { "match": "\\x{FEFF}", "name": "invalid.illegal.bom.yaml" }, { "include": "source.yaml#non-printable" }] }, { "begin": "(?!\\G)", "patterns": [{ "include": "#presentation-detail" }], "while": "\\G" }], "while": "\\G" }, "block-scalar": { "comment": "https://yaml.org/spec/1.2.2/#81-block-scalar-styles", "patterns": [{ "begin": "([ ]*+)(?>(\\|)|(>))(?<chomp>[+-])?+((1)|(2)|(3)|(4)|(5)|(6)|(7)|(8)|(9))(?(<chomp>)|([+-]))?+", "beginCaptures": { "1": { "name": "punctuation.whitespace.separator.yaml" }, "2": { "name": "keyword.control.flow.block-scalar.literal.yaml" }, "3": { "name": "keyword.control.flow.block-scalar.folded.yaml" }, "4": { "name": "storage.modifier.chomping-indicator.yaml" }, "5": { "name": "constant.numeric.indentation-indicator.yaml" }, "15": { "name": "storage.modifier.chomping-indicator.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#8111-block-indentation-indicator", "name": "meta.scalar.yaml", "patterns": [{ "begin": "$", "contentName": "string.unquoted.block.yaml", "patterns": [{ "include": "source.yaml#non-printable" }], "while": "\\G" }, { "begin": "\\G", "end": "$", "patterns": [{ "include": "#presentation-detail" }] }], "while": "\\G(?>(?>(?!\\6) |(?!\\7) {2}|(?!\\8) {3}|(?!\\9) {4}|(?!\\10) {5}|(?!\\11) {6}|(?!\\12) {7}|(?!\\13) {8}|(?!\\14) {9})| *+($|[^#]))", "whileCaptures": { "0": { "name": "punctuation.whitespace.indentation.yaml" }, "1": { "name": "invalid.illegal.expected-indentation.yaml" } } }, { "//": "Soooooooo many edge cases", "begin": "([ ]*+)(?>(\\|)|(>))([+-]?+)", "beginCaptures": { "1": { "name": "punctuation.whitespace.separator.yaml" }, "2": { "name": "keyword.control.flow.block-scalar.literal.yaml" }, "3": { "name": "keyword.control.flow.block-scalar.folded.yaml" }, "4": { "name": "storage.modifier.chomping-indicator.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#rule-c-b-block-header", "name": "meta.scalar.yaml", "patterns": [{ "begin": "$", "comment": "https://yaml.org/spec/1.2.2/#rule-l-literal-content", "patterns": [{ "//": "Find the highest indented line", "begin": "\\G( ++)$", "captures": { "1": { "name": "punctuation.whitespace.indentation.yaml" }, "2": { "name": "punctuation.whitespace.indentation.yaml" }, "3": { "name": "invalid.illegal.expected-indentation.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#rule-l-nb-literal-text", "contentName": "string.unquoted.block.yaml", "patterns": [{ "include": "source.yaml#non-printable" }], "while": "\\G(?>(\\1)$|(?!\\1)( *+)($|.))" }, { "//": ["Funky wrapper function", "The `end` pattern clears the parent `\\G` anchor", "Affectively forcing this rule to only match at most once", "https://github.com/microsoft/vscode-textmate/issues/114"], "begin": "\\G(?!$)(?=( *+))", "comment": "https://yaml.org/spec/1.2.2/#rule-b-nb-literal-next", "end": "\\G(?!\\1)(?=[ ]*+#)", "patterns": [{ "begin": "\\G( *+)", "captures": { "1": { "name": "punctuation.whitespace.indentation.yaml" }, "2": { "name": "punctuation.whitespace.indentation.yaml" }, "3": { "name": "invalid.illegal.expected-indentation.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#rule-l-nb-literal-text", "contentName": "string.unquoted.block.yaml", "patterns": [{ "include": "source.yaml#non-printable" }], "while": "\\G(?>(\\1)|( *+)($|[^ #]|[ ]++[^#]))" }] }, { "begin": "(?!\\G)(?=[ ]*+#)", "comment": "https://yaml.org/spec/1.2.2/#rule-l-chomped-empty", "patterns": [{ "include": "#presentation-detail" }], "while": "\\G" }], "while": "\\G" }, { "begin": "\\G", "comment": "Header Comment", "end": "$", "patterns": [{ "include": "#presentation-detail" }] }], "while": "\\G" }] }, "block-sequence": { "begin": "(?=((?<=[-?:]) )?+)(?<![^ ][ ]*+:|---)\\G( *+)(-)(?=[\n])", "beginCaptures": { "2": { "name": "punctuation.whitespace.indentation.yaml" }, "3": { "name": "punctuation.definition.block.sequence.item.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#rule-l+block-sequence", "name": "meta.block.sequence.yaml", "patterns": [{ "include": "#block-node" }], "while": "\\G(?>(\\1\\2)(?!-[\r\n ])((?> [ ]*+)?+[^\r\n #\\]}])?+|(?!\\1\\2)( *+)([ ]*+[^\r\n#])?+)", "whileCaptures": { "1": { "name": "punctuation.whitespace.indentation.yaml" }, "2": { "name": "invalid.illegal.expected-indentation.yaml" }, "3": { "name": "punctuation.whitespace.indentation.yaml" }, "4": { "name": "invalid.illegal.expected-indentation.yaml" } } }, "byte-order-mark": { "comment": "\uFEFF", "match": "\\G\\x{FEFF}++", "name": "byte-order-mark.yaml" }, "comment": { "begin": "(?<=[\\x{FEFF} ]|^)#", "captures": { "0": { "name": "punctuation.definition.comment.yaml" } }, "comment": "Comments must be separated from other tokens by white space characters. `space`, `tab`, `newline` or `carriage-return`. `#(.*)` causes performance issues", "end": "|\n", "name": "comment.line.number-sign.yaml", "patterns": [{ "include": "source.yaml#non-printable" }] }, "directive-YAML": { "begin": "(?=%YAML[ ]+1\\.2(?=[\n]))", "comment": "https://yaml.org/spec/1.2.2/#681-yaml-directives", "end": "\\G(?=(?>\\.{3}|---)[\n])", "name": "meta.1.2.yaml", "patterns": [{ "begin": "\\G(%)(YAML)([ ]+)(1\\.2)", "beginCaptures": { "1": { "name": "punctuation.definition.directive.begin.yaml" }, "2": { "name": "keyword.other.directive.yaml.yaml" }, "3": { "name": "punctuation.whitespace.separator.yaml" }, "4": { "name": "constant.numeric.yaml-version.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#681-yaml-directives", "end": "\\G(?=---[\n])", "name": "meta.directives.yaml", "patterns": [{ "include": "#directive-invalid" }, { "include": "#directives" }, { "include": "#presentation-detail" }] }, { "include": "#document" }] }, "directive-invalid": { "patterns": [{ "match": "\\G\\.{3}(?=[\n])", "name": "invalid.illegal.entity.other.document.end.yaml" }, { "begin": "\\G(%)(YAML)", "beginCaptures": { "1": { "name": "punctuation.definition.directive.begin.yaml" }, "2": { "name": "invalid.illegal.keyword.other.directive.yaml.yaml" } }, "end": "$", "name": "meta.directive.yaml", "patterns": [{ "captures": { "1": { "name": "punctuation.whitespace.separator.yaml" }, "2": { "name": "constant.numeric.yaml-version.yaml" } }, "match": "\\G([ ]++|:)([0-9]++\\.[0-9]++)?+" }, { "include": "#presentation-detail" }] }] }, "directives": { "comment": "https://yaml.org/spec/1.2.2/#68-directives", "patterns": [{ "include": "source.yaml.1.3#directive-YAML" }, { "include": "source.yaml.1.2#directive-YAML" }, { "include": "source.yaml.1.1#directive-YAML" }, { "include": "source.yaml.1.0#directive-YAML" }, { "begin": "(?=%)", "name": "meta.directives.yaml", "patterns": [{ "applyEndPatternLast": true, "begin": "\\G(%)(TAG)(?>([ ]++)((!)(?>[0-9A-Za-z-]*+(!))?+))?+", "beginCaptures": { "1": { "name": "punctuation.definition.directive.begin.yaml" }, "2": { "name": "keyword.other.directive.tag.yaml" }, "3": { "name": "punctuation.whitespace.separator.yaml" }, "4": { "name": "storage.type.tag-handle.yaml" }, "5": { "name": "punctuation.definition.tag.begin.yaml" }, "6": { "name": "punctuation.definition.tag.end.yaml" }, "comment": "https://yaml.org/spec/1.2.2/#rule-c-tag-handle" }, "comment": "https://yaml.org/spec/1.2.2/#682-tag-directives", "end": "$", "patterns": [{ "begin": "\\G[ ]++(?!#)", "beginCaptures": { "0": { "name": "punctuation.whitespace.separator.yaml" } }, "comment": "technically the beginning should only validate against a valid uri scheme [A-Za-z][A-Za-z0-9.+-]*", "contentName": "support.type.tag-prefix.yaml", "end": "(?=[\n])", "patterns": [{ "match": "%[0-9a-fA-F]{2}", "name": "constant.character.escape.unicode.8-bit.yaml" }, { "match": "%[^\n]{2,0}", "name": "invalid.illegal.constant.character.escape.unicode.8-bit.yaml" }, { "match": "\\G[,\\[\\]{}]", "name": "invalid.illegal.character.uri.yaml" }, { "include": "source.yaml#non-printable" }, { "match": "[^\na-zA-Z0-9-#;/?:@&=+$,_.!~*'()\\[\\]]++", "name": "invalid.illegal.unrecognized.yaml" }] }, { "include": "#presentation-detail" }] }, { "begin": "(%)([\\x{85}[^ \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]++)", "beginCaptures": { "1": { "name": "punctuation.definition.directive.begin.yaml" }, "2": { "name": "keyword.other.directive.other.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#rule-ns-reserved-directive", "end": "$", "patterns": [{ "captures": { "1": { "name": "punctuation.whitespace.separator.yaml" }, "2": { "name": "string.unquoted.directive-name.yaml" } }, "match": "\\G([ ]++)([\\x{85}[^ \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]++)" }, { "captures": { "1": { "name": "punctuation.whitespace.separator.yaml" }, "2": { "name": "string.unquoted.directive-parameter.yaml" } }, "match": "([ ]++)([\\x{85}[^ \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]++)" }, { "include": "#presentation-detail" }] }, { "match": "\\G\\.{3}(?=[\n])", "name": "invalid.illegal.entity.other.document.end.yaml" }, { "include": "#presentation-detail" }], "while": "\\G(?!%|---[\r\n ])" }] }, "document": { "comment": "https://yaml.org/spec/1.2.2/#91-documents", "patterns": [{ "begin": "---(?=[\n])", "beginCaptures": { "0": { "name": "entity.other.document.begin.yaml" } }, "name": "meta.document.yaml", "patterns": [{ "include": "#block-node" }], "while": "\\G(?!(?>\\.{3}|---)[\r\n ])" }, { "begin": "(?=\\.{3}[\n])", "patterns": [{ "begin": "\\G\\.{3}", "beginCaptures": { "0": { "name": "entity.other.document.end.yaml" } }, "end": "$", "patterns": [{ "include": "#presentation-detail" }] }, { "include": "#byte-order-mark" }, { "include": "#presentation-detail" }], "while": "\\G(?=[ \\x{FEFF}]*+(?>#|$))" }, { "begin": "\\G(?!%|[ \\x{FEFF}]*+(?>#|$))", "name": "meta.document.yaml", "patterns": [{ "include": "#block-node" }], "while": "\\G(?!(?>\\.{3}|---)[\r\n ])" }] }, "double": { "begin": '"', "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#double-quoted-style", "end": '"', "endCaptures": { "0": { "name": "punctuation.definition.string.end.yaml" } }, "name": "string.quoted.double.yaml", "patterns": [{ "match": '(?<!")\\G[ ]++', "name": "punctuation.whitespace.separator.yaml" }, { "match": "[ ]++$", "name": "punctuation.whitespace.separator.yaml" }, { "match": "[^\n-\\x{10FFFF}]++", "name": "invalid.illegal.character.yaml" }, { "include": "#double-escape" }] }, "double-escape": { "comment": "https://yaml.org/spec/1.2.2/#rule-c-ns-esc-char", "patterns": [{ "match": '\\\\[\n0abtnvfre "/\\\\N_LP]', "name": "constant.character.escape.yaml" }, { "match": "\\\\x[0-9a-fA-F]{2}", "name": "constant.character.escape.unicode.8-bit.yaml" }, { "match": "\\\\u[0-9a-fA-F]{4}", "name": "constant.character.escape.unicode.16-bit.yaml" }, { "match": "\\\\U[0-9a-fA-F]{8}", "name": "constant.character.escape.unicode.32-bit.yaml" }, { "match": '\\\\(?>x[^"]{2,0}|u[^"]{4,0}|U[^"]{8,0}|.)', "name": "invalid.illegal.constant.character.escape.yaml" }] }, "flow-key-plain-in": { "begin": "\\G(?![\n", "comment": "https://yaml.org/spec/1.2.2/#rule-ns-s-implicit-yaml-key (FLOW-KEY)", "end": "(?=[ ]*+(?>:[\n,\\[\\]{}]|[,\\[\\]{}])|[ ]++#)", "name": "meta.flow.map.key.yaml string.unquoted.plain.in.yaml entity.name.tag.yaml", "patterns": [{ "include": "#tag-implicit-plain-in" }, { "match": "\\x{FEFF}", "name": "invalid.illegal.bom.yaml" }, { "include": "source.yaml#non-printable" }] }, "flow-key-plain-out": { "begin": "(?=[\\x{85}[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]|[?:-](?![\n]))", "comment": "https://yaml.org/spec/1.2.2/#rule-ns-plain-one-line (FLOW-OUT)", "end": "(?=[ ]*+:[\n]|[ ]++#)", "name": "meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", "patterns": [{ "include": "#tag-implicit-plain-out" }, { "match": "\\G[ ]++", "name": "punctuation.whitespace.separator.yaml" }, { "match": "[ ]++$", "name": "punctuation.whitespace.separator.yaml" }, { "match": "\\x{FEFF}", "name": "invalid.illegal.bom.yaml" }, { "include": "source.yaml#non-printable" }] }, "flow-map-value-json": { "begin": `(?<=(?>["'\\]}]|^)[ ]*+):`, "beginCaptures": { "0": { "name": "punctuation.separator.map.value.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#rule-c-ns-flow-map-separate-value (FLOW-IN)", "end": "(?=[,\\]}])", "name": "meta.flow.pair.value.yaml", "patterns": [{ "include": "#flow-node" }] }, "flow-map-value-yaml": { "begin": ":(?=[\n,\\[\\]{}])", "beginCaptures": { "0": { "name": "punctuation.separator.map.value.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#rule-c-ns-flow-map-separate-value (FLOW-IN)", "end": "(?=[,\\]}])", "name": "meta.flow.pair.value.yaml", "patterns": [{ "include": "#flow-node" }] }, "flow-mapping": { "begin": "{", "beginCaptures": { "0": { "name": "punctuation.definition.mapping.begin.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#742-flow-mappings", "end": "}", "endCaptures": { "0": { "name": "punctuation.definition.mapping.end.yaml" } }, "name": "meta.flow.mapping.yaml", "patterns": [{ "begin": "(?<={)\\G(?=[\n,#])|,", "beginCaptures": { "0": { "name": "punctuation.separator.mapping.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#rule-ns-s-flow-map-entries", "end": "(?=[^\n,#])", "patterns": [{ "match": ",++", "name": "invalid.illegal.separator.sequence.yaml" }, { "include": "#presentation-detail" }] }, { "include": "#flow-mapping-map-key" }, { "include": "#flow-map-value-yaml" }, { "include": "#flow-map-value-json" }, { "include": "#flow-node" }] }, "flow-mapping-map-key": { "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-entry (FLOW-IN)", "patterns": [{ "begin": "\\?(?=[\n,\\[\\]{}])", "beginCaptures": { "0": { "name": "punctuation.definition.map.key.yaml" } }, "end": "(?=[,\\[\\]{}])", "name": "meta.flow.map.explicit.yaml", "patterns": [{ "include": "#flow-mapping-map-key" }, { "include": "#flow-map-value-yaml" }, { "include": "#flow-map-value-json" }, { "include": "#flow-node" }] }, { "begin": "(?=(?>[\\x{85}[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]|[?:-](?![\n,\\[\\]{}])))", "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-implicit-entry (FLOW-IN)", "end": "(?=[,\\[\\]{}])", "name": "meta.flow.map.implicit.yaml", "patterns": [{ "include": "#flow-key-plain-in" }, { "match": ":(?=\\[|{)", "name": "invalid.illegal.separator.map.yaml" }, { "include": "#flow-map-value-yaml" }, { "include": "#presentation-detail" }] }, { "begin": `(?="|')`, "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-implicit-entry (FLOW-IN)", "end": "(?=[,\\[\\]{}])", "name": "meta.flow.map.implicit.yaml", "patterns": [{ "include": "#key-double" }, { "include": "source.yaml#key-single" }, { "include": "#flow-map-value-json" }, { "include": "#presentation-detail" }] }] }, "flow-node": { "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-seq-entry (FLOW-IN)", "patterns": [{ "begin": "(?=\\[|{)", "end": "(?=[:,\\]}])", "patterns": [{ "begin": "(?!\\G)", "end": "(?=[:,\\]}])", "patterns": [{ "include": "#presentation-detail" }] }, { "include": "#flow-mapping" }, { "include": "#flow-sequence" }] }, { "include": "#anchor-property" }, { "include": "#tag-property" }, { "include": "#alias" }, { "begin": `(?="|')`, "end": "(?=[:,\\]}])", "patterns": [{ "begin": "(?!\\G)", "end": "(?=[:,\\]}])", "patterns": [{ "include": "#presentation-detail" }] }, { "include": "#double" }, { "include": "#single" }] }, { "include": "#flow-plain-in" }, { "include": "#presentation-detail" }] }, "flow-plain-in": { "begin": "(?=[\\x{85}[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]|[?:-](?![\n,\\[\\]{}]))", "comment": "https://yaml.org/spec/1.2.2/#rule-ns-plain-multi-line (FLOW-IN)", "end": "(?=(?>[ ]++|\\G)#|[ ]*+[,\\[\\]{}])", "name": "string.unquoted.plain.in.yaml", "patterns": [{ "include": "#tag-implicit-plain-in" }, { "match": "\\G[ ]++", "name": "punctuation.whitespace.separator.yaml" }, { "match": "[ ]++$", "name": "punctuation.whitespace.separator.yaml" }, { "match": ":(?=[\n,\\[\\]{}])", "name": "invalid.illegal.multiline-key.yaml" }, { "match": "\\x{FEFF}", "name": "invalid.illegal.bom.yaml" }, { "include": "source.yaml#non-printable" }] }, "flow-sequence": { "begin": "\\[", "beginCaptures": { "0": { "name": "punctuation.definition.sequence.begin.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#741-flow-sequences", "end": "]", "endCaptures": { "0": { "name": "punctuation.definition.sequence.end.yaml" } }, "name": "meta.flow.sequence.yaml", "patterns": [{ "begin": "(?<=\\[)\\G(?=[\n,#])|,", "beginCaptures": { "0": { "name": "punctuation.separator.sequence.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#rule-ns-s-flow-seq-entries", "end": "(?=[^\n,#])", "patterns": [{ "match": ",++", "name": "invalid.illegal.separator.sequence.yaml" }, { "include": "#presentation-detail" }] }, { "include": "#flow-sequence-map-key" }, { "include": "#flow-map-value-yaml" }, { "include": "#flow-map-value-json" }, { "include": "#flow-node" }] }, "flow-sequence-map-key": { "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-entry (FLOW-IN)", "patterns": [{ "begin": "\\?(?=[\n,\\[\\]{}])", "beginCaptures": { "0": { "name": "punctuation.definition.map.key.yaml" } }, "end": "(?=[,\\[\\]{}])", "name": "meta.flow.map.explicit.yaml", "patterns": [{ "include": "#flow-mapping-map-key" }, { "include": "#flow-map-value-yaml" }, { "include": "#flow-map-value-json" }, { "include": "#flow-node" }] }, { "begin": "(?<=[ ,\\[{]|^)(?=(?>[\\x{85}[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]|[?:-](?![\n,\\[\\]{}]))(?>[^:#,\\[\\]{}]++|:(?![\n,\\[\\]{}])|(?<! | )#++)*+:[\n,\\[\\]{}])", "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-implicit-entry (FLOW-IN)", "end": "(?=[,\\[\\]{}])", "name": "meta.flow.map.implicit.yaml", "patterns": [{ "include": "#flow-key-plain-in" }, { "match": ":(?=\\[|{)", "name": "invalid.illegal.separator.map.yaml" }, { "include": "#flow-map-value-yaml" }, { "include": "#presentation-detail" }] }, { "begin": `(?=(?>"(?>[^\\\\"]++|\\\\.)*+"|'(?>[^']++|'')*+')[ ]*+:)`, "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-implicit-entry (FLOW-IN)", "end": "(?=[,\\[\\]{}])", "name": "meta.flow.map.implicit.yaml", "patterns": [{ "include": "#key-double" }, { "include": "source.yaml#key-single" }, { "include": "#flow-map-value-json" }, { "include": "#presentation-detail" }] }] }, "key-double": { "begin": '"', "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#double-quoted-style (FLOW-OUT)", "end": '"', "endCaptures": { "0": { "name": "punctuation.definition.string.end.yaml" } }, "name": "meta.map.key.yaml string.quoted.double.yaml entity.name.tag.yaml", "patterns": [{ "match": "[^ -\\x{10FFFF}]++", "name": "invalid.illegal.character.yaml" }, { "include": "#double-escape" }] }, "presentation-detail": { "patterns": [{ "match": "[ ]++", "name": "punctuation.whitespace.separator.yaml" }, { "include": "source.yaml#non-printable" }, { "include": "#comment" }, { "include": "#unknown" }] }, "single": { "begin": "'", "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#single-quoted-style", "end": "'(?!')", "endCaptures": { "0": { "name": "punctuation.definition.string.end.yaml" } }, "name": "string.quoted.single.yaml", "patterns": [{ "match": "(?<!')\\G[ ]++", "name": "punctuation.whitespace.separator.yaml" }, { "match": "[ ]++$", "name": "punctuation.whitespace.separator.yaml" }, { "match": "[^\n-\\x{10FFFF}]++", "name": "invalid.illegal.character.yaml" }, { "match": "''", "name": "constant.character.escape.single-quote.yaml" }] }, "stream": { "patterns": [{ "begin": "^(?!\\G)", "comment": "allows me to just use `\\G` instead of the performance heavy `(^|\\G)`", "name": "meta.stream.yaml", "patterns": [{ "include": "#byte-order-mark" }, { "include": "#directives" }, { "include": "#document" }, { "include": "#presentation-detail" }], "while": "^" }, { "begin": "\\G", "name": "meta.stream.yaml", "patterns": [{ "include": "#byte-order-mark" }, { "include": "#directives" }, { "include": "#document" }, { "include": "#presentation-detail" }], "while": "\\G" }] }, "tag-implicit-plain-in": { "comment": "https://yaml.org/spec/1.2.2/#103-core-schema", "patterns": [{ "match": "\\G(?>null|Null|NULL|~)(?=[ ]++#|[ ]*+(?>[\n,\\]}]|:[\n,\\[\\]{}]))", "name": "constant.language.null.yaml" }, { "match": "\\G(?>true|True|TRUE|false|False|FALSE)(?=[ ]++#|[ ]*+(?>[\n,\\]}]|:[\n,\\[\\]{}]))", "name": "constant.language.boolean.yaml" }, { "match": "\\G[+-]?+[0-9]++(?=[ ]++#|[ ]*+(?>[\n,\\]}]|:[\n,\\[\\]{}]))", "name": "constant.numeric.integer.decimal.yaml" }, { "match": "\\G0o[0-7]++(?=[ ]++#|[ ]*+(?>[\n,\\]}]|:[\n,\\[\\]{}]))", "name": "constant.numeric.integer.octal.yaml" }, { "match": "\\G0x[0-9a-fA-F]++(?=[ ]++#|[ ]*+(?>[\n,\\]}]|:[\n,\\[\\]{}]))", "name": "constant.numeric.integer.hexadecimal.yaml" }, { "match": "\\G[+-]?+(?>\\.[0-9]++|[0-9]++(?>\\.[0-9]*+)?+)(?>[eE][+-]?+[0-9]++)?+(?=[ ]++#|[ ]*+(?>[\n,\\]}]|:[\n,\\[\\]{}]))", "name": "constant.numeric.float.yaml" }, { "match": "\\G[+-]?+\\.(?>inf|Inf|INF)(?=[ ]++#|[ ]*+(?>[\n,\\]}]|:[\n,\\[\\]{}]))", "name": "constant.numeric.float.inf.yaml" }, { "match": "\\G\\.(?>nan|NaN|NAN)(?=[ ]++#|[ ]*+(?>[\n,\\]}]|:[\n,\\[\\]{}]))", "name": "constant.numeric.float.nan.yaml" }] }, "tag-implicit-plain-out": { "comment": "https://yaml.org/spec/1.2.2/#103-core-schema", "patterns": [{ "match": "\\G(?>null|Null|NULL|~)(?=[ ]++#|[ ]*+(?>$|:[\n]))", "name": "constant.language.null.yaml" }, { "match": "\\G(?>true|True|TRUE|false|False|FALSE)(?=[ ]++#|[ ]*+(?>$|:[\n]))", "name": "constant.language.boolean.yaml" }, { "match": "\\G[+-]?+[0-9]++(?=[ ]++#|[ ]*+(?>$|:[\n]))", "name": "constant.numeric.integer.decimal.yaml" }, { "match": "\\G0o[0-7]++(?=[ ]++#|[ ]*+(?>$|:[\n]))", "name": "constant.numeric.integer.octal.yaml" }, { "match": "\\G0x[0-9a-fA-F]++(?=[ ]++#|[ ]*+(?>$|:[\n]))", "name": "constant.numeric.integer.hexadecimal.yaml" }, { "match": "\\G[+-]?+(?>\\.[0-9]++|[0-9]++(?>\\.[0-9]*+)?+)(?>[eE][+-]?+[0-9]++)?+(?=[ ]++#|[ ]*+(?>$|:[\n]))", "name": "constant.numeric.float.yaml" }, { "match": "\\G[+-]?+\\.(?>inf|Inf|INF)(?=[ ]++#|[ ]*+(?>$|:[\n]))", "name": "constant.numeric.float.inf.yaml" }, { "match": "\\G\\.(?>nan|NaN|NAN)(?=[ ]++#|[ ]*+(?>$|:[\n]))", "name": "constant.numeric.float.nan.yaml" }] }, "tag-property": { "//": ["!", "!!", "!<>", "!...", "!!...", "!<...>", "!...!..."], "comment": "https://yaml.org/spec/1.2.2/#rule-c-ns-tag-property", "patterns": [{ "match": "!(?=[\n])", "name": "storage.type.tag.non-specific.yaml punctuation.definition.tag.non-specific.yaml" }, { "begin": "!<", "beginCaptures": { "0": { "name": "punctuation.definition.tag.begin.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#rule-c-verbatim-tag", "end": ">", "endCaptures": { "0": { "name": "punctuation.definition.tag.end.yaml" } }, "name": "storage.type.tag.verbatim.yaml", "patterns": [{ "match": "%[0-9a-fA-F]{2}", "name": "constant.character.escape.unicode.8-bit.yaml" }, { "match": "%[^\n]{2,0}", "name": "invalid.illegal.constant.character.escape.unicode.8-bit.yaml" }, { "include": "source.yaml#non-printable" }, { "match": "[^\na-zA-Z0-9-#;/?:@&=+$,_.!~*'()\\[\\]%>]++", "name": "invalid.illegal.unrecognized.yaml" }] }, { "begin": "(?=!)", "comment": "https://yaml.org/spec/1.2.2/#rule-c-ns-shorthand-tag", "end": "(?=[\n,\\[\\]{}])", "name": "storage.type.tag.shorthand.yaml", "patterns": [{ "comment": "https://yaml.org/spec/1.2.2/#rule-c-secondary-tag-handle", "match": "\\G!!", "name": "punctuation.definition.tag.secondary.yaml" }, { "captures": { "1": { "name": "punctuation.definition.tag.named.yaml" }, "2": { "name": "punctuation.definition.tag.named.yaml" } }, "comment": "https://yaml.org/spec/1.2.2/#rule-c-secondary-tag-handle", "match": "\\G(!)[0-9A-Za-z-]++(!)" }, { "comment": "https://yaml.org/spec/1.2.2/#rule-c-primary-tag-handle", "match": "\\G!", "name": "punctuation.definition.tag.primary.yaml" }, { "match": "%[0-9a-fA-F]{2}", "name": "constant.character.escape.unicode.8-bit.yaml" }, { "match": "%[^\n]{2,0}", "name": "invalid.illegal.constant.character.escape.unicode.8-bit.yaml" }, { "include": "source.yaml#non-printable" }, { "match": "[^\na-zA-Z0-9-#;/?:@&=+$_.~*'()%]++", "name": "invalid.illegal.unrecognized.yaml" }] }] }, "unknown": { "match": `.[[^"':,\\[\\]{}]&&!-~\\x{85}\\x{A0}-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{010000}-\\x{10FFFF}]*+`, "name": "invalid.illegal.unrecognized.yaml" } }, "scopeName": "source.yaml.1.2", "aliases": ["yml"] });
1
+ const lang = Object.freeze({ "displayName": "YAML", "fileTypes": ["yaml", "yml", "rviz", "reek", "clang-format", "yaml-tmlanguage", "syntax", "sublime-syntax"], "firstLineMatch": "^%YAML( ?1.\\d+)?", "name": "yaml", "patterns": [{ "include": "#comment" }, { "include": "#property" }, { "include": "#directive" }, { "match": "^---", "name": "entity.other.document.begin.yaml" }, { "match": "^\\.{3}", "name": "entity.other.document.end.yaml" }, { "include": "#node" }], "repository": { "block-collection": { "patterns": [{ "include": "#block-sequence" }, { "include": "#block-mapping" }] }, "block-mapping": { "patterns": [{ "include": "#block-pair" }] }, "block-node": { "patterns": [{ "include": "#prototype" }, { "include": "#block-scalar" }, { "include": "#block-collection" }, { "include": "#flow-scalar-plain-out" }, { "include": "#flow-node" }] }, "block-pair": { "patterns": [{ "begin": "\\?", "beginCaptures": { "1": { "name": "punctuation.definition.key-value.begin.yaml" } }, "end": "(?=\\?)|^ *(:)|(:)", "endCaptures": { "1": { "name": "punctuation.separator.key-value.mapping.yaml" }, "2": { "name": "invalid.illegal.expected-newline.yaml" } }, "name": "meta.block-mapping.yaml", "patterns": [{ "include": "#block-node" }] }, { "begin": "(?x)\n(?=\n(?x:\n[^\\s[-?:,\\[\\]{}#&*!|>'\"%@`]]\n| [?:-] \\S\n)\n(\n[^\\s:]\n| : \\S\n| \\s+ (?![#\\s])\n)*\n\\s*\n:\n(\\s|$)\n)\n", "end": "(?x)\n(?=\n\\s* $\n| \\s+ \\#\n| \\s* : (\\s|$)\n)\n", "patterns": [{ "include": "#flow-scalar-plain-out-implicit-type" }, { "begin": "(?x)\n[^\\s[-?:,\\[\\]{}#&*!|>'\"%@`]]\n| [?:-] \\S\n", "beginCaptures": { "0": { "name": "entity.name.tag.yaml" } }, "contentName": "entity.name.tag.yaml", "end": "(?x)\n(?=\n\\s* $\n| \\s+ \\#\n| \\s* : (\\s|$)\n)\n", "name": "string.unquoted.plain.out.yaml" }] }, { "match": ":(?=\\s|$)", "name": "punctuation.separator.key-value.mapping.yaml" }] }, "block-scalar": { "begin": "(?:(\\|)|(>))([1-9])?([-+])?(.*\\n?)", "beginCaptures": { "1": { "name": "keyword.control.flow.block-scalar.literal.yaml" }, "2": { "name": "keyword.control.flow.block-scalar.folded.yaml" }, "3": { "name": "constant.numeric.indentation-indicator.yaml" }, "4": { "name": "storage.modifier.chomping-indicator.yaml" }, "5": { "patterns": [{ "include": "#comment" }, { "match": ".+", "name": "invalid.illegal.expected-comment-or-newline.yaml" }] } }, "end": "^(?=\\S)|(?!\\G)", "patterns": [{ "begin": "^([ ]+)(?! )", "end": "^(?!\\1|\\s*$)", "name": "string.unquoted.block.yaml" }] }, "block-sequence": { "match": "(-)(?!\\S)", "name": "punctuation.definition.block.sequence.item.yaml" }, "comment": { "begin": "(?:(^[ \\t]*)|[ \\t]+)(?=#\\p{Print}*$)", "beginCaptures": { "1": { "name": "punctuation.whitespace.comment.leading.yaml" } }, "end": "(?!\\G)", "patterns": [{ "begin": "#", "beginCaptures": { "0": { "name": "punctuation.definition.comment.yaml" } }, "end": "\\n", "name": "comment.line.number-sign.yaml" }] }, "directive": { "begin": "^%", "beginCaptures": { "0": { "name": "punctuation.definition.directive.begin.yaml" } }, "end": "(?=$|[ \\t]+($|#))", "name": "meta.directive.yaml", "patterns": [{ "captures": { "1": { "name": "keyword.other.directive.yaml.yaml" }, "2": { "name": "constant.numeric.yaml-version.yaml" } }, "match": "\\G(YAML)[ \\t]+(\\d+\\.\\d+)" }, { "captures": { "1": { "name": "keyword.other.directive.tag.yaml" }, "2": { "name": "storage.type.tag-handle.yaml" }, "3": { "name": "support.type.tag-prefix.yaml" } }, "match": "(?x)\n\\G\n(TAG)\n(?:[ \\t]+\n((?:!(?:[0-9A-Za-z\\-]*!)?))\n(?:[ \\t]+ (\n! (?x: %[0-9A-Fa-f]{2} | [0-9A-Za-z\\-#;/?:@&=+$,_.!~*'()\\[\\]] )*\n| (?![,!\\[\\]{}]) (?x: %[0-9A-Fa-f]{2} | [0-9A-Za-z\\-#;/?:@&=+$,_.!~*'()\\[\\]] )+\n)\n)?\n)?\n" }, { "captures": { "1": { "name": "support.other.directive.reserved.yaml" }, "2": { "name": "string.unquoted.directive-name.yaml" }, "3": { "name": "string.unquoted.directive-parameter.yaml" } }, "match": "(?x) \\G (\\w+) (?:[ \\t]+ (\\w+) (?:[ \\t]+ (\\w+))? )?" }, { "match": "\\S+", "name": "invalid.illegal.unrecognized.yaml" }] }, "flow-alias": { "captures": { "1": { "name": "keyword.control.flow.alias.yaml" }, "2": { "name": "punctuation.definition.alias.yaml" }, "3": { "name": "variable.other.alias.yaml" }, "4": { "name": "invalid.illegal.character.anchor.yaml" } }, "match": "((\\*))([^\\s\\[\\]/{/},]+)([^\\s\\]},]\\S*)?" }, "flow-collection": { "patterns": [{ "include": "#flow-sequence" }, { "include": "#flow-mapping" }] }, "flow-mapping": { "begin": "\\{", "beginCaptures": { "0": { "name": "punctuation.definition.mapping.begin.yaml" } }, "end": "\\}", "endCaptures": { "0": { "name": "punctuation.definition.mapping.end.yaml" } }, "name": "meta.flow-mapping.yaml", "patterns": [{ "include": "#prototype" }, { "match": ",", "name": "punctuation.separator.mapping.yaml" }, { "include": "#flow-pair" }] }, "flow-node": { "patterns": [{ "include": "#prototype" }, { "include": "#flow-alias" }, { "include": "#flow-collection" }, { "include": "#flow-scalar" }] }, "flow-pair": { "patterns": [{ "begin": "\\?", "beginCaptures": { "0": { "name": "punctuation.definition.key-value.begin.yaml" } }, "end": "(?=[},\\]])", "name": "meta.flow-pair.explicit.yaml", "patterns": [{ "include": "#prototype" }, { "include": "#flow-pair" }, { "include": "#flow-node" }, { "begin": ":(?=\\s|$|[\\[\\]{},])", "beginCaptures": { "0": { "name": "punctuation.separator.key-value.mapping.yaml" } }, "end": "(?=[},\\]])", "patterns": [{ "include": "#flow-value" }] }] }, { "begin": "(?x)\n(?=\n(?:\n[^\\s[-?:,\\[\\]{}#&*!|>'\"%@`]]\n| [?:-] [^\\s[\\[\\]{},]]\n)\n(\n[^\\s:[\\[\\]{},]]\n| : [^\\s[\\[\\]{},]]\n| \\s+ (?![#\\s])\n)*\n\\s*\n:\n(\\s|$)\n)\n", "end": "(?x)\n(?=\n\\s* $\n| \\s+ \\#\n| \\s* : (\\s|$)\n| \\s* : [\\[\\]{},]\n| \\s* [\\[\\]{},]\n)\n", "name": "meta.flow-pair.key.yaml", "patterns": [{ "include": "#flow-scalar-plain-in-implicit-type" }, { "begin": "(?x)\n[^\\s[-?:,\\[\\]{}#&*!|>'\"%@`]]\n| [?:-] [^\\s[\\[\\]{},]]\n", "beginCaptures": { "0": { "name": "entity.name.tag.yaml" } }, "contentName": "entity.name.tag.yaml", "end": "(?x)\n(?=\n\\s* $\n| \\s+ \\#\n| \\s* : (\\s|$)\n| \\s* : [\\[\\]{},]\n| \\s* [\\[\\]{},]\n)\n", "name": "string.unquoted.plain.in.yaml" }] }, { "include": "#flow-node" }, { "begin": ":(?=\\s|$|[\\[\\]{},])", "captures": { "0": { "name": "punctuation.separator.key-value.mapping.yaml" } }, "end": "(?=[},\\]])", "name": "meta.flow-pair.yaml", "patterns": [{ "include": "#flow-value" }] }] }, "flow-scalar": { "patterns": [{ "include": "#flow-scalar-double-quoted" }, { "include": "#flow-scalar-single-quoted" }, { "include": "#flow-scalar-plain-in" }] }, "flow-scalar-double-quoted": { "begin": '"', "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.yaml" } }, "end": '"', "endCaptures": { "0": { "name": "punctuation.definition.string.end.yaml" } }, "name": "string.quoted.double.yaml", "patterns": [{ "match": '\\\\([0abtnvfre "/\\\\N_Lp]|x\\d\\d|u\\d{4}|U\\d{8})', "name": "constant.character.escape.yaml" }, { "match": "\\\\\\n", "name": "constant.character.escape.double-quoted.newline.yaml" }] }, "flow-scalar-plain-in": { "patterns": [{ "include": "#flow-scalar-plain-in-implicit-type" }, { "begin": "(?x)\n[^\\s[-?:,\\[\\]{}#&*!|>'\"%@`]]\n| [?:-] [^\\s[\\[\\]{},]]\n", "end": "(?x)\n(?=\n\\s* $\n| \\s+ \\#\n| \\s* : (\\s|$)\n| \\s* : [\\[\\]{},]\n| \\s* [\\[\\]{},]\n)\n", "name": "string.unquoted.plain.in.yaml" }] }, "flow-scalar-plain-in-implicit-type": { "patterns": [{ "captures": { "1": { "name": "constant.language.null.yaml" }, "2": { "name": "constant.language.boolean.yaml" }, "3": { "name": "constant.numeric.integer.yaml" }, "4": { "name": "constant.numeric.float.yaml" }, "5": { "name": "constant.other.timestamp.yaml" }, "6": { "name": "constant.language.value.yaml" }, "7": { "name": "constant.language.merge.yaml" } }, "match": "(?x)\n(?x:\n(null|Null|NULL|~)\n| (y|Y|yes|Yes|YES|n|N|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)\n| (\n(?:\n[-+]? 0b [0-1_]+\n| [-+]? 0 [0-7_]+\n| [-+]? (?: 0|[1-9][0-9_]*)\n| [-+]? 0x [0-9a-fA-F_]+\n| [-+]? [1-9] [0-9_]* (?: :[0-5]?[0-9])+\n)\n)\n| (\n(?x:\n[-+]? (?: [0-9] [0-9_]*)? \\. [0-9.]* (?: [eE] [-+] [0-9]+)?\n| [-+]? [0-9] [0-9_]* (?: :[0-5]?[0-9])+ \\. [0-9_]*\n| [-+]? \\. (?: inf|Inf|INF)\n| \\. (?: nan|NaN|NAN)\n)\n)\n| (\n(?x:\n\\d{4} - \\d{2} - \\d{2}\n| \\d{4}\n- \\d{1,2}\n- \\d{1,2}\n(?: [Tt] | [ \\t]+) \\d{1,2}\n: \\d{2}\n: \\d{2}\n(?: \\.\\d*)?\n(?:\n(?:[ \\t]*) Z\n| [-+] \\d{1,2} (?: :\\d{1,2})?\n)?\n)\n)\n| (=)\n| (<<)\n)\n(?:\n(?=\n\\s* $\n| \\s+ \\#\n| \\s* : (\\s|$)\n| \\s* : [\\[\\]{},]\n| \\s* [\\[\\]{},]\n)\n)\n" }] }, "flow-scalar-plain-out": { "patterns": [{ "include": "#flow-scalar-plain-out-implicit-type" }, { "begin": "(?x)\n[^\\s[-?:,\\[\\]{}#&*!|>'\"%@`]]\n| [?:-] \\S\n", "end": "(?x)\n(?=\n\\s* $\n| \\s+ \\#\n| \\s* : (\\s|$)\n)\n", "name": "string.unquoted.plain.out.yaml" }] }, "flow-scalar-plain-out-implicit-type": { "patterns": [{ "captures": { "1": { "name": "constant.language.null.yaml" }, "2": { "name": "constant.language.boolean.yaml" }, "3": { "name": "constant.numeric.integer.yaml" }, "4": { "name": "constant.numeric.float.yaml" }, "5": { "name": "constant.other.timestamp.yaml" }, "6": { "name": "constant.language.value.yaml" }, "7": { "name": "constant.language.merge.yaml" } }, "match": "(?x)\n(?x:\n(null|Null|NULL|~)\n| (y|Y|yes|Yes|YES|n|N|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)\n| (\n(?:\n[-+]? 0b [0-1_]+\n| [-+]? 0 [0-7_]+\n| [-+]? (?: 0|[1-9][0-9_]*)\n| [-+]? 0x [0-9a-fA-F_]+\n| [-+]? [1-9] [0-9_]* (?: :[0-5]?[0-9])+\n)\n)\n| (\n(?x:\n[-+]? (?: [0-9] [0-9_]*)? \\. [0-9.]* (?: [eE] [-+] [0-9]+)?\n| [-+]? [0-9] [0-9_]* (?: :[0-5]?[0-9])+ \\. [0-9_]*\n| [-+]? \\. (?: inf|Inf|INF)\n| \\. (?: nan|NaN|NAN)\n)\n)\n| (\n(?x:\n\\d{4} - \\d{2} - \\d{2}\n| \\d{4}\n- \\d{1,2}\n- \\d{1,2}\n(?: [Tt] | [ \\t]+) \\d{1,2}\n: \\d{2}\n: \\d{2}\n(?: \\.\\d*)?\n(?:\n(?:[ \\t]*) Z\n| [-+] \\d{1,2} (?: :\\d{1,2})?\n)?\n)\n)\n| (=)\n| (<<)\n)\n(?x:\n(?=\n\\s* $\n| \\s+ \\#\n| \\s* : (\\s|$)\n)\n)\n" }] }, "flow-scalar-single-quoted": { "begin": "'", "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.yaml" } }, "end": "'(?!')", "endCaptures": { "0": { "name": "punctuation.definition.string.end.yaml" } }, "name": "string.quoted.single.yaml", "patterns": [{ "match": "''", "name": "constant.character.escape.single-quoted.yaml" }] }, "flow-sequence": { "begin": "\\[", "beginCaptures": { "0": { "name": "punctuation.definition.sequence.begin.yaml" } }, "end": "\\]", "endCaptures": { "0": { "name": "punctuation.definition.sequence.end.yaml" } }, "name": "meta.flow-sequence.yaml", "patterns": [{ "include": "#prototype" }, { "match": ",", "name": "punctuation.separator.sequence.yaml" }, { "include": "#flow-pair" }, { "include": "#flow-node" }] }, "flow-value": { "patterns": [{ "begin": "\\G(?![},\\]])", "end": "(?=[},\\]])", "name": "meta.flow-pair.value.yaml", "patterns": [{ "include": "#flow-node" }] }] }, "node": { "patterns": [{ "include": "#block-node" }] }, "property": { "begin": "(?=!|&)", "end": "(?!\\G)", "name": "meta.property.yaml", "patterns": [{ "captures": { "1": { "name": "keyword.control.property.anchor.yaml" }, "2": { "name": "punctuation.definition.anchor.yaml" }, "3": { "name": "entity.name.type.anchor.yaml" }, "4": { "name": "invalid.illegal.character.anchor.yaml" } }, "match": "\\G((&))([^\\s\\[\\]/{/},]+)(\\S+)?" }, { "match": "(?x)\n\\G\n(?:\n! < (?: %[0-9A-Fa-f]{2} | [0-9A-Za-z\\-#;/?:@&=+$,_.!~*'()\\[\\]] )+ >\n| (?:!(?:[0-9A-Za-z\\-]*!)?) (?: %[0-9A-Fa-f]{2} | [0-9A-Za-z\\-#;/?:@&=+$_.~*'()] )+\n| !\n)\n(?=\\ |\\t|$)\n", "name": "storage.type.tag-handle.yaml" }, { "match": "\\S+", "name": "invalid.illegal.tag-handle.yaml" }] }, "prototype": { "patterns": [{ "include": "#comment" }, { "include": "#property" }] } }, "scopeName": "source.yaml", "aliases": ["yml"] });
13
2
  var yaml = [
14
3
  lang
15
4
  ];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "shiki",
3
3
  "type": "module",
4
- "version": "1.10.2",
4
+ "version": "1.10.3",
5
5
  "description": "A beautiful Syntax Highlighter.",
6
6
  "author": "Pine Wu <octref@gmail.com>; Anthony Fu <anthonyfu117@hotmail.com>",
7
7
  "license": "MIT",
@@ -93,10 +93,10 @@
93
93
  ],
94
94
  "dependencies": {
95
95
  "@types/hast": "^3.0.4",
96
- "@shikijs/core": "1.10.2"
96
+ "@shikijs/core": "1.10.3"
97
97
  },
98
98
  "devDependencies": {
99
- "tm-grammars": "^1.13.6",
99
+ "tm-grammars": "^1.13.7",
100
100
  "tm-themes": "^1.5.1",
101
101
  "vscode-oniguruma": "^1.7.0"
102
102
  },