Skip to content

Commit

Permalink
Try out new YAML grammar (microsoft#219833)
Browse files Browse the repository at this point in the history
* Try out new YAML grammar
Part of microsoft#180523

* Pull in other/plain update
  • Loading branch information
alexr00 authored and aaronchucarroll committed Jul 10, 2024
1 parent 600a7cc commit 2f6345c
Show file tree
Hide file tree
Showing 12 changed files with 7,267 additions and 848 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
{
"c": "test1",
"t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.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",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml punctuation.whitespace.separator.yaml",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -29,7 +29,7 @@
},
{
"c": ":",
"t": "source.yaml punctuation.separator.key-value.mapping.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -43,7 +43,7 @@
},
{
"c": " ",
"t": "source.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -57,7 +57,7 @@
},
{
"c": "dsd",
"t": "source.yaml string.unquoted.plain.out.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.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 string.unquoted.plain.out.yaml entity.name.tag.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.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",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml punctuation.whitespace.separator.yaml",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -99,7 +99,7 @@
},
{
"c": ":",
"t": "source.yaml punctuation.separator.key-value.mapping.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -113,7 +113,7 @@
},
{
"c": " ",
"t": "source.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -127,7 +127,7 @@
},
{
"c": "abc-def",
"t": "source.yaml string.unquoted.plain.out.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.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 string.unquoted.plain.out.yaml entity.name.tag.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.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",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml punctuation.whitespace.separator.yaml",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -169,7 +169,7 @@
},
{
"c": ":",
"t": "source.yaml punctuation.separator.key-value.mapping.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -183,7 +183,7 @@
},
{
"c": " ",
"t": "source.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -197,7 +197,7 @@
},
{
"c": "abcdef",
"t": "source.yaml string.unquoted.plain.out.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.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 string.unquoted.plain.out.yaml entity.name.tag.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.key.yaml string.unquoted.plain.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",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml punctuation.whitespace.separator.yaml",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -239,7 +239,7 @@
},
{
"c": ":",
"t": "source.yaml punctuation.separator.key-value.mapping.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.separator.map.value.yaml",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -253,7 +253,7 @@
},
{
"c": " ",
"t": "source.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -267,7 +267,7 @@
},
{
"c": "abc-def",
"t": "source.yaml string.unquoted.plain.out.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.mapping.yaml meta.map.value.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 punctuation.definition.block.sequence.item.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.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",
"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",
Expand All @@ -29,7 +29,7 @@
},
{
"c": "blue",
"t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml",
"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",
"r": {
"dark_plus": "entity.name.tag: #569CD6",
"light_plus": "entity.name.tag: #800000",
Expand All @@ -43,7 +43,7 @@
},
{
"c": ":",
"t": "source.yaml punctuation.separator.key-value.mapping.yaml",
"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",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -57,7 +57,7 @@
},
{
"c": " ",
"t": "source.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -71,7 +71,7 @@
},
{
"c": "a=\"brown,not_brown\"",
"t": "source.yaml string.unquoted.plain.out.yaml",
"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",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string.unquoted.plain.out.yaml: #0000FF",
Expand All @@ -85,7 +85,7 @@
},
{
"c": "-",
"t": "source.yaml punctuation.definition.block.sequence.item.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.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",
"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",
Expand All @@ -113,7 +113,7 @@
},
{
"c": "not_blue",
"t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml",
"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",
"r": {
"dark_plus": "entity.name.tag: #569CD6",
"light_plus": "entity.name.tag: #800000",
Expand All @@ -127,7 +127,7 @@
},
{
"c": ":",
"t": "source.yaml punctuation.separator.key-value.mapping.yaml",
"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",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -141,7 +141,7 @@
},
{
"c": " ",
"t": "source.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -155,7 +155,7 @@
},
{
"c": "foo",
"t": "source.yaml string.unquoted.plain.out.yaml",
"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",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string.unquoted.plain.out.yaml: #0000FF",
Expand All @@ -169,7 +169,7 @@
},
{
"c": "-",
"t": "source.yaml punctuation.definition.block.sequence.item.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.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",
"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",
Expand All @@ -197,7 +197,7 @@
},
{
"c": "blue",
"t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml",
"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",
"r": {
"dark_plus": "entity.name.tag: #569CD6",
"light_plus": "entity.name.tag: #800000",
Expand All @@ -211,7 +211,7 @@
},
{
"c": ":",
"t": "source.yaml punctuation.separator.key-value.mapping.yaml",
"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",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -225,7 +225,7 @@
},
{
"c": " ",
"t": "source.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -239,7 +239,7 @@
},
{
"c": "foo=\"}\"",
"t": "source.yaml string.unquoted.plain.out.yaml",
"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",
"r": {
"dark_plus": "string: #CE9178",
"light_plus": "string.unquoted.plain.out.yaml: #0000FF",
Expand All @@ -253,7 +253,7 @@
},
{
"c": "-",
"t": "source.yaml punctuation.definition.block.sequence.item.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.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",
"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",
Expand All @@ -281,7 +281,7 @@
},
{
"c": "not_blue",
"t": "source.yaml string.unquoted.plain.out.yaml entity.name.tag.yaml",
"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",
"r": {
"dark_plus": "entity.name.tag: #569CD6",
"light_plus": "entity.name.tag: #800000",
Expand All @@ -295,7 +295,7 @@
},
{
"c": ":",
"t": "source.yaml punctuation.separator.key-value.mapping.yaml",
"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",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -309,7 +309,7 @@
},
{
"c": " ",
"t": "source.yaml",
"t": "source.yaml meta.stream.yaml meta.document.yaml meta.block.sequence.yaml meta.mapping.yaml meta.map.value.yaml punctuation.whitespace.separator.yaml",
"r": {
"dark_plus": "default: #D4D4D4",
"light_plus": "default: #000000",
Expand All @@ -323,7 +323,7 @@
},
{
"c": "1",
"t": "source.yaml constant.numeric.integer.yaml",
"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",
"r": {
"dark_plus": "constant.numeric: #B5CEA8",
"light_plus": "constant.numeric: #098658",
Expand Down
Loading

0 comments on commit 2f6345c

Please sign in to comment.