diff --git a/extensions/vscode-colorize-tests/test/colorize-results/issue-1550_yaml.json b/extensions/vscode-colorize-tests/test/colorize-results/issue-1550_yaml.json index cc1450808afac..28483b62a3b6b 100644 --- a/extensions/vscode-colorize-tests/test/colorize-results/issue-1550_yaml.json +++ b/extensions/vscode-colorize-tests/test/colorize-results/issue-1550_yaml.json @@ -1,7 +1,7 @@ [ { "c": "test1", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -15,7 +15,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -29,7 +29,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -43,7 +43,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -57,7 +57,7 @@ }, { "c": "dsd", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml string.unquoted.plain.out.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.out.yaml: #0000FF", @@ -71,7 +71,7 @@ }, { "c": "test2", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -85,7 +85,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -99,7 +99,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -113,7 +113,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -127,7 +127,7 @@ }, { "c": "abc-def", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml string.unquoted.plain.out.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.out.yaml: #0000FF", @@ -141,7 +141,7 @@ }, { "c": "test-3", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -155,7 +155,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -169,7 +169,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -183,7 +183,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -197,7 +197,7 @@ }, { "c": "abcdef", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml string.unquoted.plain.out.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.out.yaml: #0000FF", @@ -211,7 +211,7 @@ }, { "c": "test-4", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -225,7 +225,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -239,7 +239,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -253,7 +253,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -267,7 +267,7 @@ }, { "c": "abc-def", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml string.unquoted.plain.out.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.out.yaml: #0000FF", @@ -279,4 +279,4 @@ "light_modern": "string.unquoted.plain.out.yaml: #0000FF" } } -] \ No newline at end of file +] diff --git a/extensions/vscode-colorize-tests/test/colorize-results/issue-4008_yaml.json b/extensions/vscode-colorize-tests/test/colorize-results/issue-4008_yaml.json index c8c2d57d90360..c02f7f4628c7f 100644 --- a/extensions/vscode-colorize-tests/test/colorize-results/issue-4008_yaml.json +++ b/extensions/vscode-colorize-tests/test/colorize-results/issue-4008_yaml.json @@ -1,7 +1,7 @@ [ { "c": "-", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml punctuation.definition.block.sequence.item.yaml", + "t": "source.yaml punctuation.definition.block.sequence.item.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -15,7 +15,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -29,7 +29,7 @@ }, { "c": "blue", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -43,7 +43,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -57,7 +57,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -71,7 +71,7 @@ }, { "c": "a=\"brown,not_brown\"", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml string.unquoted.plain.out.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.out.yaml: #0000FF", @@ -85,7 +85,7 @@ }, { "c": "-", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml punctuation.definition.block.sequence.item.yaml", + "t": "source.yaml punctuation.definition.block.sequence.item.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -99,7 +99,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -113,7 +113,7 @@ }, { "c": "not_blue", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -127,7 +127,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -141,7 +141,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -155,7 +155,7 @@ }, { "c": "foo", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml string.unquoted.plain.out.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.out.yaml: #0000FF", @@ -169,7 +169,7 @@ }, { "c": "-", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml punctuation.definition.block.sequence.item.yaml", + "t": "source.yaml punctuation.definition.block.sequence.item.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -183,7 +183,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -197,7 +197,7 @@ }, { "c": "blue", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -211,7 +211,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -225,7 +225,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -239,7 +239,7 @@ }, { "c": "foo=\"}\"", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml string.unquoted.plain.out.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.out.yaml: #0000FF", @@ -253,7 +253,7 @@ }, { "c": "-", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml punctuation.definition.block.sequence.item.yaml", + "t": "source.yaml punctuation.definition.block.sequence.item.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -267,7 +267,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -281,7 +281,7 @@ }, { "c": "not_blue", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -295,7 +295,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -309,7 +309,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -323,7 +323,7 @@ }, { "c": "1", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml string.unquoted.plain.out.yaml constant.numeric.integer.decimal.yaml", + "t": "source.yaml constant.numeric.integer.yaml", "r": { "dark_plus": "constant.numeric: #B5CEA8", "light_plus": "constant.numeric: #098658", @@ -335,4 +335,4 @@ "light_modern": "constant.numeric: #098658" } } -] \ No newline at end of file +] diff --git a/extensions/vscode-colorize-tests/test/colorize-results/issue-6303_yaml.json b/extensions/vscode-colorize-tests/test/colorize-results/issue-6303_yaml.json index e5267d6249425..efef65e1f41aa 100644 --- a/extensions/vscode-colorize-tests/test/colorize-results/issue-6303_yaml.json +++ b/extensions/vscode-colorize-tests/test/colorize-results/issue-6303_yaml.json @@ -1,7 +1,7 @@ [ { "c": "swagger", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -15,7 +15,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -29,7 +29,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -43,7 +43,7 @@ }, { "c": "'", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml string.quoted.single.yaml punctuation.definition.string.begin.yaml", + "t": "source.yaml string.quoted.single.yaml punctuation.definition.string.begin.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.quoted.single.yaml: #0000FF", @@ -57,7 +57,7 @@ }, { "c": "2.0", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml string.quoted.single.yaml", + "t": "source.yaml string.quoted.single.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.quoted.single.yaml: #0000FF", @@ -71,7 +71,7 @@ }, { "c": "'", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml string.quoted.single.yaml punctuation.definition.string.end.yaml", + "t": "source.yaml string.quoted.single.yaml punctuation.definition.string.end.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.quoted.single.yaml: #0000FF", @@ -85,7 +85,7 @@ }, { "c": "info", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -99,7 +99,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -113,7 +113,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -127,7 +127,7 @@ }, { "c": "description", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -141,7 +141,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -155,7 +155,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -169,7 +169,7 @@ }, { "c": "'", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml string.quoted.single.yaml punctuation.definition.string.begin.yaml", + "t": "source.yaml string.quoted.single.yaml punctuation.definition.string.begin.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.quoted.single.yaml: #0000FF", @@ -183,7 +183,7 @@ }, { "c": "The API Management Service API defines an updated and refined version", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml string.quoted.single.yaml", + "t": "source.yaml string.quoted.single.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.quoted.single.yaml: #0000FF", @@ -196,64 +196,8 @@ } }, { - "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", - "r": { - "dark_plus": "default: #D4D4D4", - "light_plus": "default: #000000", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "default: #FFFFFF", - "dark_modern": "default: #CCCCCC", - "hc_light": "default: #292929", - "light_modern": "default: #3B3B3B" - } - }, - { - "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml string.quoted.single.yaml punctuation.whitespace.separator.yaml", - "r": { - "dark_plus": "string: #CE9178", - "light_plus": "string.quoted.single.yaml: #0000FF", - "dark_vs": "string: #CE9178", - "light_vs": "string.quoted.single.yaml: #0000FF", - "hc_black": "string: #CE9178", - "dark_modern": "string: #CE9178", - "hc_light": "string.quoted.single.yaml: #0F4A85", - "light_modern": "string.quoted.single.yaml: #0000FF" - } - }, - { - "c": "of the concepts currently known as Developer, APP, and API Product in Edge. Of", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml string.quoted.single.yaml", - "r": { - "dark_plus": "string: #CE9178", - "light_plus": "string.quoted.single.yaml: #0000FF", - "dark_vs": "string: #CE9178", - "light_vs": "string.quoted.single.yaml: #0000FF", - "hc_black": "string: #CE9178", - "dark_modern": "string: #CE9178", - "hc_light": "string.quoted.single.yaml: #0F4A85", - "light_modern": "string.quoted.single.yaml: #0000FF" - } - }, - { - "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", - "r": { - "dark_plus": "default: #D4D4D4", - "light_plus": "default: #000000", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "default: #FFFFFF", - "dark_modern": "default: #CCCCCC", - "hc_light": "default: #292929", - "light_modern": "default: #3B3B3B" - } - }, - { - "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml string.quoted.single.yaml punctuation.whitespace.separator.yaml", + "c": " of the concepts currently known as Developer, APP, and API Product in Edge. Of", + "t": "source.yaml string.quoted.single.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.quoted.single.yaml: #0000FF", @@ -266,8 +210,8 @@ } }, { - "c": "note is the introduction of the API concept, missing previously from Edge", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml string.quoted.single.yaml", + "c": " note is the introduction of the API concept, missing previously from Edge", + "t": "source.yaml string.quoted.single.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.quoted.single.yaml: #0000FF", @@ -280,22 +224,8 @@ } }, { - "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", - "r": { - "dark_plus": "default: #D4D4D4", - "light_plus": "default: #000000", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "default: #FFFFFF", - "dark_modern": "default: #CCCCCC", - "hc_light": "default: #292929", - "light_modern": "default: #3B3B3B" - } - }, - { - "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml string.quoted.single.yaml punctuation.whitespace.separator.yaml", + "c": " ", + "t": "source.yaml string.quoted.single.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.quoted.single.yaml: #0000FF", @@ -309,7 +239,7 @@ }, { "c": "'", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml string.quoted.single.yaml punctuation.definition.string.end.yaml", + "t": "source.yaml string.quoted.single.yaml punctuation.definition.string.end.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.quoted.single.yaml: #0000FF", @@ -323,7 +253,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -337,7 +267,7 @@ }, { "c": "title", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -351,7 +281,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -365,7 +295,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -379,7 +309,7 @@ }, { "c": "API Management Service API", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml string.unquoted.plain.out.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.out.yaml: #0000FF", @@ -393,7 +323,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -407,7 +337,7 @@ }, { "c": "version", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -421,7 +351,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -435,7 +365,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -449,7 +379,7 @@ }, { "c": "initial", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml string.unquoted.plain.out.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.out.yaml: #0000FF", @@ -461,4 +391,4 @@ "light_modern": "string.unquoted.plain.out.yaml: #0000FF" } } -] \ No newline at end of file +] diff --git a/extensions/vscode-colorize-tests/test/colorize-results/test_yaml.json b/extensions/vscode-colorize-tests/test/colorize-results/test_yaml.json index 0908e19e3eae0..78a12871f4e7a 100644 --- a/extensions/vscode-colorize-tests/test/colorize-results/test_yaml.json +++ b/extensions/vscode-colorize-tests/test/colorize-results/test_yaml.json @@ -1,7 +1,7 @@ [ { "c": "#", - "t": "source.yaml meta.stream.yaml comment.line.number-sign.yaml punctuation.definition.comment.yaml", + "t": "source.yaml comment.line.number-sign.yaml punctuation.definition.comment.yaml", "r": { "dark_plus": "comment: #6A9955", "light_plus": "comment: #008000", @@ -15,7 +15,7 @@ }, { "c": " sequencer protocols for Laser eye surgery", - "t": "source.yaml meta.stream.yaml comment.line.number-sign.yaml", + "t": "source.yaml comment.line.number-sign.yaml", "r": { "dark_plus": "comment: #6A9955", "light_plus": "comment: #008000", @@ -29,7 +29,7 @@ }, { "c": "---", - "t": "source.yaml meta.stream.yaml meta.document.yaml entity.other.document.begin.yaml", + "t": "source.yaml entity.other.document.begin.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -43,7 +43,7 @@ }, { "c": "-", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml punctuation.definition.block.sequence.item.yaml", + "t": "source.yaml punctuation.definition.block.sequence.item.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -57,7 +57,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -71,7 +71,7 @@ }, { "c": "step", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -85,7 +85,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -99,7 +99,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -113,7 +113,7 @@ }, { "c": "&", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml keyword.control.flow.anchor.yaml punctuation.definition.anchor.yaml", + "t": "source.yaml meta.property.yaml keyword.control.property.anchor.yaml punctuation.definition.anchor.yaml", "r": { "dark_plus": "keyword.control: #C586C0", "light_plus": "keyword.control: #AF00DB", @@ -127,21 +127,21 @@ }, { "c": "id001", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml keyword.control.flow.anchor.yaml variable.other.anchor.yaml", + "t": "source.yaml meta.property.yaml entity.name.type.anchor.yaml", "r": { - "dark_plus": "variable: #9CDCFE", - "light_plus": "variable: #001080", - "dark_vs": "keyword.control: #569CD6", - "light_vs": "keyword.control: #0000FF", - "hc_black": "variable: #9CDCFE", - "dark_modern": "variable: #9CDCFE", - "hc_light": "variable: #001080", - "light_modern": "variable: #001080" + "dark_plus": "entity.name.type: #4EC9B0", + "light_plus": "entity.name.type: #267F99", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "entity.name.type: #4EC9B0", + "dark_modern": "entity.name.type: #4EC9B0", + "hc_light": "entity.name.type: #185E73", + "light_modern": "entity.name.type: #267F99" } }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -155,7 +155,7 @@ }, { "c": "#", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml comment.line.number-sign.yaml punctuation.definition.comment.yaml", + "t": "source.yaml comment.line.number-sign.yaml punctuation.definition.comment.yaml", "r": { "dark_plus": "comment: #6A9955", "light_plus": "comment: #008000", @@ -169,7 +169,7 @@ }, { "c": " defines anchor label &id001", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml comment.line.number-sign.yaml", + "t": "source.yaml comment.line.number-sign.yaml", "r": { "dark_plus": "comment: #6A9955", "light_plus": "comment: #008000", @@ -182,22 +182,8 @@ } }, { - "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", - "r": { - "dark_plus": "default: #D4D4D4", - "light_plus": "default: #000000", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "default: #FFFFFF", - "dark_modern": "default: #CCCCCC", - "hc_light": "default: #292929", - "light_modern": "default: #3B3B3B" - } - }, - { - "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "c": " ", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -211,7 +197,7 @@ }, { "c": "instrument", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -225,7 +211,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -239,7 +225,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -253,7 +239,7 @@ }, { "c": "Lasik 2000", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml string.unquoted.plain.out.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.out.yaml: #0000FF", @@ -266,22 +252,8 @@ } }, { - "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", - "r": { - "dark_plus": "default: #D4D4D4", - "light_plus": "default: #000000", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "default: #FFFFFF", - "dark_modern": "default: #CCCCCC", - "hc_light": "default: #292929", - "light_modern": "default: #3B3B3B" - } - }, - { - "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "c": " ", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -295,7 +267,7 @@ }, { "c": "pulseEnergy", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -309,7 +281,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -323,7 +295,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -337,7 +309,7 @@ }, { "c": "5.4", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml string.unquoted.plain.out.yaml constant.numeric.float.yaml", + "t": "source.yaml constant.numeric.float.yaml", "r": { "dark_plus": "constant.numeric: #B5CEA8", "light_plus": "constant.numeric: #098658", @@ -350,22 +322,8 @@ } }, { - "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", - "r": { - "dark_plus": "default: #D4D4D4", - "light_plus": "default: #000000", - "dark_vs": "default: #D4D4D4", - "light_vs": "default: #000000", - "hc_black": "default: #FFFFFF", - "dark_modern": "default: #CCCCCC", - "hc_light": "default: #292929", - "light_modern": "default: #3B3B3B" - } - }, - { - "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "c": " ", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -379,7 +337,7 @@ }, { "c": "spotSize", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -393,7 +351,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -407,7 +365,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -421,7 +379,7 @@ }, { "c": "1mm", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.mapping.yaml meta.map.value.yaml string.unquoted.plain.out.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.out.yaml: #0000FF", @@ -435,7 +393,7 @@ }, { "c": "-", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml punctuation.definition.block.sequence.item.yaml", + "t": "source.yaml punctuation.definition.block.sequence.item.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -449,7 +407,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -463,7 +421,7 @@ }, { "c": "step", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -477,7 +435,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -491,7 +449,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -505,7 +463,7 @@ }, { "c": "*", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml keyword.control.flow.alias.yaml punctuation.definition.alias.yaml", + "t": "source.yaml keyword.control.flow.alias.yaml punctuation.definition.alias.yaml", "r": { "dark_plus": "keyword.control: #C586C0", "light_plus": "keyword.control: #AF00DB", @@ -519,12 +477,12 @@ }, { "c": "id001", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml keyword.control.flow.alias.yaml variable.other.alias.yaml", + "t": "source.yaml variable.other.alias.yaml", "r": { "dark_plus": "variable: #9CDCFE", "light_plus": "variable: #001080", - "dark_vs": "keyword.control: #569CD6", - "light_vs": "keyword.control: #0000FF", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", "hc_black": "variable: #9CDCFE", "dark_modern": "variable: #9CDCFE", "hc_light": "variable: #001080", @@ -533,7 +491,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -547,7 +505,7 @@ }, { "c": "#", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml comment.line.number-sign.yaml punctuation.definition.comment.yaml", + "t": "source.yaml comment.line.number-sign.yaml punctuation.definition.comment.yaml", "r": { "dark_plus": "comment: #6A9955", "light_plus": "comment: #008000", @@ -561,7 +519,7 @@ }, { "c": " refers to the first step (with anchor &id001)", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml comment.line.number-sign.yaml", + "t": "source.yaml comment.line.number-sign.yaml", "r": { "dark_plus": "comment: #6A9955", "light_plus": "comment: #008000", @@ -575,7 +533,7 @@ }, { "c": "-", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml punctuation.definition.block.sequence.item.yaml", + "t": "source.yaml punctuation.definition.block.sequence.item.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -589,7 +547,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -603,7 +561,7 @@ }, { "c": "step", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -617,7 +575,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -631,7 +589,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -645,7 +603,7 @@ }, { "c": "*", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml keyword.control.flow.alias.yaml punctuation.definition.alias.yaml", + "t": "source.yaml keyword.control.flow.alias.yaml punctuation.definition.alias.yaml", "r": { "dark_plus": "keyword.control: #C586C0", "light_plus": "keyword.control: #AF00DB", @@ -659,12 +617,12 @@ }, { "c": "id001", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml keyword.control.flow.alias.yaml variable.other.alias.yaml", + "t": "source.yaml variable.other.alias.yaml", "r": { "dark_plus": "variable: #9CDCFE", "light_plus": "variable: #001080", - "dark_vs": "keyword.control: #569CD6", - "light_vs": "keyword.control: #0000FF", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", "hc_black": "variable: #9CDCFE", "dark_modern": "variable: #9CDCFE", "hc_light": "variable: #001080", @@ -672,8 +630,8 @@ } }, { - "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "c": " ", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -686,8 +644,22 @@ } }, { - "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "c": "spotSize", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", + "r": { + "dark_plus": "entity.name.tag: #569CD6", + "light_plus": "entity.name.tag: #800000", + "dark_vs": "entity.name.tag: #569CD6", + "light_vs": "entity.name.tag: #800000", + "hc_black": "entity.name.tag: #569CD6", + "dark_modern": "entity.name.tag: #569CD6", + "hc_light": "entity.name.tag: #0F4A85", + "light_modern": "entity.name.tag: #800000" + } + }, + { + "c": ":", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -699,23 +671,9 @@ "light_modern": "default: #3B3B3B" } }, - { - "c": "spotSize:", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml invalid.illegal.unrecognized.yaml", - "r": { - "dark_plus": "invalid: #F44747", - "light_plus": "invalid: #CD3131", - "dark_vs": "invalid: #F44747", - "light_vs": "invalid: #CD3131", - "hc_black": "invalid: #F44747", - "dark_modern": "invalid: #F44747", - "hc_light": "invalid: #B5200D", - "light_modern": "invalid: #CD3131" - } - }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -729,7 +687,7 @@ }, { "c": "2mm", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml string.unquoted.plain.out.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.out.yaml: #0000FF", @@ -743,21 +701,21 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml string.unquoted.plain.out.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { - "dark_plus": "string: #CE9178", - "light_plus": "string.unquoted.plain.out.yaml: #0000FF", - "dark_vs": "string: #CE9178", - "light_vs": "string.unquoted.plain.out.yaml: #0000FF", - "hc_black": "string: #CE9178", - "dark_modern": "string: #CE9178", - "hc_light": "string.unquoted.plain.out.yaml: #0F4A85", - "light_modern": "string.unquoted.plain.out.yaml: #0000FF" + "dark_plus": "default: #D4D4D4", + "light_plus": "default: #000000", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", + "hc_black": "default: #FFFFFF", + "dark_modern": "default: #CCCCCC", + "hc_light": "default: #292929", + "light_modern": "default: #3B3B3B" } }, { "c": "-", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml punctuation.definition.block.sequence.item.yaml", + "t": "source.yaml punctuation.definition.block.sequence.item.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -771,7 +729,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -785,7 +743,7 @@ }, { "c": "step", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -799,7 +757,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -813,7 +771,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -827,7 +785,7 @@ }, { "c": "*", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml keyword.control.flow.alias.yaml punctuation.definition.alias.yaml", + "t": "source.yaml keyword.control.flow.alias.yaml punctuation.definition.alias.yaml", "r": { "dark_plus": "keyword.control: #C586C0", "light_plus": "keyword.control: #AF00DB", @@ -841,12 +799,12 @@ }, { "c": "id002", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml keyword.control.flow.alias.yaml variable.other.alias.yaml", + "t": "source.yaml variable.other.alias.yaml", "r": { "dark_plus": "variable: #9CDCFE", "light_plus": "variable: #001080", - "dark_vs": "keyword.control: #569CD6", - "light_vs": "keyword.control: #0000FF", + "dark_vs": "default: #D4D4D4", + "light_vs": "default: #000000", "hc_black": "variable: #9CDCFE", "dark_modern": "variable: #9CDCFE", "hc_light": "variable: #001080", @@ -855,7 +813,7 @@ }, { "c": "-", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml punctuation.definition.block.sequence.item.yaml", + "t": "source.yaml punctuation.definition.block.sequence.item.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -869,7 +827,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -883,7 +841,7 @@ }, { "c": "{", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.flow.mapping.yaml punctuation.definition.mapping.begin.yaml", + "t": "source.yaml meta.flow-mapping.yaml punctuation.definition.mapping.begin.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -897,7 +855,7 @@ }, { "c": "name", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.flow.mapping.yaml meta.flow.map.implicit.yaml meta.flow.map.key.yaml string.unquoted.plain.in.yaml entity.name.tag.yaml", + "t": "source.yaml meta.flow-mapping.yaml meta.flow-pair.key.yaml string.unquoted.plain.in.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -911,7 +869,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.flow.mapping.yaml meta.flow.map.implicit.yaml meta.flow.pair.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml meta.flow-mapping.yaml meta.flow-pair.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -925,7 +883,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.flow.mapping.yaml meta.flow.map.implicit.yaml meta.flow.pair.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml meta.flow-mapping.yaml meta.flow-pair.yaml meta.flow-pair.value.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -939,7 +897,7 @@ }, { "c": "John Smith", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.flow.mapping.yaml meta.flow.map.implicit.yaml meta.flow.pair.value.yaml string.unquoted.plain.in.yaml", + "t": "source.yaml meta.flow-mapping.yaml meta.flow-pair.yaml meta.flow-pair.value.yaml string.unquoted.plain.in.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.in.yaml: #0000FF", @@ -953,7 +911,7 @@ }, { "c": ",", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.flow.mapping.yaml punctuation.separator.mapping.yaml", + "t": "source.yaml meta.flow-mapping.yaml punctuation.separator.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -967,7 +925,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.flow.mapping.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml meta.flow-mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -981,7 +939,7 @@ }, { "c": "age", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.flow.mapping.yaml meta.flow.map.implicit.yaml meta.flow.map.key.yaml string.unquoted.plain.in.yaml entity.name.tag.yaml", + "t": "source.yaml meta.flow-mapping.yaml meta.flow-pair.key.yaml string.unquoted.plain.in.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -995,7 +953,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.flow.mapping.yaml meta.flow.map.implicit.yaml meta.flow.pair.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml meta.flow-mapping.yaml meta.flow-pair.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1009,7 +967,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.flow.mapping.yaml meta.flow.map.implicit.yaml meta.flow.pair.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml meta.flow-mapping.yaml meta.flow-pair.yaml meta.flow-pair.value.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1023,7 +981,7 @@ }, { "c": "33", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.flow.mapping.yaml meta.flow.map.implicit.yaml meta.flow.pair.value.yaml string.unquoted.plain.in.yaml constant.numeric.integer.decimal.yaml", + "t": "source.yaml meta.flow-mapping.yaml meta.flow-pair.yaml meta.flow-pair.value.yaml constant.numeric.integer.yaml", "r": { "dark_plus": "constant.numeric: #B5CEA8", "light_plus": "constant.numeric: #098658", @@ -1037,7 +995,7 @@ }, { "c": "}", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.flow.mapping.yaml punctuation.definition.mapping.end.yaml", + "t": "source.yaml meta.flow-mapping.yaml punctuation.definition.mapping.end.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1051,7 +1009,7 @@ }, { "c": "-", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml punctuation.definition.block.sequence.item.yaml", + "t": "source.yaml punctuation.definition.block.sequence.item.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1065,7 +1023,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1079,7 +1037,7 @@ }, { "c": "name", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -1093,7 +1051,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1107,7 +1065,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1121,7 +1079,7 @@ }, { "c": "Mary Smith", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml string.unquoted.plain.out.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.out.yaml: #0000FF", @@ -1135,7 +1093,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1149,7 +1107,7 @@ }, { "c": "age", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -1163,7 +1121,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1177,7 +1135,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1191,7 +1149,7 @@ }, { "c": "27", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml string.unquoted.plain.out.yaml constant.numeric.integer.decimal.yaml", + "t": "source.yaml constant.numeric.integer.yaml", "r": { "dark_plus": "constant.numeric: #B5CEA8", "light_plus": "constant.numeric: #098658", @@ -1205,7 +1163,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1218,22 +1176,8 @@ } }, { - "c": "m", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml invalid.illegal.expected-indentation.yaml", - "r": { - "dark_plus": "invalid: #F44747", - "light_plus": "invalid: #CD3131", - "dark_vs": "invalid: #F44747", - "light_vs": "invalid: #CD3131", - "hc_black": "invalid: #F44747", - "dark_modern": "invalid: #F44747", - "hc_light": "invalid: #B5200D", - "light_modern": "invalid: #CD3131" - } - }, - { - "c": "en", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "c": "men", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -1247,7 +1191,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1261,7 +1205,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1275,7 +1219,7 @@ }, { "c": "[", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.flow.sequence.yaml punctuation.definition.sequence.begin.yaml", + "t": "source.yaml meta.flow-sequence.yaml punctuation.definition.sequence.begin.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1289,7 +1233,7 @@ }, { "c": "John Smith", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.flow.sequence.yaml string.unquoted.plain.in.yaml", + "t": "source.yaml meta.flow-sequence.yaml string.unquoted.plain.in.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.in.yaml: #0000FF", @@ -1303,7 +1247,7 @@ }, { "c": ",", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.flow.sequence.yaml punctuation.separator.sequence.yaml", + "t": "source.yaml meta.flow-sequence.yaml punctuation.separator.sequence.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1317,7 +1261,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.flow.sequence.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml meta.flow-sequence.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1331,7 +1275,7 @@ }, { "c": "Bill Jones", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.flow.sequence.yaml string.unquoted.plain.in.yaml", + "t": "source.yaml meta.flow-sequence.yaml string.unquoted.plain.in.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.in.yaml: #0000FF", @@ -1345,7 +1289,7 @@ }, { "c": "]", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.flow.sequence.yaml punctuation.definition.sequence.end.yaml", + "t": "source.yaml meta.flow-sequence.yaml punctuation.definition.sequence.end.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1358,36 +1302,8 @@ } }, { - "c": "w", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml invalid.illegal.expected-indentation.yaml", - "r": { - "dark_plus": "invalid: #F44747", - "light_plus": "invalid: #CD3131", - "dark_vs": "invalid: #F44747", - "light_vs": "invalid: #CD3131", - "hc_black": "invalid: #F44747", - "dark_modern": "invalid: #F44747", - "hc_light": "invalid: #B5200D", - "light_modern": "invalid: #CD3131" - } - }, - { - "c": "o", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml invalid.illegal.expected-indentation.yaml", - "r": { - "dark_plus": "invalid: #F44747", - "light_plus": "invalid: #CD3131", - "dark_vs": "invalid: #F44747", - "light_vs": "invalid: #CD3131", - "hc_black": "invalid: #F44747", - "dark_modern": "invalid: #F44747", - "hc_light": "invalid: #B5200D", - "light_modern": "invalid: #CD3131" - } - }, - { - "c": "men", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", + "c": "women", + "t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml", "r": { "dark_plus": "entity.name.tag: #569CD6", "light_plus": "entity.name.tag: #800000", @@ -1401,7 +1317,7 @@ }, { "c": ":", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml", + "t": "source.yaml punctuation.separator.key-value.mapping.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1415,7 +1331,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1429,7 +1345,7 @@ }, { "c": "-", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.block.sequence.yaml punctuation.definition.block.sequence.item.yaml", + "t": "source.yaml punctuation.definition.block.sequence.item.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1443,7 +1359,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.block.sequence.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1457,7 +1373,7 @@ }, { "c": "Mary Smith", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.block.sequence.yaml string.unquoted.plain.out.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.out.yaml: #0000FF", @@ -1471,7 +1387,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml punctuation.whitespace.indentation.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1485,7 +1401,7 @@ }, { "c": "-", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.block.sequence.yaml punctuation.definition.block.sequence.item.yaml", + "t": "source.yaml punctuation.definition.block.sequence.item.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1499,7 +1415,7 @@ }, { "c": " ", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.block.sequence.yaml punctuation.whitespace.separator.yaml", + "t": "source.yaml", "r": { "dark_plus": "default: #D4D4D4", "light_plus": "default: #000000", @@ -1513,7 +1429,7 @@ }, { "c": "Susan Williams", - "t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml meta.block.sequence.yaml string.unquoted.plain.out.yaml", + "t": "source.yaml string.unquoted.plain.out.yaml", "r": { "dark_plus": "string: #CE9178", "light_plus": "string.unquoted.plain.out.yaml: #0000FF", @@ -1525,4 +1441,4 @@ "light_modern": "string.unquoted.plain.out.yaml: #0000FF" } } -] \ No newline at end of file +] diff --git a/extensions/yaml/build/update-grammar.js b/extensions/yaml/build/update-grammar.js deleted file mode 100644 index 8684bc3e5d047..0000000000000 --- a/extensions/yaml/build/update-grammar.js +++ /dev/null @@ -1,17 +0,0 @@ -/*--------------------------------------------------------------------------------------------- - * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for license information. - *--------------------------------------------------------------------------------------------*/ -'use strict'; - -var updateGrammar = require('vscode-grammar-updater'); - -async function updateGrammars() { - await updateGrammar.update('RedCMD/YAML-Syntax-Highlighter', 'syntaxes/yaml-1.0.tmLanguage.json', './syntaxes/yaml-1.0.tmLanguage.json', undefined, 'main'); - await updateGrammar.update('RedCMD/YAML-Syntax-Highlighter', 'syntaxes/yaml-1.1.tmLanguage.json', './syntaxes/yaml-1.1.tmLanguage.json', undefined, 'main'); - await updateGrammar.update('RedCMD/YAML-Syntax-Highlighter', 'syntaxes/yaml-1.2.tmLanguage.json', './syntaxes/yaml-1.2.tmLanguage.json', undefined, 'main'); - await updateGrammar.update('RedCMD/YAML-Syntax-Highlighter', 'syntaxes/yaml-1.3.tmLanguage.json', './syntaxes/yaml-1.3.tmLanguage.json', undefined, 'main'); - await updateGrammar.update('RedCMD/YAML-Syntax-Highlighter', 'syntaxes/yaml.tmLanguage.json', './syntaxes/yaml.tmLanguage.json', undefined, 'main'); -} - -updateGrammars(); diff --git a/extensions/yaml/cgmanifest.json b/extensions/yaml/cgmanifest.json index 18882ead40a00..80ba8ae522cb1 100644 --- a/extensions/yaml/cgmanifest.json +++ b/extensions/yaml/cgmanifest.json @@ -4,25 +4,34 @@ "component": { "type": "git", "git": { - "name": "RedCMD/YAML-Syntax-Highlighter", - "repositoryUrl": "https://github.com/RedCMD/YAML-Syntax-Highlighter", - "commitHash": "d4dca9f38a654ebbb13c1b72b7881e3c5864a778" + "name": "textmate/yaml.tmbundle", + "repositoryUrl": "https://github.com/textmate/yaml.tmbundle", + "commitHash": "e54ceae3b719506dba7e481a77cea4a8b576ae46" } }, "licenseDetail": [ - "MIT License", + "Copyright (c) 2015 FichteFoll ", "", - "Copyright 2024 RedCMD", + "Permission is hereby granted, free of charge, to any person obtaining a copy", + "of this software and associated documentation files (the \"Software\"), to deal", + "in the Software without restriction, including without limitation the rights", + "to use, copy, modify, merge, publish, distribute, sublicense, and/or sell", + "copies of the Software, and to permit persons to whom the Software is", + "furnished to do so, subject to the following conditions:", "", - "Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:", + "The above copyright notice and this permission notice shall be included in all", + "copies or substantial portions of the Software.", "", - "The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.", - "", - "THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE." + "THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR", + "IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,", + "FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE", + "AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER", + "LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,", + "OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE." ], - "license": "MIT", - "version": "1.1.1" + "license": "TextMate Bundle License", + "version": "0.0.0" } ], "version": 1 -} \ No newline at end of file +} diff --git a/extensions/yaml/package.json b/extensions/yaml/package.json index 2b0ee01396413..5223f71c52b7a 100644 --- a/extensions/yaml/package.json +++ b/extensions/yaml/package.json @@ -9,7 +9,7 @@ "vscode": "*" }, "scripts": { - "update-grammar": "node ./build/update-grammar.js" + "update-grammar": "node ../node_modules/vscode-grammar-updater/bin textmate/yaml.tmbundle Syntaxes/YAML.tmLanguage ./syntaxes/yaml.tmLanguage.json" }, "categories": ["Programming Languages"], "contributes": { @@ -56,32 +56,10 @@ "scopeName": "source.yaml", "path": "./syntaxes/yaml.tmLanguage.json" }, - { - "scopeName": "source.yaml.1.3", - "path": "./syntaxes/yaml-1.3.tmLanguage.json" - }, - { - "scopeName": "source.yaml.1.2", - "path": "./syntaxes/yaml-1.2.tmLanguage.json" - }, - { - "scopeName": "source.yaml.1.1", - "path": "./syntaxes/yaml-1.1.tmLanguage.json" - }, - { - "scopeName": "source.yaml.1.0", - "path": "./syntaxes/yaml-1.0.tmLanguage.json" - }, { "language": "yaml", "scopeName": "source.yaml", - "path": "./syntaxes/yaml.tmLanguage.json", - "unbalancedBracketScopes": [ - "invalid.illegal", - "meta.scalar.yaml", - "storage.type.tag.shorthand.yaml", - "keyword.control.flow" - ] + "path": "./syntaxes/yaml.tmLanguage.json" } ], "configurationDefaults": { diff --git a/extensions/yaml/syntaxes/yaml-1.0.tmLanguage.json b/extensions/yaml/syntaxes/yaml-1.0.tmLanguage.json deleted file mode 100644 index 7ae77112860c3..0000000000000 --- a/extensions/yaml/syntaxes/yaml-1.0.tmLanguage.json +++ /dev/null @@ -1,1150 +0,0 @@ -{ - "information_for_contributors": [ - "This file has been converted from https://github.com/RedCMD/YAML-Syntax-Highlighter/blob/master/syntaxes/yaml-1.0.tmLanguage.json", - "If you want to provide a fix or improvement, please create a pull request against the original repository.", - "Once accepted there, we are happy to receive an update request." - ], - "version": "https://github.com/RedCMD/YAML-Syntax-Highlighter/commit/dfd7e5f4f71f9695c5d8697ca57f81240165aa04", - "name": "YAML 1.0", - "scopeName": "source.yaml.1.0", - "comment": "https://yaml.org/spec/1.0/", - "patterns": [ - { - "include": "#stream" - } - ], - "repository": { - "stream": { - "patterns": [ - { - "comment": "allows me to just use `\\G` instead of the performance heavy `(^|\\G)`", - "begin": "^(?!\\G)", - "while": "^", - "name": "meta.stream.yaml", - "patterns": [ - { - "include": "source.yaml.1.1#byte-order-mark" - }, - { - "include": "#directives" - }, - { - "include": "#document" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - }, - { - "begin": "\\G", - "while": "\\G", - "name": "meta.stream.yaml", - "patterns": [ - { - "include": "source.yaml.1.1#byte-order-mark" - }, - { - "include": "#directives" - }, - { - "include": "#document" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - } - ] - }, - "directive-YAML": { - "comment": "https://yaml.org/spec/1.2.2/#681-yaml-directives", - "begin": "(?=%YAML:1\\.0(?=[\\x{85 2028 2029}\r\n\t ]))", - "end": "\\G(?=%(?!YAML:1\\.0))", - "name": "meta.1.0.yaml", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#681-yaml-directives", - "begin": "\\G(%)(YAML)(:)(1\\.0)", - "while": "\\G(?!---[\\x{85 2028 2029}\r\n\t ])", - "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" - } - }, - "name": "meta.directives.yaml", - "patterns": [ - { - "include": "source.yaml.1.1#directive-invalid" - }, - { - "include": "#directives" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - }, - { - "begin": "\\G(?=---[\\x{85 2028 2029}\r\n\t ])", - "while": "\\G(?!%)", - "patterns": [ - { - "include": "#document" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - }, - { - "include": "source.yaml.1.1#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": "(?=%)", - "while": "\\G(?!%|---[\\x{85 2028 2029}\r\n\t ])", - "name": "meta.directives.yaml", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-reserved-directive", - "begin": "(%)([^: \\p{Cntrl}\\p{Surrogate}\\x{2028 2029 FFFE FFFF}]++)", - "end": "$", - "beginCaptures": { - "1": { - "name": "punctuation.definition.directive.begin.yaml" - }, - "2": { - "name": "keyword.other.directive.other.yaml" - } - }, - "patterns": [ - { - "match": "\\G(:)([^ \\p{Cntrl}\\p{Surrogate}\\x{2028 2029 FFFE FFFF}]++)", - "captures": { - "1": { - "name": "punctuation.whitespace.separator.yaml" - }, - "2": { - "name": "string.unquoted.directive-name.yaml" - } - } - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - }, - { - "match": "\\G\\.{3}(?=[\\x{85 2028 2029}\r\n\t ])", - "name": "invalid.illegal.entity.other.document.end.yaml" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - } - ] - }, - "document": { - "comment": "https://yaml.org/spec/1.2.2/#91-documents", - "patterns": [ - { - "begin": "---(?=[\\x{85 2028 2029}\r\n\t ])", - "while": "\\G(?!(?>\\.{3}|---)[\\x{85 2028 2029}\r\n\t ])", - "beginCaptures": { - "0": { - "name": "entity.other.document.begin.yaml" - } - }, - "name": "meta.document.yaml", - "patterns": [ - { - "include": "#block-node" - } - ] - }, - { - "begin": "(?=\\.{3}[\\x{85 2028 2029}\r\n\t ])", - "while": "\\G(?=[\t \\x{FEFF}]*+(?>#|$))", - "patterns": [ - { - "begin": "\\G\\.{3}", - "end": "$", - "beginCaptures": { - "0": { - "name": "entity.other.document.end.yaml" - } - }, - "patterns": [ - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - }, - { - "include": "source.yaml.1.1#byte-order-mark" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - }, - { - "begin": "\\G(?!%|[\t \\x{FEFF}]*+(?>#|$))", - "while": "\\G(?!(?>\\.{3}|---)[\\x{85 2028 2029}\r\n\t ])", - "name": "meta.document.yaml", - "patterns": [ - { - "include": "#block-node" - } - ] - } - ] - }, - "block-node": { - "patterns": [ - { - "include": "#block-sequence" - }, - { - "include": "#block-mapping" - }, - { - "include": "#block-scalar" - }, - { - "include": "source.yaml.1.1#anchor-property" - }, - { - "include": "#tag-property" - }, - { - "include": "source.yaml.1.1#alias" - }, - { - "begin": "(?=\"|')", - "while": "\\G", - "patterns": [ - { - "begin": "(?!\\G)", - "while": "\\G", - "patterns": [ - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - }, - { - "include": "#double" - }, - { - "include": "source.yaml.1.1#single" - } - ] - }, - { - "begin": "(?={)", - "end": "$", - "patterns": [ - { - "include": "#flow-mapping" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - }, - { - "begin": "(?=\\[)", - "end": "$", - "patterns": [ - { - "include": "#flow-sequence" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - }, - { - "include": "source.yaml.1.1#block-plain-out" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - }, - "block-mapping": { - "//": "The check for plain keys is expensive", - "begin": "(?=((?<=[-?:]) )?+)(?[!&*][^\\x{85 2028 2029}\r\n\t ]*+[\t ]++)*+)(?=(?>(?#Double Quote)\"(?>[^\\\\\"]++|\\\\.)*+\"|(?#Single Quote)'(?>[^']++|'')*+'|(?#Flow-Map){(?>[^\\x{85 2028 2029}}]++|}[ \t]*+(?!:[\\x{85 2028 2029}\r\n\t ]))++}|(?#Flow-Seq)\\[(?>[^\\x{85 2028 2029}\\]]++|][ \t]*+(?!:[\\x{85 2028 2029}\r\n\t ]))++]|(?#Plain)(?>[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FFFE FFFF}]|[?:-](?![\\x{85 2028 2029}\r\n\t ]))(?>[^:#]++|:(?![\\x{85 2028 2029}\r\n\t ])|(?(\\1\\2)((?>[!&*][^\\x{85 2028 2029}\r\n\t ]*+[\t ]++)*+)((?>\t[\t ]*+)?+[^\\x{85 2028 2029}\r\n\t ?:\\-#!&*\"'\\[\\]{}0-9A-Za-z$()+./;<=\\\\^_~\\x{A0}-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{010000}-\\x{10FFFF}])?+|( *+)([\t ]*+[^\\x{85 2028 2029}\r\n#])?+)", - "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": "source.yaml.1.1#anchor-property" - }, - { - "include": "source.yaml.1.1#alias" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - } - }, - "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": "source.yaml.1.1#anchor-property" - }, - { - "include": "source.yaml.1.1#alias" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - }, - "3": { - "name": "invalid.illegal.expected-indentation.yaml" - }, - "4": { - "name": "punctuation.whitespace.indentation.yaml" - }, - "5": { - "name": "invalid.illegal.expected-indentation.yaml" - } - }, - "name": "meta.mapping.yaml", - "patterns": [ - { - "include": "#block-map-key-double" - }, - { - "include": "source.yaml#block-map-key-single" - }, - { - "include": "source.yaml.1.1#block-map-key-plain" - }, - { - "include": "#block-map-key-explicit" - }, - { - "include": "#block-map-value" - }, - { - "include": "#flow-mapping" - }, - { - "include": "#flow-sequence" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - }, - "block-sequence": { - "comment": "https://yaml.org/spec/1.2.2/#rule-l+block-sequence", - "begin": "(?=((?<=[-?:]) )?+)(?(\\1\\2)(?!-[\\x{85 2028 2029}\r\n\t ])((?>\t[\t ]*+)?+[^\\x{85 2028 2029}\r\n\t #\\]}])?+|(?!\\1\\2)( *+)([\t ]*+[^\\x{85 2028 2029}\r\n#])?+)", - "beginCaptures": { - "2": { - "name": "punctuation.whitespace.indentation.yaml" - }, - "3": { - "name": "punctuation.definition.block.sequence.item.yaml" - } - }, - "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" - } - }, - "name": "meta.block.sequence.yaml", - "patterns": [ - { - "include": "#block-node" - } - ] - }, - "block-map-key-explicit": { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-l-block-map-explicit-key", - "begin": "(?=((?<=[-?:]) )?+)\\G( *+)(\\?)(?=[\\x{85 2028 2029}\r\n\t ])", - "while": "\\G(?>(\\1\\2)(?![?:0-9A-Za-z$()+./;<=\\\\^_~\\x{A0}-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{010000}-\\x{10FFFF}&&[^\\x{2028 2029}]])((?>\t[\t ]*+)?+[^\\x{85 2028 2029}\r\n\t #\\-\\[\\]{}])?+|(?!\\1\\2)( *+)([\t ]*+[^\\x{85 2028 2029}\r\n#])?+)", - "beginCaptures": { - "2": { - "name": "punctuation.whitespace.indentation.yaml" - }, - "3": { - "name": "punctuation.definition.map.key.yaml" - }, - "4": { - "name": "punctuation.whitespace.separator.yaml" - } - }, - "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" - } - }, - "name": "meta.map.explicit.yaml", - "patterns": [ - { - "include": "#key-double" - }, - { - "include": "source.yaml#key-single" - }, - { - "include": "source.yaml.1.1#flow-key-plain-out" - }, - { - "include": "#block-map-value" - }, - { - "include": "#block-node" - } - ] - }, - "block-map-key-double": { - "comment": "https://yaml.org/spec/1.2.2/#double-quoted-style (BLOCK-KEY)", - "begin": "\\G\"", - "end": "\"", - "beginCaptures": { - "0": { - "name": "punctuation.definition.string.begin.yaml" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.definition.string.end.yaml" - } - }, - "name": "meta.map.key.yaml string.quoted.double.yaml entity.name.tag.yaml", - "patterns": [ - { - "match": ".[\t ]*+$", - "name": "invalid.illegal.multiline-key.yaml" - }, - { - "match": "[^\t -\\x{10FFFF}]++", - "name": "invalid.illegal.character.yaml" - }, - { - "include": "#double-escape" - } - ] - }, - "block-map-value": { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-l-block-map-implicit-value", - "//": "Assumming 3rd party preprocessing variables `{{...}}` turn into valid map-keys when inside a block-mapping", - "begin": ":(?=[\\x{85 2028 2029}\r\n\t ])|(?<=}})(?=[\t ]++#|[\t ]*+$)", - "while": "\\G(?![?:!\"'0-9A-Za-z$()+./;<=\\\\^_~\\[{\\x{A0}-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{010000}-\\x{10FFFF}&&[^\\x{2028 2029}]]|-[^\\x{85 2028 2029}\r\n\t ])", - "beginCaptures": { - "0": { - "name": "punctuation.separator.map.value.yaml" - } - }, - "name": "meta.map.value.yaml", - "patterns": [ - { - "include": "#block-node" - } - ] - }, - "block-scalar": { - "comment": "https://yaml.org/spec/1.2.2/#81-block-scalar-styles", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#8111-block-indentation-indicator", - "begin": "([\t ]*+)(?>(\\|)|(>))(?[+-])?+((0)|(1)|(2)|(3)|(4)|(5)|(6)|(7)|(8)|(9))(?()|([+-]))?+", - "while": "\\G(?>(?>(?!\\6)|(?!\\7) |(?!\\8) {2}|(?!\\9) {3}|(?!\\10) {4}|(?!\\11) {5}|(?!\\12) {6}|(?!\\13) {7}|(?!\\14) {8}|(?!\\15) {9})| *+($|[^#]))", - "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" - }, - "16": { - "name": "storage.modifier.chomping-indicator.yaml" - } - }, - "whileCaptures": { - "0": { - "name": "punctuation.whitespace.indentation.yaml" - }, - "1": { - "name": "invalid.illegal.expected-indentation.yaml" - } - }, - "name": "meta.scalar.yaml", - "patterns": [ - { - "begin": "$", - "while": "\\G", - "contentName": "string.unquoted.block.yaml", - "patterns": [ - { - "include": "source.yaml#non-printable" - } - ] - }, - { - "begin": "\\G", - "end": "$", - "patterns": [ - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-b-block-header", - "//": "Soooooooo many edge cases", - "begin": "([\t ]*+)(?>(\\|)|(>))([+-]?+)", - "while": "\\G", - "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" - } - }, - "name": "meta.scalar.yaml", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#rule-l-literal-content", - "begin": "$", - "while": "\\G", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#rule-l-nb-literal-text", - "//": "Find the highest indented line", - "begin": "\\G( ++)$", - "while": "\\G(?>(\\1)$|(?!\\1)( *+)($|.))", - "captures": { - "1": { - "name": "punctuation.whitespace.indentation.yaml" - }, - "2": { - "name": "punctuation.whitespace.indentation.yaml" - }, - "3": { - "name": "invalid.illegal.expected-indentation.yaml" - } - }, - "contentName": "string.unquoted.block.yaml", - "patterns": [ - { - "include": "source.yaml#non-printable" - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-b-nb-literal-next", - "//": [ - "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(?!$)(?=( *+))", - "end": "\\G(?!\\1)(?=[\t ]*+#)", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#rule-l-nb-literal-text", - "begin": "\\G( *+)", - "while": "\\G(?>(\\1)|( *+)($|[^\t#]|[\t ]++[^#]))", - "captures": { - "1": { - "name": "punctuation.whitespace.indentation.yaml" - }, - "2": { - "name": "punctuation.whitespace.indentation.yaml" - }, - "3": { - "name": "invalid.illegal.expected-indentation.yaml" - } - }, - "contentName": "string.unquoted.block.yaml", - "patterns": [ - { - "include": "source.yaml#non-printable" - } - ] - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-l-chomped-empty", - "begin": "(?!\\G)(?=[\t ]*+#)", - "while": "\\G", - "patterns": [ - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - } - ] - }, - { - "comment": "Header Comment", - "begin": "\\G", - "end": "$", - "patterns": [ - { - "include": "source.yaml.1.1#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": "source.yaml.1.1#presentation-detail" - } - ] - }, - { - "include": "#flow-mapping" - }, - { - "include": "#flow-sequence" - } - ] - }, - { - "include": "source.yaml.1.1#anchor-property" - }, - { - "include": "#tag-property" - }, - { - "include": "source.yaml.1.1#alias" - }, - { - "begin": "(?=\"|')", - "end": "(?=[:,\\]}])", - "patterns": [ - { - "begin": "(?!\\G)", - "end": "(?=[:,\\]}])", - "patterns": [ - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - }, - { - "include": "#double" - }, - { - "include": "source.yaml.1.1#single" - } - ] - }, - { - "include": "source.yaml.1.1#flow-plain-in" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - }, - "flow-mapping": { - "comment": "https://yaml.org/spec/1.2.2/#742-flow-mappings", - "begin": "{", - "end": "}", - "beginCaptures": { - "0": { - "name": "punctuation.definition.mapping.begin.yaml" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.definition.mapping.end.yaml" - } - }, - "name": "meta.flow.mapping.yaml", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-s-flow-map-entries", - "begin": "(?<={)\\G(?=[\\x{85 2028 2029}\r\n\t ,#])|,", - "end": "(?=[^\\x{85 2028 2029}\r\n\t ,#])", - "beginCaptures": { - "0": { - "name": "punctuation.separator.mapping.yaml" - } - }, - "patterns": [ - { - "match": ",++", - "name": "invalid.illegal.separator.sequence.yaml" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - }, - { - "include": "#flow-mapping-map-key" - }, - { - "include": "#flow-map-value-yaml" - }, - { - "include": "#flow-map-value-json" - }, - { - "include": "#flow-node" - } - ] - }, - "flow-sequence": { - "comment": "https://yaml.org/spec/1.2.2/#741-flow-sequences", - "begin": "\\[", - "end": "]", - "beginCaptures": { - "0": { - "name": "punctuation.definition.sequence.begin.yaml" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.definition.sequence.end.yaml" - } - }, - "name": "meta.flow.sequence.yaml", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-s-flow-seq-entries", - "begin": "(?<=\\[)\\G(?=[\\x{85 2028 2029}\r\n\t ,#])|,", - "end": "(?=[^\\x{85 2028 2029}\r\n\t ,#])", - "beginCaptures": { - "0": { - "name": "punctuation.separator.sequence.yaml" - } - }, - "patterns": [ - { - "match": ",++", - "name": "invalid.illegal.separator.sequence.yaml" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - }, - { - "include": "#flow-sequence-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": "\\?(?=[\\x{85 2028 2029}\r\n\t ,\\[\\]{}])", - "end": "(?=[,\\[\\]{}])", - "beginCaptures": { - "0": { - "name": "punctuation.definition.map.key.yaml" - } - }, - "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" - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-implicit-entry (FLOW-IN)", - "begin": "(?=(?>[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FFFE FFFF}]|[?:-](?![\\x{85 2028 2029}\r\n\t ,\\[\\]{}])))", - "end": "(?=[,\\[\\]{}])", - "name": "meta.flow.map.implicit.yaml", - "patterns": [ - { - "include": "source.yaml.1.1#flow-key-plain-in" - }, - { - "match": ":(?=\\[|{)", - "name": "invalid.illegal.separator.map.yaml" - }, - { - "include": "#flow-map-value-yaml" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-implicit-entry (FLOW-IN)", - "begin": "(?=\"|')", - "end": "(?=[,\\[\\]{}])", - "name": "meta.flow.map.implicit.yaml", - "patterns": [ - { - "include": "#key-double" - }, - { - "include": "source.yaml#key-single" - }, - { - "include": "#flow-map-value-json" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - } - ] - }, - "flow-sequence-map-key": { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-entry (FLOW-IN)", - "patterns": [ - { - "begin": "\\?(?=[\\x{85 2028 2029}\r\n\t ,\\[\\]{}])", - "end": "(?=[,\\[\\]{}])", - "beginCaptures": { - "0": { - "name": "punctuation.definition.map.key.yaml" - } - }, - "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" - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-implicit-entry (FLOW-IN)", - "begin": "(?<=[\t ,\\[{]|^)(?=(?>[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FFFE FFFF}]|[?:-](?![\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))(?>[^:#,\\[\\]{}]++|:(?![\\x{85 2028 2029}\r\n\t ,\\[\\]{}])|(?\"(?>[^\\\\\"]++|\\\\.)*+\"|'(?>[^']++|'')*+')[\t ]*+:)", - "end": "(?=[,\\[\\]{}])", - "name": "meta.flow.map.implicit.yaml", - "patterns": [ - { - "include": "#key-double" - }, - { - "include": "source.yaml#key-single" - }, - { - "include": "#flow-map-value-json" - }, - { - "include": "source.yaml.1.1#presentation-detail" - } - ] - } - ] - }, - "flow-map-value-yaml": { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-ns-flow-map-separate-value (FLOW-IN)", - "begin": ":(?=[\\x{85 2028 2029}\r\n\t ,\\[\\]{}])", - "end": "(?=[,\\]}])", - "beginCaptures": { - "0": { - "name": "punctuation.separator.map.value.yaml" - } - }, - "name": "meta.flow.pair.value.yaml", - "patterns": [ - { - "include": "#flow-node" - } - ] - }, - "flow-map-value-json": { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-ns-flow-map-separate-value (FLOW-IN)", - "begin": "(?<=(?>[\"'\\]}]|^)[\t ]*+):", - "end": "(?=[,\\]}])", - "beginCaptures": { - "0": { - "name": "punctuation.separator.map.value.yaml" - } - }, - "name": "meta.flow.pair.value.yaml", - "patterns": [ - { - "include": "#flow-node" - } - ] - }, - "key-double": { - "comment": "https://yaml.org/spec/1.2.2/#double-quoted-style (FLOW-OUT)", - "begin": "\"", - "end": "\"", - "beginCaptures": { - "0": { - "name": "punctuation.definition.string.begin.yaml" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.definition.string.end.yaml" - } - }, - "name": "meta.map.key.yaml string.quoted.double.yaml entity.name.tag.yaml", - "patterns": [ - { - "match": "[^\t -\\x{10FFFF}]++", - "name": "invalid.illegal.character.yaml" - }, - { - "include": "#double-escape" - } - ] - }, - "double": { - "comment": "https://yaml.org/spec/1.2.2/#double-quoted-style", - "begin": "\"", - "end": "\"", - "beginCaptures": { - "0": { - "name": "punctuation.definition.string.begin.yaml" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.definition.string.end.yaml" - } - }, - "name": "string.quoted.double.yaml", - "patterns": [ - { - "match": "(?x[^\"]{2,0}|u[^\"]{4,0}|U[^\"]{8,0}|.)", - "name": "invalid.illegal.constant.character.escape.yaml" - } - ] - }, - "tag-property": { - "comment": "https://yaml.org/spec/1.0/#c-ns-tag-property", - "//": [ - "!^", - "!!private_ns-tag-char+", - "!global_core_ns-tag-char+_no-:/!", - "!global_vocabulary_az09-_/ns-tag-char", - "!global_domain_ns-tag-char+.ns-tag-char+,1234(-12(-12)?)?/ns-tag-char*" - ], - "begin": "(?=!)", - "end": "(?=[\\x{2028 2029}\r\n\t ])", - "name": "storage.type.tag.yaml", - "patterns": [ - { - "match": "\\G!(?=[\\x{85 2028 2029}\r\n\t ])", - "name": "punctuation.definition.tag.non-specific.yaml" - }, - { - "comment": "https://yaml.org/spec/1.0/#c-ns-private-tag", - "match": "\\G!!", - "name": "punctuation.definition.tag.private.yaml" - }, - { - "comment": "https://yaml.org/spec/1.0/#ns-ns-global-tag", - "match": "\\G!", - "name": "punctuation.definition.tag.global.yaml" - }, - { - "comment": "https://yaml.org/spec/1.0/#c-prefix", - "match": "\\^", - "name": "punctuation.definition.tag.prefix.yaml" - }, - { - "match": "%[0-9a-fA-F]{2}", - "name": "constant.character.escape.unicode.8-bit.yaml" - }, - { - "match": "%[^\\x{85 2028 2029}\r\n\t ]{2,0}", - "name": "invalid.illegal.constant.character.escape.unicode.8-bit.yaml" - }, - { - "include": "#double-escape" - }, - { - "include": "source.yaml#non-printable" - } - ] - } - } -} \ No newline at end of file diff --git a/extensions/yaml/syntaxes/yaml-1.1.tmLanguage.json b/extensions/yaml/syntaxes/yaml-1.1.tmLanguage.json deleted file mode 100644 index 57a96ac1e4fd4..0000000000000 --- a/extensions/yaml/syntaxes/yaml-1.1.tmLanguage.json +++ /dev/null @@ -1,1555 +0,0 @@ -{ - "information_for_contributors": [ - "This file has been converted from https://github.com/RedCMD/YAML-Syntax-Highlighter/blob/master/syntaxes/yaml-1.1.tmLanguage.json", - "If you want to provide a fix or improvement, please create a pull request against the original repository.", - "Once accepted there, we are happy to receive an update request." - ], - "version": "https://github.com/RedCMD/YAML-Syntax-Highlighter/commit/dfd7e5f4f71f9695c5d8697ca57f81240165aa04", - "name": "YAML 1.1", - "scopeName": "source.yaml.1.1", - "comment": "https://yaml.org/spec/1.1/", - "patterns": [ - { - "include": "#stream" - } - ], - "repository": { - "stream": { - "patterns": [ - { - "comment": "allows me to just use `\\G` instead of the performance heavy `(^|\\G)`", - "begin": "^(?!\\G)", - "while": "^", - "name": "meta.stream.yaml", - "patterns": [ - { - "include": "#byte-order-mark" - }, - { - "include": "#directives" - }, - { - "include": "#document" - }, - { - "include": "#presentation-detail" - } - ] - }, - { - "begin": "\\G", - "while": "\\G", - "name": "meta.stream.yaml", - "patterns": [ - { - "include": "#byte-order-mark" - }, - { - "include": "#directives" - }, - { - "include": "#document" - }, - { - "include": "#presentation-detail" - } - ] - } - ] - }, - "directive-YAML": { - "comment": "https://yaml.org/spec/1.2.2/#681-yaml-directives", - "begin": "(?=%YAML[ \t]+1\\.1(?=[\\x{85 2028 2029}\r\n\t ]))", - "end": "\\G(?=%(?!YAML[ \t]+1\\.1))", - "name": "meta.1.1.yaml", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#681-yaml-directives", - "begin": "\\G(%)(YAML)([ \t]+)(1\\.1)", - "while": "\\G(?!---[\\x{85 2028 2029}\r\n\t ])", - "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" - } - }, - "name": "meta.directives.yaml", - "patterns": [ - { - "include": "#directive-invalid" - }, - { - "include": "#directives" - }, - { - "include": "#presentation-detail" - } - ] - }, - { - "begin": "\\G(?=---[\\x{85 2028 2029}\r\n\t ])", - "while": "\\G(?!%)", - "patterns": [ - { - "include": "#document" - }, - { - "include": "#presentation-detail" - } - ] - }, - { - "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": "(?=%)", - "while": "\\G(?!%|---[\\x{85 2028 2029}\r\n\t ])", - "name": "meta.directives.yaml", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#682-tag-directives", - "begin": "\\G(%)(TAG)(?>([\t ]++)((!)(?>[0-9A-Za-z-]*+(!))?+))?+", - "end": "$", - "applyEndPatternLast": true, - "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" - }, - "patterns": [ - { - "comment": "technically the beginning should only validate against a valid uri scheme [A-Za-z][A-Za-z0-9.+-]*", - "begin": "\\G[\t ]++(?!#)", - "end": "(?=[\\x{85 2028 2029}\r\n\t ])", - "beginCaptures": { - "0": { - "name": "punctuation.whitespace.separator.yaml" - } - }, - "contentName": "support.type.tag-prefix.yaml", - "patterns": [ - { - "match": "%[0-9a-fA-F]{2}", - "name": "constant.character.escape.unicode.8-bit.yaml" - }, - { - "match": "%[^\\x{85 2028 2029}\r\n\t ]{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": "[^\\x{85 2028 2029}\r\n\t a-zA-Z0-9-#;/?:@&=+$,_.!~*'()\\[\\]]++", - "name": "invalid.illegal.unrecognized.yaml" - } - ] - }, - { - "include": "#presentation-detail" - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-reserved-directive", - "begin": "(%)([^ \\p{Cntrl}\\p{Surrogate}\\x{2028 2029 FFFE FFFF}]++)", - "end": "$", - "beginCaptures": { - "1": { - "name": "punctuation.definition.directive.begin.yaml" - }, - "2": { - "name": "keyword.other.directive.other.yaml" - } - }, - "patterns": [ - { - "match": "\\G([\t ]++)([^ \\p{Cntrl}\\p{Surrogate}\\x{2028 2029 FFFE FFFF}]++)", - "captures": { - "1": { - "name": "punctuation.whitespace.separator.yaml" - }, - "2": { - "name": "string.unquoted.directive-name.yaml" - } - } - }, - { - "match": "([\t ]++)([^ \\p{Cntrl}\\p{Surrogate}\\x{2028 2029 FFFE FFFF}]++)", - "captures": { - "1": { - "name": "punctuation.whitespace.separator.yaml" - }, - "2": { - "name": "string.unquoted.directive-parameter.yaml" - } - } - }, - { - "include": "#presentation-detail" - } - ] - }, - { - "match": "\\G\\.{3}(?=[\\x{85 2028 2029}\r\n\t ])", - "name": "invalid.illegal.entity.other.document.end.yaml" - }, - { - "include": "#presentation-detail" - } - ] - } - ] - }, - "directive-invalid": { - "patterns": [ - { - "match": "\\G\\.{3}(?=[\\x{85 2028 2029}\r\n\t ])", - "name": "invalid.illegal.entity.other.document.end.yaml" - }, - { - "begin": "\\G(%)(YAML)", - "end": "$", - "beginCaptures": { - "1": { - "name": "punctuation.definition.directive.begin.yaml" - }, - "2": { - "name": "invalid.illegal.keyword.other.directive.yaml.yaml" - } - }, - "name": "meta.directive.yaml", - "patterns": [ - { - "match": "\\G([\t ]++|:)([0-9]++\\.[0-9]++)?+", - "captures": { - "1": { - "name": "punctuation.whitespace.separator.yaml" - }, - "2": { - "name": "constant.numeric.yaml-version.yaml" - } - } - }, - { - "include": "#presentation-detail" - } - ] - } - ] - }, - "document": { - "comment": "https://yaml.org/spec/1.2.2/#91-documents", - "patterns": [ - { - "begin": "---(?=[\\x{85 2028 2029}\r\n\t ])", - "while": "\\G(?!(?>\\.{3}|---)[\\x{85 2028 2029}\r\n\t ])", - "beginCaptures": { - "0": { - "name": "entity.other.document.begin.yaml" - } - }, - "name": "meta.document.yaml", - "patterns": [ - { - "include": "#block-node" - } - ] - }, - { - "begin": "(?=\\.{3}[\\x{85 2028 2029}\r\n\t ])", - "while": "\\G(?=[\t \\x{FEFF}]*+(?>#|$))", - "patterns": [ - { - "begin": "\\G\\.{3}", - "end": "$", - "beginCaptures": { - "0": { - "name": "entity.other.document.end.yaml" - } - }, - "patterns": [ - { - "include": "#presentation-detail" - } - ] - }, - { - "include": "#byte-order-mark" - }, - { - "include": "#presentation-detail" - } - ] - }, - { - "begin": "\\G(?!%|[\t \\x{FEFF}]*+(?>#|$))", - "while": "\\G(?!(?>\\.{3}|---)[\\x{85 2028 2029}\r\n\t ])", - "name": "meta.document.yaml", - "patterns": [ - { - "include": "#block-node" - } - ] - } - ] - }, - "block-node": { - "patterns": [ - { - "include": "#block-sequence" - }, - { - "include": "#block-mapping" - }, - { - "include": "source.yaml.1.2#block-scalar" - }, - { - "include": "#anchor-property" - }, - { - "include": "#tag-property" - }, - { - "include": "#alias" - }, - { - "begin": "(?=\"|')", - "while": "\\G", - "patterns": [ - { - "begin": "(?!\\G)", - "while": "\\G", - "patterns": [ - { - "include": "#presentation-detail" - } - ] - }, - { - "include": "#double" - }, - { - "include": "#single" - } - ] - }, - { - "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-mapping": { - "//": "The check for plain keys is expensive", - "begin": "(?=((?<=[-?:]) )?+)(?[!&*][^\\x{85 2028 2029}\r\n\t ]*+[\t ]++)*+)(?=(?>(?#Double Quote)\"(?>[^\\\\\"]++|\\\\.)*+\"|(?#Single Quote)'(?>[^']++|'')*+'|(?#Flow-Map){(?>[^\\x{85 2028 2029}}]++|}[ \t]*+(?!:[\\x{85 2028 2029}\r\n\t ]))++}|(?#Flow-Seq)\\[(?>[^\\x{85 2028 2029}\\]]++|][ \t]*+(?!:[\\x{85 2028 2029}\r\n\t ]))++]|(?#Plain)(?>[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FFFE FFFF}]|[?:-](?![\\x{85 2028 2029}\r\n\t ]))(?>[^:#]++|:(?![\\x{85 2028 2029}\r\n\t ])|(?(\\1\\2)((?>[!&*][^\\x{85 2028 2029}\r\n\t ]*+[\t ]++)*+)((?>\t[\t ]*+)?+[^\\x{85 2028 2029}\r\n\t ?:\\-#!&*\"'\\[\\]{}0-9A-Za-z$()+./;<=\\\\^_~\\x{A0}-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{010000}-\\x{10FFFF}])?+|( *+)([\t ]*+[^\\x{85 2028 2029}\r\n#])?+)", - "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" - } - ] - } - }, - "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" - } - }, - "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" - } - ] - }, - "block-sequence": { - "comment": "https://yaml.org/spec/1.2.2/#rule-l+block-sequence", - "begin": "(?=((?<=[-?:]) )?+)(?(\\1\\2)(?!-[\\x{85 2028 2029}\r\n\t ])((?>\t[\t ]*+)?+[^\\x{85 2028 2029}\r\n\t #\\]}])?+|(?!\\1\\2)( *+)([\t ]*+[^\\x{85 2028 2029}\r\n#])?+)", - "beginCaptures": { - "2": { - "name": "punctuation.whitespace.indentation.yaml" - }, - "3": { - "name": "punctuation.definition.block.sequence.item.yaml" - } - }, - "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" - } - }, - "name": "meta.block.sequence.yaml", - "patterns": [ - { - "include": "#block-node" - } - ] - }, - "block-map-key-explicit": { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-l-block-map-explicit-key", - "begin": "(?=((?<=[-?:]) )?+)\\G( *+)(\\?)(?=[\\x{85 2028 2029}\r\n\t ])", - "while": "\\G(?>(\\1\\2)(?![?:0-9A-Za-z$()+./;<=\\\\^_~\\x{A0}-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{010000}-\\x{10FFFF}&&[^\\x{2028 2029}]])((?>\t[\t ]*+)?+[^\\x{85 2028 2029}\r\n\t #\\-\\[\\]{}])?+|(?!\\1\\2)( *+)([\t ]*+[^\\x{85 2028 2029}\r\n#])?+)", - "beginCaptures": { - "2": { - "name": "punctuation.whitespace.indentation.yaml" - }, - "3": { - "name": "punctuation.definition.map.key.yaml" - }, - "4": { - "name": "punctuation.whitespace.separator.yaml" - } - }, - "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" - } - }, - "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" - } - ] - }, - "block-map-key-double": { - "comment": "https://yaml.org/spec/1.2.2/#double-quoted-style (BLOCK-KEY)", - "begin": "\\G\"", - "end": "\"", - "beginCaptures": { - "0": { - "name": "punctuation.definition.string.begin.yaml" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.definition.string.end.yaml" - } - }, - "name": "meta.map.key.yaml string.quoted.double.yaml entity.name.tag.yaml", - "patterns": [ - { - "match": ".[\t ]*+$", - "name": "invalid.illegal.multiline-key.yaml" - }, - { - "match": "[^\t -\\x{10FFFF}]++", - "name": "invalid.illegal.character.yaml" - }, - { - "include": "#double-escape" - } - ] - }, - "block-map-key-plain": { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-plain-one-line (BLOCK-KEY)", - "begin": "\\G(?=[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FFFE FFFF}]|[?:-](?![\\x{85 2028 2029}\r\n\t ]))", - "end": "(?=[\t ]*+:[\\x{85 2028 2029}\r\n\t ]|(?>[\t ]++|\\G)#)", - "name": "meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", - "patterns": [ - { - "include": "#tag-implicit-plain-out" - }, - { - "match": "\\G([\t ]++)(.)", - "captures": { - "1": { - "name": "punctuation.whitespace.separator.yaml" - }, - "2": { - "name": "invalid.illegal.multiline-key.yaml" - } - } - }, - { - "match": "[\t ]++$", - "name": "punctuation.whitespace.separator.yaml" - }, - { - "include": "source.yaml#non-printable" - } - ] - }, - "block-map-value": { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-l-block-map-implicit-value", - "//": "Assumming 3rd party preprocessing variables `{{...}}` turn into valid map-keys when inside a block-mapping", - "begin": ":(?=[\\x{85 2028 2029}\r\n\t ])|(?<=}})(?=[\t ]++#|[\t ]*+$)", - "while": "\\G(?![?:!\"'0-9A-Za-z$()+./;<=\\\\^_~\\[{\\x{A0}-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{010000}-\\x{10FFFF}&&[^\\x{2028 2029}]]|-[^\\x{85 2028 2029}\r\n\t ])", - "beginCaptures": { - "0": { - "name": "punctuation.separator.map.value.yaml" - } - }, - "name": "meta.map.value.yaml", - "patterns": [ - { - "include": "#block-node" - } - ] - }, - "block-plain-out": { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-plain-multi-line (FLOW-OUT)", - "begin": "(?=[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FFFE FFFF}]|[?:-](?![\\x{85 2028 2029}\r\n\t ]))", - "while": "\\G", - "patterns": [ - { - "begin": "\\G", - "end": "(?=(?>[\t ]++|\\G)#)", - "name": "string.unquoted.plain.out.yaml", - "patterns": [ - { - "include": "#tag-implicit-plain-out" - }, - { - "match": ":(?=[\\x{85 2028 2029}\r\n\t ])", - "name": "invalid.illegal.multiline-key.yaml" - }, - { - "match": "\\G[\t ]++", - "name": "punctuation.whitespace.separator.yaml" - }, - { - "match": "[\t ]++$", - "name": "punctuation.whitespace.separator.yaml" - }, - { - "include": "source.yaml#non-printable" - } - ] - }, - { - "begin": "(?!\\G)", - "while": "\\G", - "patterns": [ - { - "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-mapping": { - "comment": "https://yaml.org/spec/1.2.2/#742-flow-mappings", - "begin": "{", - "end": "}", - "beginCaptures": { - "0": { - "name": "punctuation.definition.mapping.begin.yaml" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.definition.mapping.end.yaml" - } - }, - "name": "meta.flow.mapping.yaml", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-s-flow-map-entries", - "begin": "(?<={)\\G(?=[\\x{85 2028 2029}\r\n\t ,#])|,", - "end": "(?=[^\\x{85 2028 2029}\r\n\t ,#])", - "beginCaptures": { - "0": { - "name": "punctuation.separator.mapping.yaml" - } - }, - "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-sequence": { - "comment": "https://yaml.org/spec/1.2.2/#741-flow-sequences", - "begin": "\\[", - "end": "]", - "beginCaptures": { - "0": { - "name": "punctuation.definition.sequence.begin.yaml" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.definition.sequence.end.yaml" - } - }, - "name": "meta.flow.sequence.yaml", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-s-flow-seq-entries", - "begin": "(?<=\\[)\\G(?=[\\x{85 2028 2029}\r\n\t ,#])|,", - "end": "(?=[^\\x{85 2028 2029}\r\n\t ,#])", - "beginCaptures": { - "0": { - "name": "punctuation.separator.sequence.yaml" - } - }, - "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-mapping-map-key": { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-entry (FLOW-IN)", - "patterns": [ - { - "begin": "\\?(?=[\\x{85 2028 2029}\r\n\t ,\\[\\]{}])", - "end": "(?=[,\\[\\]{}])", - "beginCaptures": { - "0": { - "name": "punctuation.definition.map.key.yaml" - } - }, - "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" - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-implicit-entry (FLOW-IN)", - "begin": "(?=(?>[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FFFE FFFF}]|[?:-](?![\\x{85 2028 2029}\r\n\t ,\\[\\]{}])))", - "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" - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-implicit-entry (FLOW-IN)", - "begin": "(?=\"|')", - "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-sequence-map-key": { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-entry (FLOW-IN)", - "patterns": [ - { - "begin": "\\?(?=[\\x{85 2028 2029}\r\n\t ,\\[\\]{}])", - "end": "(?=[,\\[\\]{}])", - "beginCaptures": { - "0": { - "name": "punctuation.definition.map.key.yaml" - } - }, - "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" - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-implicit-entry (FLOW-IN)", - "begin": "(?<=[\t ,\\[{]|^)(?=(?>[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FFFE FFFF}]|[?:-](?![\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))(?>[^:#,\\[\\]{}]++|:(?![\\x{85 2028 2029}\r\n\t ,\\[\\]{}])|(?\"(?>[^\\\\\"]++|\\\\.)*+\"|'(?>[^']++|'')*+')[\t ]*+:)", - "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-map-value-yaml": { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-ns-flow-map-separate-value (FLOW-IN)", - "begin": ":(?=[\\x{85 2028 2029}\r\n\t ,\\[\\]{}])", - "end": "(?=[,\\]}])", - "beginCaptures": { - "0": { - "name": "punctuation.separator.map.value.yaml" - } - }, - "name": "meta.flow.pair.value.yaml", - "patterns": [ - { - "include": "#flow-node" - } - ] - }, - "flow-map-value-json": { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-ns-flow-map-separate-value (FLOW-IN)", - "begin": "(?<=(?>[\"'\\]}]|^)[\t ]*+):", - "end": "(?=[,\\]}])", - "beginCaptures": { - "0": { - "name": "punctuation.separator.map.value.yaml" - } - }, - "name": "meta.flow.pair.value.yaml", - "patterns": [ - { - "include": "#flow-node" - } - ] - }, - "flow-plain-in": { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-plain-multi-line (FLOW-IN)", - "begin": "(?=[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FFFE FFFF}]|[?:-](?![\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))", - "end": "(?=(?>[\t ]++|\\G)#|[\t ]*+[,\\[\\]{}])", - "name": "string.unquoted.plain.in.yaml", - "patterns": [ - { - "include": "#tag-implicit-plain-in" - }, - { - "match": "\\G[\t ]++", - "name": "punctuation.whitespace.separator.yaml" - }, - { - "match": "[\t ]++$", - "name": "punctuation.whitespace.separator.yaml" - }, - { - "match": ":(?=[\\x{85 2028 2029}\r\n\t ,\\[\\]{}])", - "name": "invalid.illegal.multiline-key.yaml" - }, - { - "include": "source.yaml#non-printable" - } - ] - }, - "flow-key-plain-out": { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-plain-one-line (FLOW-OUT)", - "begin": "(?=[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FFFE FFFF}]|[?:-](?![\\x{85 2028 2029}\r\n\t ]))", - "end": "(?=[\t ]*+:[\\x{85 2028 2029}\r\n\t ]|[\t ]++#)", - "name": "meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", - "patterns": [ - { - "include": "#tag-implicit-plain-out" - }, - { - "match": "\\G[\t ]++", - "name": "punctuation.whitespace.separator.yaml" - }, - { - "match": "[\t ]++$", - "name": "punctuation.whitespace.separator.yaml" - }, - { - "include": "source.yaml#non-printable" - } - ] - }, - "flow-key-plain-in": { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-s-implicit-yaml-key (FLOW-KEY)", - "begin": "\\G(?![\\x{85 2028 2029}\r\n\t #])", - "end": "(?=[\t ]*+(?>:[\\x{85 2028 2029}\r\n\t ,\\[\\]{}]|[,\\[\\]{}])|[\t ]++#)", - "name": "meta.flow.map.key.yaml string.unquoted.plain.in.yaml entity.name.tag.yaml", - "patterns": [ - { - "include": "#tag-implicit-plain-in" - }, - { - "include": "source.yaml#non-printable" - } - ] - }, - "key-double": { - "comment": "https://yaml.org/spec/1.2.2/#double-quoted-style (FLOW-OUT)", - "begin": "\"", - "end": "\"", - "beginCaptures": { - "0": { - "name": "punctuation.definition.string.begin.yaml" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.definition.string.end.yaml" - } - }, - "name": "meta.map.key.yaml string.quoted.double.yaml entity.name.tag.yaml", - "patterns": [ - { - "match": "[^\t -\\x{10FFFF}]++", - "name": "invalid.illegal.character.yaml" - }, - { - "include": "#double-escape" - } - ] - }, - "double": { - "comment": "https://yaml.org/spec/1.2.2/#double-quoted-style", - "begin": "\"", - "end": "\"", - "beginCaptures": { - "0": { - "name": "punctuation.definition.string.begin.yaml" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.definition.string.end.yaml" - } - }, - "name": "string.quoted.double.yaml", - "patterns": [ - { - "match": "(?x[^\"]{2,0}|u[^\"]{4,0}|U[^\"]{8,0}|.)", - "name": "invalid.illegal.constant.character.escape.yaml" - } - ] - }, - "tag-implicit-plain-in": { - "comment": "https://yaml.org/type/index.html", - "patterns": [ - { - "match": "\\G(?>null|Null|NULL|~)(?=[\t ]++#|[\t ]*+(?>[\\x{85 2028 2029}\r\n,\\]}]|:[\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))", - "name": "constant.language.null.yaml" - }, - { - "match": "\\G(?>true|True|TRUE|false|False|FALSE|y|Y|yes|Yes|YES|n|N|no|No|NO|on|On|ON|off|Off|OFF)(?=[\t ]++#|[\t ]*+(?>[\\x{85 2028 2029}\r\n,\\]}]|:[\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))", - "name": "constant.language.boolean.yaml" - }, - { - "match": "\\G[-+]?+(0|[1-9][0-9_]*+)(?=[\t ]++#|[\t ]*+(?>[\\x{85 2028 2029}\r\n,\\]}]|:[\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))", - "name": "constant.numeric.integer.decimal.yaml" - }, - { - "match": "\\G[-+]?+0b[0-1_]++(?=[\t ]++#|[\t ]*+(?>[\\x{85 2028 2029}\r\n,\\]}]|:[\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))", - "name": "constant.numeric.integer.binary.yaml" - }, - { - "match": "\\G[-+]?0[0-7_]++(?=[\t ]++#|[\t ]*+(?>[\\x{85 2028 2029}\r\n,\\]}]|:[\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))", - "name": "constant.numeric.integer.octal.yaml" - }, - { - "match": "\\G[-+]?+0x[0-9a-fA-F_]++(?=[\t ]++#|[\t ]*+(?>[\\x{85 2028 2029}\r\n,\\]}]|:[\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))", - "name": "constant.numeric.integer.hexadecimal.yaml" - }, - { - "match": "\\G[-+]?+[1-9][0-9_]*+(?>:[0-5]?[0-9])++(?=[\t ]++#|[\t ]*+(?>[\\x{85 2028 2029}\r\n,\\]}]|:[\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))", - "name": "constant.numeric.integer.Sexagesimal.yaml" - }, - { - "match": "\\G[-+]?+(?>[0-9][0-9_]*+)?+\\.[0-9.]*+(?>[eE][-+][0-9]+)?+(?=[\t ]++#|[\t ]*+(?>[\\x{85 2028 2029}\r\n,\\]}]|:[\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))", - "name": "constant.numeric.float.decimal.yaml" - }, - { - "match": "\\G[-+]?+[0-9][0-9_]*+(?>:[0-5]?[0-9])++\\.[0-9_]*+(?=[\t ]++#|[\t ]*+(?>[\\x{85 2028 2029}\r\n,\\]}]|:[\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))", - "name": "constant.numeric.float.Sexagesimal.yaml" - }, - { - "match": "\\G[-+]?+\\.(?>inf|Inf|INF)(?=[\t ]++#|[\t ]*+(?>[\\x{85 2028 2029}\r\n,\\]}]|:[\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))", - "name": "constant.numeric.float.inf.yaml" - }, - { - "match": "\\G\\.(?>nan|NaN|NAN)(?=[\t ]++#|[\t ]*+(?>[\\x{85 2028 2029}\r\n,\\]}]|:[\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))", - "name": "constant.numeric.float.nan.yaml" - }, - { - "comment": "https://www.w3.org/TR/NOTE-datetime does not allow spaces, however https://yaml.org/type/timestamp.html does, but the provided regex doesn't match the TZD space in many of the YAML examples", - "match": "\\G(?>[0-9]{4}-[0-9]{2,1}-[0-9]{2,1}(?>T|t|[\t ]++)[0-9]{2,1}:[0-9]{2}:[0-9]{2}(?>\\.[0-9]*+)?+[\t ]*+(?>Z|[-+][0-9]{2,1}(?>:[0-9]{2})?+)?+|[0-9]{4}-[0-9]{2}-[0-9]{2})(?=[\t ]++#|[\t ]*+(?>[\\x{85 2028 2029}\r\n,\\]}]|:[\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))", - "name": "constant.numeric.timestamp.yaml" - }, - { - "match": "\\G<<(?=[\t ]++#|[\t ]*+(?>[\\x{85 2028 2029}\r\n,\\]}]|:[\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))", - "name": "constant.language.merge.yaml" - }, - { - "match": "\\G=(?=[\t ]++#|[\t ]*+(?>[\\x{85 2028 2029}\r\n,\\]}]|:[\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))", - "name": "constant.language.value.yaml" - }, - { - "match": "\\G(?>!|&|\\*)(?=[\t ]++#|[\t ]*+(?>[\\x{85 2028 2029}\r\n,\\]}]|:[\\x{85 2028 2029}\r\n\t ,\\[\\]{}]))", - "name": "constant.language.yaml.yaml" - } - ] - }, - "tag-implicit-plain-out": { - "comment": "https://yaml.org/type/index.html", - "patterns": [ - { - "match": "\\G(?>null|Null|NULL|~)(?=[\t ]++#|[\t ]*+(?>$|:[\\x{85 2028 2029}\r\n\t ]))", - "name": "constant.language.null.yaml" - }, - { - "match": "\\G(?>true|True|TRUE|false|False|FALSE|yes|Yes|YES|y|Y|no|No|NO|n|N|on|On|ON|off|Off|OFF)(?=[\t ]++#|[\t ]*+(?>$|:[\\x{85 2028 2029}\r\n\t ]))", - "name": "constant.language.boolean.yaml" - }, - { - "match": "\\G[-+]?+(0|[1-9][0-9_]*+)(?=[\t ]++#|[\t ]*+(?>$|:[\\x{85 2028 2029}\r\n\t ]))", - "name": "constant.numeric.integer.decimal.yaml" - }, - { - "match": "\\G[-+]?+0b[0-1_]++(?=[\t ]++#|[\t ]*+(?>$|:[\\x{85 2028 2029}\r\n\t ]))", - "name": "constant.numeric.integer.binary.yaml" - }, - { - "match": "\\G[-+]?0[0-7_]++(?=[\t ]++#|[\t ]*+(?>$|:[\\x{85 2028 2029}\r\n\t ]))", - "name": "constant.numeric.integer.octal.yaml" - }, - { - "match": "\\G[-+]?+0x[0-9a-fA-F_]++(?=[\t ]++#|[\t ]*+(?>$|:[\\x{85 2028 2029}\r\n\t ]))", - "name": "constant.numeric.integer.hexadecimal.yaml" - }, - { - "match": "\\G[-+]?+[1-9][0-9_]*+(?>:[0-5]?[0-9])++(?=[\t ]++#|[\t ]*+(?>$|:[\\x{85 2028 2029}\r\n\t ]))", - "name": "constant.numeric.integer.Sexagesimal.yaml" - }, - { - "match": "\\G[-+]?+(?>[0-9][0-9_]*+)?+\\.[0-9.]*+(?>[eE][-+][0-9]+)?+(?=[\t ]++#|[\t ]*+(?>$|:[\\x{85 2028 2029}\r\n\t ]))", - "name": "constant.numeric.float.decimal.yaml" - }, - { - "match": "\\G[-+]?+[0-9][0-9_]*+(?>:[0-5]?[0-9])++\\.[0-9_]*+(?=[\t ]++#|[\t ]*+(?>$|:[\\x{85 2028 2029}\r\n\t ]))", - "name": "constant.numeric.float.Sexagesimal.yaml" - }, - { - "match": "\\G[-+]?+\\.(?>inf|Inf|INF)(?=[\t ]++#|[\t ]*+(?>$|:[\\x{85 2028 2029}\r\n\t ]))", - "name": "constant.numeric.float.inf.yaml" - }, - { - "match": "\\G\\.(?>nan|NaN|NAN)(?=[\t ]++#|[\t ]*+(?>$|:[\\x{85 2028 2029}\r\n\t ]))", - "name": "constant.numeric.float.nan.yaml" - }, - { - "comment": "https://www.w3.org/TR/NOTE-datetime does not allow spaces, however https://yaml.org/type/timestamp.html does, but the provided regex doesn't match the TZD space in many of the YAML examples", - "match": "\\G(?>[0-9]{4}-[0-9]{2,1}-[0-9]{2,1}(?>T|t|[\t ]++)[0-9]{2,1}:[0-9]{2}:[0-9]{2}(?>\\.[0-9]*+)?+[\t ]*+(?>Z|[-+][0-9]{2,1}(?>:[0-9]{2})?+)?+|[0-9]{4}-[0-9]{2}-[0-9]{2})(?=[\t ]++#|[\t ]*+(?>$|:[\\x{85 2028 2029}\r\n\t ]))", - "name": "constant.numeric.timestamp.yaml" - }, - { - "match": "\\G<<(?=[\t ]++#|[\t ]*+(?>$|:[\\x{85 2028 2029}\r\n\t ]))", - "name": "constant.language.merge.yaml" - }, - { - "match": "\\G=(?=[\t ]++#|[\t ]*+(?>$|:[\\x{85 2028 2029}\r\n\t ]))", - "name": "constant.language.value.yaml" - }, - { - "match": "\\G(?>!|&|\\*)(?=[\t ]++#|[\t ]*+(?>$|:[\\x{85 2028 2029}\r\n\t ]))", - "name": "constant.language.yaml.yaml" - } - ] - }, - "tag-property": { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-ns-tag-property", - "//": [ - "!", - "!!", - "!<>", - "!...", - "!!...", - "!<...>", - "!...!..." - ], - "patterns": [ - { - "match": "!(?=[\\x{85 2028 2029}\r\n\t ])", - "name": "storage.type.tag.non-specific.yaml punctuation.definition.tag.non-specific.yaml" - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-verbatim-tag", - "begin": "!<", - "end": ">", - "beginCaptures": { - "0": { - "name": "punctuation.definition.tag.begin.yaml" - } - }, - "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": "%[^\\x{85 2028 2029}\r\n\t ]{2,0}", - "name": "invalid.illegal.constant.character.escape.unicode.8-bit.yaml" - }, - { - "include": "source.yaml#non-printable" - }, - { - "match": "[^\\x{85 2028 2029}\r\n\t a-zA-Z0-9-#;/?:@&=+$,_.!~*'()\\[\\]%>]++", - "name": "invalid.illegal.unrecognized.yaml" - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-ns-shorthand-tag", - "begin": "(?=!)", - "end": "(?=[\\x{85 2028 2029}\r\n\t ,\\[\\]{}])", - "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" - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-secondary-tag-handle", - "match": "\\G(!)[0-9A-Za-z-]++(!)", - "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-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": "%[^\\x{85 2028 2029}\r\n\t ]{2,0}", - "name": "invalid.illegal.constant.character.escape.unicode.8-bit.yaml" - }, - { - "include": "source.yaml#non-printable" - }, - { - "match": "[^\\x{85 2028 2029}\r\n\t a-zA-Z0-9-#;/?:@&=+$,_.~*'()\\[\\]%]++", - "name": "invalid.illegal.unrecognized.yaml" - } - ] - } - ] - }, - "anchor-property": { - "match": "(&)([^ \\p{Cntrl}\\p{Surrogate}\\x{2028 2029 FFFE FFFF}]++)|(&)", - "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" - } - } - }, - "alias": { - "begin": "(\\*)([^ \\p{Cntrl}\\p{Surrogate}\\x{2028 2029 FFFE FFFF}]++)|(\\*)", - "end": "(?=:[\\x{85 2028 2029}\r\n\t ,\\[\\]{}]|[,\\[\\]{}])", - "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" - } - }, - "patterns": [ - { - "include": "#presentation-detail" - } - ] - }, - "byte-order-mark": { - "comment": "", - "begin": "\\G", - "while": "\\G(?=[\\x{FEFF 85 2028 2029}\r\n\t ])", - "patterns": [ - { - "begin": "(?=#)", - "while": "\\G", - "patterns": [ - { - "include": "#presentation-detail" - } - ] - }, - { - "begin": "\\G\\x{FEFF}", - "while": "\\G", - "beginCaptures": { - "0": { - "name": "byte-order-mark.yaml" - } - }, - "patterns": [ - { - "include": "#presentation-detail" - } - ] - }, - { - "include": "#presentation-detail" - } - ] - }, - "presentation-detail": { - "patterns": [ - { - "match": "[\t ]++", - "name": "punctuation.whitespace.separator.yaml" - }, - { - "comment": "https://yaml.org/spec/1.1/#id871136", - "match": "[\\x{85 2028 2029}\r\n]++", - "name": "punctuation.separator.line-break.yaml" - }, - { - "include": "source.yaml#non-printable" - }, - { - "include": "#comment" - }, - { - "include": "#unknown" - } - ] - }, - "comment": { - "comment": "Comments must be separated from other tokens by white space characters. `space`, `newline` or `carriage-return`. `#(.*)` causes performance issues", - "begin": "(?<=^|[\\x{FEFF 85 2028 2029} ])#", - "end": "[\\x{85 2028 2029}\r\n]", - "captures": { - "0": { - "name": "punctuation.definition.comment.yaml" - } - }, - "name": "comment.line.number-sign.yaml", - "patterns": [ - { - "include": "source.yaml#non-printable" - } - ] - }, - "unknown": { - "match": ".[[^\\x{85 2028 2029}#\"':,\\[\\]{}]&&!-~\\x{A0}-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{010000}-\\x{10FFFF}]*+", - "name": "invalid.illegal.unrecognized.yaml" - } - } -} \ No newline at end of file diff --git a/extensions/yaml/syntaxes/yaml-1.2.tmLanguage.json b/extensions/yaml/syntaxes/yaml-1.2.tmLanguage.json deleted file mode 100644 index 965b604081667..0000000000000 --- a/extensions/yaml/syntaxes/yaml-1.2.tmLanguage.json +++ /dev/null @@ -1,1641 +0,0 @@ -{ - "information_for_contributors": [ - "This file has been converted from https://github.com/RedCMD/YAML-Syntax-Highlighter/blob/master/syntaxes/yaml-1.2.tmLanguage.json", - "If you want to provide a fix or improvement, please create a pull request against the original repository.", - "Once accepted there, we are happy to receive an update request." - ], - "version": "https://github.com/RedCMD/YAML-Syntax-Highlighter/commit/d4dca9f38a654ebbb13c1b72b7881e3c5864a778", - "name": "YAML 1.2", - "scopeName": "source.yaml.1.2", - "comment": "https://yaml.org/spec/1.2.2", - "patterns": [ - { - "include": "#stream" - } - ], - "repository": { - "stream": { - "patterns": [ - { - "comment": "allows me to just use `\\G` instead of the performance heavy `(^|\\G)`", - "begin": "^(?!\\G)", - "while": "^", - "name": "meta.stream.yaml", - "patterns": [ - { - "include": "#byte-order-mark" - }, - { - "include": "#directives" - }, - { - "include": "#document" - }, - { - "include": "#presentation-detail" - } - ] - }, - { - "comment": "For when YAML is embedded inside a Markdown code-block", - "begin": "\\G", - "while": "\\G", - "name": "meta.stream.yaml", - "patterns": [ - { - "include": "#byte-order-mark" - }, - { - "include": "#directives" - }, - { - "include": "#document" - }, - { - "include": "#presentation-detail" - } - ] - } - ] - }, - "directive-YAML": { - "comment": "https://yaml.org/spec/1.2.2/#681-yaml-directives", - "begin": "(?=%YAML[\t ]+1\\.2(?=[\r\n\t ]))", - "end": "\\G(?=(?>\\.{3}|---)[\r\n\t ])", - "name": "meta.1.2.yaml", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#681-yaml-directives", - "begin": "\\G(%)(YAML)([\t ]+)(1\\.2)", - "end": "\\G(?=---[\r\n\t ])", - "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" - } - }, - "name": "meta.directives.yaml", - "patterns": [ - { - "include": "#directive-invalid" - }, - { - "include": "#directives" - }, - { - "include": "#presentation-detail" - } - ] - }, - { - "include": "#document" - } - ] - }, - "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": "(?=%)", - "while": "\\G(?!%|---[\r\n\t ])", - "name": "meta.directives.yaml", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#682-tag-directives", - "begin": "\\G(%)(TAG)(?>([\t ]++)((!)(?>[0-9A-Za-z-]*+(!))?+))?+", - "end": "$", - "applyEndPatternLast": true, - "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" - }, - "patterns": [ - { - "comment": "technically the beginning should only validate against a valid uri scheme [A-Za-z][A-Za-z0-9.+-]*", - "begin": "\\G[\t ]++(?!#)", - "end": "(?=[\r\n\t ])", - "beginCaptures": { - "0": { - "name": "punctuation.whitespace.separator.yaml" - } - }, - "contentName": "support.type.tag-prefix.yaml", - "patterns": [ - { - "match": "%[0-9a-fA-F]{2}", - "name": "constant.character.escape.unicode.8-bit.yaml" - }, - { - "match": "%[^\r\n\t ]{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": "[^\r\n\t a-zA-Z0-9-#;/?:@&=+$,_.!~*'()\\[\\]]++", - "name": "invalid.illegal.unrecognized.yaml" - } - ] - }, - { - "include": "#presentation-detail" - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-reserved-directive", - "begin": "(%)([\\x{85}[^ \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]++)", - "end": "$", - "beginCaptures": { - "1": { - "name": "punctuation.definition.directive.begin.yaml" - }, - "2": { - "name": "keyword.other.directive.other.yaml" - } - }, - "patterns": [ - { - "match": "\\G([\t ]++)([\\x{85}[^ \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]++)", - "captures": { - "1": { - "name": "punctuation.whitespace.separator.yaml" - }, - "2": { - "name": "string.unquoted.directive-name.yaml" - } - } - }, - { - "match": "([\t ]++)([\\x{85}[^ \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]++)", - "captures": { - "1": { - "name": "punctuation.whitespace.separator.yaml" - }, - "2": { - "name": "string.unquoted.directive-parameter.yaml" - } - } - }, - { - "include": "#presentation-detail" - } - ] - }, - { - "match": "\\G\\.{3}(?=[\r\n\t ])", - "name": "invalid.illegal.entity.other.document.end.yaml" - }, - { - "include": "#presentation-detail" - } - ] - } - ] - }, - "directive-invalid": { - "patterns": [ - { - "match": "\\G\\.{3}(?=[\r\n\t ])", - "name": "invalid.illegal.entity.other.document.end.yaml" - }, - { - "begin": "\\G(%)(YAML)", - "end": "$", - "beginCaptures": { - "1": { - "name": "punctuation.definition.directive.begin.yaml" - }, - "2": { - "name": "invalid.illegal.keyword.other.directive.yaml.yaml" - } - }, - "name": "meta.directive.yaml", - "patterns": [ - { - "match": "\\G([\t ]++|:)([0-9]++\\.[0-9]++)?+", - "captures": { - "1": { - "name": "punctuation.whitespace.separator.yaml" - }, - "2": { - "name": "constant.numeric.yaml-version.yaml" - } - } - }, - { - "include": "#presentation-detail" - } - ] - } - ] - }, - "document": { - "comment": "https://yaml.org/spec/1.2.2/#91-documents", - "patterns": [ - { - "begin": "---(?=[\r\n\t ])", - "while": "\\G(?!(?>\\.{3}|---)[\r\n\t ])", - "beginCaptures": { - "0": { - "name": "entity.other.document.begin.yaml" - } - }, - "name": "meta.document.yaml", - "patterns": [ - { - "include": "#block-node" - } - ] - }, - { - "begin": "(?=\\.{3}[\r\n\t ])", - "while": "\\G(?=[\t \\x{FEFF}]*+(?>#|$))", - "patterns": [ - { - "begin": "\\G\\.{3}", - "end": "$", - "beginCaptures": { - "0": { - "name": "entity.other.document.end.yaml" - } - }, - "patterns": [ - { - "include": "#presentation-detail" - } - ] - }, - { - "include": "#byte-order-mark" - }, - { - "include": "#presentation-detail" - } - ] - }, - { - "begin": "\\G(?!%|[\t \\x{FEFF}]*+(?>#|$))", - "while": "\\G(?!(?>\\.{3}|---)[\r\n\t ])", - "name": "meta.document.yaml", - "patterns": [ - { - "include": "#block-node" - } - ] - } - ] - }, - "block-node": { - "patterns": [ - { - "include": "#block-sequence" - }, - { - "include": "#block-mapping" - }, - { - "include": "#block-scalar" - }, - { - "include": "#anchor-property" - }, - { - "include": "#tag-property" - }, - { - "include": "#alias" - }, - { - "begin": "(?=\"|')", - "while": "\\G", - "patterns": [ - { - "begin": "(?!\\G)", - "while": "\\G", - "patterns": [ - { - "include": "#presentation-detail" - } - ] - }, - { - "include": "#double" - }, - { - "include": "#single" - } - ] - }, - { - "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-mapping": { - "//": "The check for plain keys is expensive", - "begin": "(?=((?<=[-?:]) )?+)(?((?>[!&*][^\r\n\t ]*+[\t ]++)*+)(?=(?>(?#Double Quote)\"(?>[^\\\\\"]++|\\\\.)*+\"|(?#Single Quote)'(?>[^']++|'')*+'|(?#Flow-Map){(?>[^}]++|}[ \t]*+(?!:[\r\n\t ]))++}|(?#Flow-Seq)\\[(?>[^]]++|][ \t]*+(?!:[\r\n\t ]))++]|(?#Plain)(?>[\\x{85}[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]|[?:-](?![\r\n\t ]))(?>[^:#]++|:(?![\r\n\t ])|(?(\\1\\2)((?>[!&*][^\r\n\t ]*+[\t ]++)*+)((?>\t[\t ]*+)?+[^\r\n\t ?:\\-#!&*\"'\\[\\]{}0-9A-Za-z$()+./;<=\\\\^_~\\x{85}\\x{A0}-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{010000}-\\x{10FFFF}])?+|( *+)([\t ]*+[^\r\n#])?+)", - "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" - } - ] - } - }, - "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" - } - }, - "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" - } - ] - }, - "block-sequence": { - "comment": "https://yaml.org/spec/1.2.2/#rule-l+block-sequence", - "begin": "(?=((?<=[-?:]) )?+)(?(\\1\\2)(?!-[\r\n\t ])((?>\t[\t ]*+)?+[^\r\n\t #\\]}])?+|(?!\\1\\2)( *+)([\t ]*+[^\r\n#])?+)", - "beginCaptures": { - "2": { - "name": "punctuation.whitespace.indentation.yaml" - }, - "3": { - "name": "punctuation.definition.block.sequence.item.yaml" - } - }, - "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" - } - }, - "name": "meta.block.sequence.yaml", - "patterns": [ - { - "include": "#block-node" - } - ] - }, - "block-map-key-explicit": { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-l-block-map-explicit-key", - "begin": "(?=((?<=[-?:]) )?+)\\G( *+)(\\?)(?=[\r\n\t ])", - "while": "\\G(?>(\\1\\2)(?![?:0-9A-Za-z$()+./;<=\\\\^_~\\x{85}\\x{A0}-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{010000}-\\x{10FFFF}&&[^\\x{FEFF}]])((?>\t[\t ]*+)?+[^\r\n\t #\\-\\[\\]{}])?+|(?!\\1\\2)( *+)([\t ]*+[^\r\n#])?+)", - "beginCaptures": { - "2": { - "name": "punctuation.whitespace.indentation.yaml" - }, - "3": { - "name": "punctuation.definition.map.key.yaml" - }, - "4": { - "name": "punctuation.whitespace.separator.yaml" - } - }, - "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" - } - }, - "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" - } - ] - }, - "block-map-key-double": { - "comment": "https://yaml.org/spec/1.2.2/#double-quoted-style (BLOCK-KEY)", - "begin": "\\G\"", - "end": "\"", - "beginCaptures": { - "0": { - "name": "punctuation.definition.string.begin.yaml" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.definition.string.end.yaml" - } - }, - "name": "meta.map.key.yaml string.quoted.double.yaml entity.name.tag.yaml", - "patterns": [ - { - "match": ".[\t ]*+$", - "name": "invalid.illegal.multiline-key.yaml" - }, - { - "match": "[^\t -\\x{10FFFF}]++", - "name": "invalid.illegal.character.yaml" - }, - { - "include": "#double-escape" - } - ] - }, - "block-map-key-plain": { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-plain-one-line (BLOCK-KEY)", - "begin": "\\G(?=[\\x{85}[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]|[?:-](?![\r\n\t ]))", - "end": "(?=[\t ]*+:[\r\n\t ]|(?>[\t ]++|\\G)#)", - "name": "meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", - "patterns": [ - { - "include": "#tag-implicit-plain-out" - }, - { - "match": "\\G([\t ]++)(.)", - "captures": { - "1": { - "name": "punctuation.whitespace.separator.yaml" - }, - "2": { - "name": "invalid.illegal.multiline-key.yaml" - } - } - }, - { - "match": "[\t ]++$", - "name": "punctuation.whitespace.separator.yaml" - }, - { - "match": "\\x{FEFF}", - "name": "invalid.illegal.bom.yaml" - }, - { - "include": "source.yaml#non-printable" - } - ] - }, - "block-map-value": { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-l-block-map-implicit-value", - "//": "Assumming 3rd party preprocessing variables `{{...}}` turn into valid map-keys when inside a block-mapping", - "begin": ":(?=[\r\n\t ])|(?<=}})(?=[\t ]++#|[\t ]*+$)", - "while": "\\G(?![?:!\"'0-9A-Za-z$()+./;<=\\\\^_~\\[{\\x{85}\\x{A0}-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{010000}-\\x{10FFFF}&&[^\\x{FEFF}]]|-[^\r\n\t ])", - "beginCaptures": { - "0": { - "name": "punctuation.separator.map.value.yaml" - } - }, - "name": "meta.map.value.yaml", - "patterns": [ - { - "include": "#block-node" - } - ] - }, - "block-scalar": { - "comment": "https://yaml.org/spec/1.2.2/#81-block-scalar-styles", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#8111-block-indentation-indicator", - "begin": "([\t ]*+)(?>(\\|)|(>))(?[+-])?+((1)|(2)|(3)|(4)|(5)|(6)|(7)|(8)|(9))(?()|([+-]))?+", - "while": "\\G(?>(?>(?!\\6) |(?!\\7) {2}|(?!\\8) {3}|(?!\\9) {4}|(?!\\10) {5}|(?!\\11) {6}|(?!\\12) {7}|(?!\\13) {8}|(?!\\14) {9})| *+($|[^#]))", - "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" - } - }, - "whileCaptures": { - "0": { - "name": "punctuation.whitespace.indentation.yaml" - }, - "1": { - "name": "invalid.illegal.expected-indentation.yaml" - } - }, - "name": "meta.scalar.yaml", - "patterns": [ - { - "begin": "$", - "while": "\\G", - "contentName": "string.unquoted.block.yaml", - "patterns": [ - { - "include": "source.yaml#non-printable" - } - ] - }, - { - "begin": "\\G", - "end": "$", - "patterns": [ - { - "include": "#presentation-detail" - } - ] - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-b-block-header", - "//": "Soooooooo many edge cases", - "begin": "([\t ]*+)(?>(\\|)|(>))([+-]?+)", - "while": "\\G", - "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" - } - }, - "name": "meta.scalar.yaml", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#rule-l-literal-content", - "begin": "$", - "while": "\\G", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#rule-l-nb-literal-text", - "//": "Find the highest indented line", - "begin": "\\G( ++)$", - "while": "\\G(?>(\\1)$|(?!\\1)( *+)($|.))", - "captures": { - "1": { - "name": "punctuation.whitespace.indentation.yaml" - }, - "2": { - "name": "punctuation.whitespace.indentation.yaml" - }, - "3": { - "name": "invalid.illegal.expected-indentation.yaml" - } - }, - "contentName": "string.unquoted.block.yaml", - "patterns": [ - { - "include": "source.yaml#non-printable" - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-b-nb-literal-next", - "//": [ - "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(?!$)(?=( *+))", - "end": "\\G(?!\\1)(?=[\t ]*+#)", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#rule-l-nb-literal-text", - "begin": "\\G( *+)", - "while": "\\G(?>(\\1)|( *+)($|[^\t#]|[\t ]++[^#]))", - "captures": { - "1": { - "name": "punctuation.whitespace.indentation.yaml" - }, - "2": { - "name": "punctuation.whitespace.indentation.yaml" - }, - "3": { - "name": "invalid.illegal.expected-indentation.yaml" - } - }, - "contentName": "string.unquoted.block.yaml", - "patterns": [ - { - "include": "source.yaml#non-printable" - } - ] - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-l-chomped-empty", - "begin": "(?!\\G)(?=[\t ]*+#)", - "while": "\\G", - "patterns": [ - { - "include": "#presentation-detail" - } - ] - } - ] - }, - { - "comment": "Header Comment", - "begin": "\\G", - "end": "$", - "patterns": [ - { - "include": "#presentation-detail" - } - ] - } - ] - } - ] - }, - "block-plain-out": { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-plain-multi-line (FLOW-OUT)", - "begin": "(?=[\\x{85}[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]|[?:-](?![\r\n\t ]))", - "while": "\\G", - "patterns": [ - { - "begin": "\\G", - "end": "(?=(?>[\t ]++|\\G)#)", - "name": "string.unquoted.plain.out.yaml", - "patterns": [ - { - "include": "#tag-implicit-plain-out" - }, - { - "match": ":(?=[\r\n\t ])", - "name": "invalid.illegal.multiline-key.yaml" - }, - { - "match": "\\G[\t ]++", - "name": "punctuation.whitespace.separator.yaml" - }, - { - "match": "[\t ]++$", - "name": "punctuation.whitespace.separator.yaml" - }, - { - "match": "\\x{FEFF}", - "name": "invalid.illegal.bom.yaml" - }, - { - "include": "source.yaml#non-printable" - } - ] - }, - { - "begin": "(?!\\G)", - "while": "\\G", - "patterns": [ - { - "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-mapping": { - "comment": "https://yaml.org/spec/1.2.2/#742-flow-mappings", - "begin": "{", - "end": "}", - "beginCaptures": { - "0": { - "name": "punctuation.definition.mapping.begin.yaml" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.definition.mapping.end.yaml" - } - }, - "name": "meta.flow.mapping.yaml", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-s-flow-map-entries", - "begin": "(?<={)\\G(?=[\r\n\t ,#])|,", - "end": "(?=[^\r\n\t ,#])", - "beginCaptures": { - "0": { - "name": "punctuation.separator.mapping.yaml" - } - }, - "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-sequence": { - "comment": "https://yaml.org/spec/1.2.2/#741-flow-sequences", - "begin": "\\[", - "end": "]", - "beginCaptures": { - "0": { - "name": "punctuation.definition.sequence.begin.yaml" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.definition.sequence.end.yaml" - } - }, - "name": "meta.flow.sequence.yaml", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-s-flow-seq-entries", - "begin": "(?<=\\[)\\G(?=[\r\n\t ,#])|,", - "end": "(?=[^\r\n\t ,#])", - "beginCaptures": { - "0": { - "name": "punctuation.separator.sequence.yaml" - } - }, - "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-mapping-map-key": { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-entry (FLOW-IN)", - "patterns": [ - { - "begin": "\\?(?=[\r\n\t ,\\[\\]{}])", - "end": "(?=[,\\[\\]{}])", - "beginCaptures": { - "0": { - "name": "punctuation.definition.map.key.yaml" - } - }, - "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" - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-implicit-entry (FLOW-IN)", - "begin": "(?=(?>[\\x{85}[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]|[?:-](?![\r\n\t ,\\[\\]{}])))", - "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" - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-implicit-entry (FLOW-IN)", - "begin": "(?=\"|')", - "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-sequence-map-key": { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-entry (FLOW-IN)", - "patterns": [ - { - "begin": "\\?(?=[\r\n\t ,\\[\\]{}])", - "end": "(?=[,\\[\\]{}])", - "beginCaptures": { - "0": { - "name": "punctuation.definition.map.key.yaml" - } - }, - "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" - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-flow-map-implicit-entry (FLOW-IN)", - "begin": "(?<=[\t ,\\[{]|^)(?=(?>[\\x{85}[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]|[?:-](?![\r\n\t ,\\[\\]{}]))(?>[^:#,\\[\\]{}]++|:(?![\r\n\t ,\\[\\]{}])|(?\"(?>[^\\\\\"]++|\\\\.)*+\"|'(?>[^']++|'')*+')[\t ]*+:)", - "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-map-value-yaml": { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-ns-flow-map-separate-value (FLOW-IN)", - "begin": ":(?=[\r\n\t ,\\[\\]{}])", - "end": "(?=[,\\]}])", - "beginCaptures": { - "0": { - "name": "punctuation.separator.map.value.yaml" - } - }, - "name": "meta.flow.pair.value.yaml", - "patterns": [ - { - "include": "#flow-node" - } - ] - }, - "flow-map-value-json": { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-ns-flow-map-separate-value (FLOW-IN)", - "begin": "(?<=(?>[\"'\\]}]|^)[\t ]*+):", - "end": "(?=[,\\]}])", - "beginCaptures": { - "0": { - "name": "punctuation.separator.map.value.yaml" - } - }, - "name": "meta.flow.pair.value.yaml", - "patterns": [ - { - "include": "#flow-node" - } - ] - }, - "flow-plain-in": { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-plain-multi-line (FLOW-IN)", - "begin": "(?=[\\x{85}[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]|[?:-](?![\r\n\t ,\\[\\]{}]))", - "end": "(?=(?>[\t ]++|\\G)#|[\t ]*+[,\\[\\]{}])", - "name": "string.unquoted.plain.in.yaml", - "patterns": [ - { - "include": "#tag-implicit-plain-in" - }, - { - "match": "\\G[\t ]++", - "name": "punctuation.whitespace.separator.yaml" - }, - { - "match": "[\t ]++$", - "name": "punctuation.whitespace.separator.yaml" - }, - { - "match": ":(?=[\r\n\t ,\\[\\]{}])", - "name": "invalid.illegal.multiline-key.yaml" - }, - { - "match": "\\x{FEFF}", - "name": "invalid.illegal.bom.yaml" - }, - { - "include": "source.yaml#non-printable" - } - ] - }, - "flow-key-plain-out": { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-plain-one-line (FLOW-OUT)", - "begin": "(?=[\\x{85}[^-?:,\\[\\]{}#&*!|>'\"%@` \\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]|[?:-](?![\r\n\t ]))", - "end": "(?=[\t ]*+:[\r\n\t ]|[\t ]++#)", - "name": "meta.map.key.yaml string.unquoted.plain.yaml entity.name.tag.yaml", - "patterns": [ - { - "include": "#tag-implicit-plain-out" - }, - { - "match": "\\G[\t ]++", - "name": "punctuation.whitespace.separator.yaml" - }, - { - "match": "[\t ]++$", - "name": "punctuation.whitespace.separator.yaml" - }, - { - "match": "\\x{FEFF}", - "name": "invalid.illegal.bom.yaml" - }, - { - "include": "source.yaml#non-printable" - } - ] - }, - "flow-key-plain-in": { - "comment": "https://yaml.org/spec/1.2.2/#rule-ns-s-implicit-yaml-key (FLOW-KEY)", - "begin": "\\G(?![\r\n\t #])", - "end": "(?=[\t ]*+(?>:[\r\n\t ,\\[\\]{}]|[,\\[\\]{}])|[\t ]++#)", - "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" - } - ] - }, - "key-double": { - "comment": "https://yaml.org/spec/1.2.2/#double-quoted-style (FLOW-OUT)", - "begin": "\"", - "end": "\"", - "beginCaptures": { - "0": { - "name": "punctuation.definition.string.begin.yaml" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.definition.string.end.yaml" - } - }, - "name": "meta.map.key.yaml string.quoted.double.yaml entity.name.tag.yaml", - "patterns": [ - { - "match": "[^\t -\\x{10FFFF}]++", - "name": "invalid.illegal.character.yaml" - }, - { - "include": "#double-escape" - } - ] - }, - "double": { - "comment": "https://yaml.org/spec/1.2.2/#double-quoted-style", - "begin": "\"", - "end": "\"", - "beginCaptures": { - "0": { - "name": "punctuation.definition.string.begin.yaml" - } - }, - "endCaptures": { - "0": { - "name": "punctuation.definition.string.end.yaml" - } - }, - "name": "string.quoted.double.yaml", - "patterns": [ - { - "match": "(?x[^\"]{2,0}|u[^\"]{4,0}|U[^\"]{8,0}|.)", - "name": "invalid.illegal.constant.character.escape.yaml" - } - ] - }, - "tag-implicit-plain-in": { - "comment": "https://yaml.org/spec/1.2.2/#103-core-schema", - "patterns": [ - { - "match": "\\G(?>null|Null|NULL|~)(?=[\t ]++#|[\t ]*+(?>[\r\n,\\]}]|:[\r\n\t ,\\[\\]{}]))", - "name": "constant.language.null.yaml" - }, - { - "match": "\\G(?>true|True|TRUE|false|False|FALSE)(?=[\t ]++#|[\t ]*+(?>[\r\n,\\]}]|:[\r\n\t ,\\[\\]{}]))", - "name": "constant.language.boolean.yaml" - }, - { - "match": "\\G[+-]?+[0-9]++(?=[\t ]++#|[\t ]*+(?>[\r\n,\\]}]|:[\r\n\t ,\\[\\]{}]))", - "name": "constant.numeric.integer.decimal.yaml" - }, - { - "match": "\\G0o[0-7]++(?=[\t ]++#|[\t ]*+(?>[\r\n,\\]}]|:[\r\n\t ,\\[\\]{}]))", - "name": "constant.numeric.integer.octal.yaml" - }, - { - "match": "\\G0x[0-9a-fA-F]++(?=[\t ]++#|[\t ]*+(?>[\r\n,\\]}]|:[\r\n\t ,\\[\\]{}]))", - "name": "constant.numeric.integer.hexadecimal.yaml" - }, - { - "match": "\\G[+-]?+(?>\\.[0-9]++|[0-9]++(?>\\.[0-9]*+)?+)(?>[eE][+-]?+[0-9]++)?+(?=[\t ]++#|[\t ]*+(?>[\r\n,\\]}]|:[\r\n\t ,\\[\\]{}]))", - "name": "constant.numeric.float.yaml" - }, - { - "match": "\\G[+-]?+\\.(?>inf|Inf|INF)(?=[\t ]++#|[\t ]*+(?>[\r\n,\\]}]|:[\r\n\t ,\\[\\]{}]))", - "name": "constant.numeric.float.inf.yaml" - }, - { - "match": "\\G\\.(?>nan|NaN|NAN)(?=[\t ]++#|[\t ]*+(?>[\r\n,\\]}]|:[\r\n\t ,\\[\\]{}]))", - "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|~)(?=[\t ]++#|[\t ]*+(?>$|:[\r\n\t ]))", - "name": "constant.language.null.yaml" - }, - { - "match": "\\G(?>true|True|TRUE|false|False|FALSE)(?=[\t ]++#|[\t ]*+(?>$|:[\r\n\t ]))", - "name": "constant.language.boolean.yaml" - }, - { - "match": "\\G[+-]?+[0-9]++(?=[\t ]++#|[\t ]*+(?>$|:[\r\n\t ]))", - "name": "constant.numeric.integer.decimal.yaml" - }, - { - "match": "\\G0o[0-7]++(?=[\t ]++#|[\t ]*+(?>$|:[\r\n\t ]))", - "name": "constant.numeric.integer.octal.yaml" - }, - { - "match": "\\G0x[0-9a-fA-F]++(?=[\t ]++#|[\t ]*+(?>$|:[\r\n\t ]))", - "name": "constant.numeric.integer.hexadecimal.yaml" - }, - { - "match": "\\G[+-]?+(?>\\.[0-9]++|[0-9]++(?>\\.[0-9]*+)?+)(?>[eE][+-]?+[0-9]++)?+(?=[\t ]++#|[\t ]*+(?>$|:[\r\n\t ]))", - "name": "constant.numeric.float.yaml" - }, - { - "match": "\\G[+-]?+\\.(?>inf|Inf|INF)(?=[\t ]++#|[\t ]*+(?>$|:[\r\n\t ]))", - "name": "constant.numeric.float.inf.yaml" - }, - { - "match": "\\G\\.(?>nan|NaN|NAN)(?=[\t ]++#|[\t ]*+(?>$|:[\r\n\t ]))", - "name": "constant.numeric.float.nan.yaml" - } - ] - }, - "tag-property": { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-ns-tag-property", - "//": [ - "!", - "!!", - "!<>", - "!...", - "!!...", - "!<...>", - "!...!..." - ], - "patterns": [ - { - "match": "!(?=[\r\n\t ])", - "name": "storage.type.tag.non-specific.yaml punctuation.definition.tag.non-specific.yaml" - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-verbatim-tag", - "begin": "!<", - "end": ">", - "beginCaptures": { - "0": { - "name": "punctuation.definition.tag.begin.yaml" - } - }, - "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": "%[^\r\n\t ]{2,0}", - "name": "invalid.illegal.constant.character.escape.unicode.8-bit.yaml" - }, - { - "include": "source.yaml#non-printable" - }, - { - "match": "[^\r\n\t a-zA-Z0-9-#;/?:@&=+$,_.!~*'()\\[\\]%>]++", - "name": "invalid.illegal.unrecognized.yaml" - } - ] - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-ns-shorthand-tag", - "begin": "(?=!)", - "end": "(?=[\r\n\t ,\\[\\]{}])", - "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" - }, - { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-secondary-tag-handle", - "match": "\\G(!)[0-9A-Za-z-]++(!)", - "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-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": "%[^\r\n\t ]{2,0}", - "name": "invalid.illegal.constant.character.escape.unicode.8-bit.yaml" - }, - { - "include": "source.yaml#non-printable" - }, - { - "match": "[^\r\n\t a-zA-Z0-9-#;/?:@&=+$_.~*'()%]++", - "name": "invalid.illegal.unrecognized.yaml" - } - ] - } - ] - }, - "anchor-property": { - "match": "(&)([\\x{85}[^ ,\\[\\]{}\\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]++)|(&)", - "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" - } - } - }, - "alias": { - "begin": "(\\*)([\\x{85}[^ ,\\[\\]{}\\p{Cntrl}\\p{Surrogate}\\x{FEFF FFFE FFFF}]]++)|(\\*)", - "end": "(?=:[\r\n\t ,\\[\\]{}]|[,\\[\\]{}])", - "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" - } - }, - "patterns": [ - { - "include": "#presentation-detail" - } - ] - }, - "byte-order-mark": { - "comment": "", - "match": "\\G\\x{FEFF}++", - "name": "byte-order-mark.yaml" - }, - "presentation-detail": { - "patterns": [ - { - "match": "[\t ]++", - "name": "punctuation.whitespace.separator.yaml" - }, - { - "include": "source.yaml#non-printable" - }, - { - "include": "#comment" - }, - { - "include": "#unknown" - } - ] - }, - "comment": { - "comment": "Comments must be separated from other tokens by white space characters. `space`, `tab`, `newline` or `carriage-return`. `#(.*)` causes performance issues", - "begin": "(?<=[\\x{FEFF}\t ]|^)#", - "end": "\r|\n", - "captures": { - "0": { - "name": "punctuation.definition.comment.yaml" - } - }, - "name": "comment.line.number-sign.yaml", - "patterns": [ - { - "include": "source.yaml#non-printable" - } - ] - }, - "unknown": { - "match": ".[[^\"':,\\[\\]{}]&&!-~\\x{85}\\x{A0}-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{010000}-\\x{10FFFF}]*+", - "name": "invalid.illegal.unrecognized.yaml" - } - } -} \ No newline at end of file diff --git a/extensions/yaml/syntaxes/yaml-1.3.tmLanguage.json b/extensions/yaml/syntaxes/yaml-1.3.tmLanguage.json deleted file mode 100644 index 8df69f61c8c43..0000000000000 --- a/extensions/yaml/syntaxes/yaml-1.3.tmLanguage.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "information_for_contributors": [ - "This file has been converted from https://github.com/RedCMD/YAML-Syntax-Highlighter/blob/master/syntaxes/yaml-1.3.tmLanguage.json", - "If you want to provide a fix or improvement, please create a pull request against the original repository.", - "Once accepted there, we are happy to receive an update request." - ], - "version": "https://github.com/RedCMD/YAML-Syntax-Highlighter/commit/274009903e20ac6dc37ba5763fb853744e28c9b2", - "name": "YAML 1.3", - "scopeName": "source.yaml.1.3", - "comment": "https://spec.yaml.io/main/spec/1.3.0/", - "patterns": [ - { - "include": "source.yaml" - } - ], - "repository": { - "directive-YAML": { - "comment": "https://yaml.org/spec/1.2.2/#681-yaml-directives", - "begin": "(?=%YAML[\t ]+1\\.3(?=[\r\n\t ]))", - "end": "\\G(?=(?>\\.{3}|---)[\r\n\t ])", - "name": "meta.1.3.yaml", - "patterns": [ - { - "comment": "https://yaml.org/spec/1.2.2/#681-yaml-directives", - "begin": "\\G(%)(YAML)([\t ]+)(1\\.3)", - "end": "\\G(?=---[\r\n\t ])", - "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" - } - }, - "name": "meta.directives.yaml", - "patterns": [ - { - "include": "source.yaml.1.2#directive-invalid" - }, - { - "include": "source.yaml.1.2#directives" - }, - { - "include": "source.yaml.1.2#presentation-detail" - } - ] - }, - { - "include": "source.yaml.1.2#document" - } - ] - } - } -} \ No newline at end of file diff --git a/extensions/yaml/syntaxes/yaml.tmLanguage.json b/extensions/yaml/syntaxes/yaml.tmLanguage.json index 3a64fbd850e07..c98b98119fa2b 100644 --- a/extensions/yaml/syntaxes/yaml.tmLanguage.json +++ b/extensions/yaml/syntaxes/yaml.tmLanguage.json @@ -1,106 +1,621 @@ { "information_for_contributors": [ - "This file has been converted from https://github.com/RedCMD/YAML-Syntax-Highlighter/blob/master/syntaxes/yaml.tmLanguage.json", + "This file has been converted from https://github.com/textmate/yaml.tmbundle/blob/master/Syntaxes/YAML.tmLanguage", "If you want to provide a fix or improvement, please create a pull request against the original repository.", "Once accepted there, we are happy to receive an update request." ], - "version": "https://github.com/RedCMD/YAML-Syntax-Highlighter/commit/d4dca9f38a654ebbb13c1b72b7881e3c5864a778", - "name": "YAML Ain't Markup Language", + "version": "https://github.com/textmate/yaml.tmbundle/commit/e54ceae3b719506dba7e481a77cea4a8b576ae46", + "name": "YAML", "scopeName": "source.yaml", "patterns": [ { - "comment": "Support legacy FrontMatter integration", - "//": "https://github.com/microsoft/vscode-markdown-tm-grammar/pull/162", - "begin": "(?<=^-{3,}\\s*+)\\G$", - "while": "^(?! {3,0}-{3,}[ \t]*+$|[ \t]*+\\.{3}$)", - "patterns": [ - { - "include": "source.yaml.1.2" - } - ] + "include": "#comment" + }, + { + "include": "#property" + }, + { + "include": "#directive" + }, + { + "match": "^---", + "name": "entity.other.document.begin.yaml" }, { - "comment": "Default to YAML version 1.2", - "include": "source.yaml.1.2" + "match": "^\\.{3}", + "name": "entity.other.document.end.yaml" + }, + { + "include": "#node" } ], "repository": { - "parity": { - "comment": "Yes... That is right. Due to the changes with \\x2028, \\x2029, \\x85 and 'tags'. This is all the code I was able to reuse between all YAML versions 1.3, 1.2, 1.1 and 1.0" + "block-collection": { + "patterns": [ + { + "include": "#block-sequence" + }, + { + "include": "#block-mapping" + } + ] }, - "block-map-key-single": { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-single-quoted (BLOCK-KEY)", - "begin": "\\G'", - "end": "'(?!')", + "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\t\t\t\t\t\t\t(\\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\t\t\t\t\t\t\t(\\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": "meta.map.key.yaml string.quoted.single.yaml entity.name.tag.yaml", + "name": "string.quoted.double.yaml", "patterns": [ { - "match": ".[\t ]*+$", - "name": "invalid.illegal.multiline-key.yaml" + "match": "\\\\([0abtnvfre \"/\\\\N_Lp]|x\\d\\d|u\\d{4}|U\\d{8})", + "name": "constant.character.escape.yaml" }, { - "match": "[^\t -\\x{10FFFF}]++", - "name": "invalid.illegal.character.yaml" + "match": "\\\\\\n", + "name": "constant.character.escape.double-quoted.newline.yaml" + } + ] + }, + "flow-scalar-plain-in": { + "patterns": [ + { + "include": "#flow-scalar-plain-in-implicit-type" }, { - "match": "''", - "name": "constant.character.escape.single-quote.yaml" + "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_]+ # (base 2)\n | [-+]? 0 [0-7_]+ # (base 8)\n | [-+]? (?: 0|[1-9][0-9_]*) # (base 10)\n | [-+]? 0x [0-9a-fA-F_]+ # (base 16)\n | [-+]? [1-9] [0-9_]* (?: :[0-5]?[0-9])+ # (base 60)\n )\n )\n | (\n (?x:\n [-+]? (?: [0-9] [0-9_]*)? \\. [0-9.]* (?: [eE] [-+] [0-9]+)? # (base 10)\n | [-+]? [0-9] [0-9_]* (?: :[0-5]?[0-9])+ \\. [0-9_]* # (base 60)\n | [-+]? \\. (?: inf|Inf|INF) # (infinity)\n | \\. (?: nan|NaN|NAN) # (not a number)\n )\n )\n | (\n (?x:\n \\d{4} - \\d{2} - \\d{2} # (y-m-d)\n | \\d{4} # (year)\n - \\d{1,2} # (month)\n - \\d{1,2} # (day)\n (?: [Tt] | [ \\t]+) \\d{1,2} # (hour)\n : \\d{2} # (minute)\n : \\d{2} # (second)\n (?: \\.\\d*)? # (fraction)\n (?:\n (?:[ \\t]*) Z\n | [-+] \\d{1,2} (?: :\\d{1,2})?\n )? # (time zone)\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_]+ # (base 2)\n | [-+]? 0 [0-7_]+ # (base 8)\n | [-+]? (?: 0|[1-9][0-9_]*) # (base 10)\n | [-+]? 0x [0-9a-fA-F_]+ # (base 16)\n | [-+]? [1-9] [0-9_]* (?: :[0-5]?[0-9])+ # (base 60)\n )\n )\n | (\n (?x:\n [-+]? (?: [0-9] [0-9_]*)? \\. [0-9.]* (?: [eE] [-+] [0-9]+)? # (base 10)\n | [-+]? [0-9] [0-9_]* (?: :[0-5]?[0-9])+ \\. [0-9_]* # (base 60)\n | [-+]? \\. (?: inf|Inf|INF) # (infinity)\n | \\. (?: nan|NaN|NAN) # (not a number)\n )\n )\n | (\n (?x:\n \\d{4} - \\d{2} - \\d{2} # (y-m-d)\n | \\d{4} # (year)\n - \\d{1,2} # (month)\n - \\d{1,2} # (day)\n (?: [Tt] | [ \\t]+) \\d{1,2} # (hour)\n : \\d{2} # (minute)\n : \\d{2} # (second)\n (?: \\.\\d*)? # (fraction)\n (?:\n (?:[ \\t]*) Z\n | [-+] \\d{1,2} (?: :\\d{1,2})?\n )? # (time zone)\n )\n )\n | (=)\n | (<<)\n )\n (?x:\n (?=\n \\s* $\n | \\s+ \\#\n | \\s* : (\\s|$)\n )\n )\n " } ] }, - "key-single": { - "comment": "https://yaml.org/spec/1.2.2/#rule-c-single-quoted (FLOW-OUT)", + "flow-scalar-single-quoted": { "begin": "'", - "end": "'(?!')", "beginCaptures": { "0": { "name": "punctuation.definition.string.begin.yaml" } }, + "end": "'(?!')", "endCaptures": { "0": { "name": "punctuation.definition.string.end.yaml" } }, - "name": "meta.map.key.yaml string.quoted.single.yaml entity.name.tag.yaml", + "name": "string.quoted.single.yaml", "patterns": [ - { - "match": "[^\t -\\x{10FFFF}]++", - "name": "invalid.illegal.character.yaml" - }, { "match": "''", - "name": "constant.character.escape.single-quote.yaml" - } - ] - }, - "non-printable": { - "//": { - "85": "…", - "2028": "", - "2029": "", - "10000": "𐀀", - "A0": " ", - "D7FF": "퟿", - "E000": "", - "FFFD": "�", - "FEFF": "", - "FFFF": "￿", - "10FFFF": "􏿿" + "name": "constant.character.escape.single-quoted.yaml" + } + ] + }, + "flow-sequence": { + "begin": "\\[", + "beginCaptures": { + "0": { + "name": "punctuation.definition.sequence.begin.yaml" + } }, - "//match": "[\\p{Cntrl}\\p{Surrogate}\\x{FFFE FFFF}&&[^\t\n\r\\x{85}]]++", - "match": "[^\t\n\r -~\\x{85}\\x{A0}-\\x{D7FF}\\x{E000}-\\x{FFFD}\\x{010000}-\\x{10FFFF}]++", - "name": "invalid.illegal.non-printable.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" + } + ] } } -} \ No newline at end of file +}