Update grammars (#227249)

This commit is contained in:
Alex Ross
2024-08-30 22:03:00 +02:00
committed by GitHub
parent b698fca43d
commit 03dc55030b
13 changed files with 500 additions and 231 deletions

View File

@@ -4,7 +4,7 @@
"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",
"version": "https://github.com/RedCMD/YAML-Syntax-Highlighter/commit/71a88711ec184b7dde5240c8f150ad3c2dbbd5f1",
"name": "YAML 1.0",
"scopeName": "source.yaml.1.0",
"comment": "https://yaml.org/spec/1.0/",
@@ -520,25 +520,22 @@
"patterns": [
{
"comment": "https://yaml.org/spec/1.2.2/#8111-block-indentation-indicator",
"begin": "([\t ]*+)(?>(\\|)|(>))(?<chomp>[+-])?+((0)|(1)|(2)|(3)|(4)|(5)|(6)|(7)|(8)|(9))(?(<chomp>)|([+-]))?+",
"while": "\\G(?>(?>(?!\\6)|(?!\\7) |(?!\\8) {2}|(?!\\9) {3}|(?!\\10) {4}|(?!\\11) {5}|(?!\\12) {6}|(?!\\13) {7}|(?!\\14) {8}|(?!\\15) {9})| *+($|[^#]))",
"begin": "(?>(\\|)|(>))(?<chomp>[+-])?+((0)|(1)|(2)|(3)|(4)|(5)|(6)|(7)|(8)|(9))(?(<chomp>)|([+-]))?+",
"while": "\\G(?>(?>(?!\\5)|(?!\\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": {
"2": {
"name": "keyword.control.flow.block-scalar.folded.yaml"
},
"4": {
"3": {
"name": "storage.modifier.chomping-indicator.yaml"
},
"5": {
"4": {
"name": "constant.numeric.indentation-indicator.yaml"
},
"16": {
"15": {
"name": "storage.modifier.chomping-indicator.yaml"
}
},
@@ -576,19 +573,16 @@
{
"comment": "https://yaml.org/spec/1.2.2/#rule-c-b-block-header",
"//": "Soooooooo many edge cases",
"begin": "([\t ]*+)(?>(\\|)|(>))([+-]?+)",
"begin": "(?>(\\|)|(>))([+-]?+)",
"while": "\\G",
"beginCaptures": {
"1": {
"name": "punctuation.whitespace.separator.yaml"
},
"2": {
"name": "keyword.control.flow.block-scalar.literal.yaml"
},
"3": {
"2": {
"name": "keyword.control.flow.block-scalar.folded.yaml"
},
"4": {
"3": {
"name": "storage.modifier.chomping-indicator.yaml"
}
},