Skip to content

Commit

Permalink
VSCode 1.92 YAML grammar breaks MDX syntax highlighting (microsoft#22…
Browse files Browse the repository at this point in the history
…4942)

* Revert "Update YAML grammar (microsoft#221244)"

This reverts commit c2df206.

* Revert "Try out new YAML grammar (microsoft#219833)"

This reverts commit 9255a27.
  • Loading branch information
alexr00 authored and mustard-mh committed Sep 2, 2024
1 parent fd7e849 commit d9b5572
Show file tree
Hide file tree
Showing 12 changed files with 813 additions and 4,867 deletions.
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand All @@ -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",
Expand Down
Loading

0 comments on commit d9b5572

Please sign in to comment.