Skip to content

Commit

Permalink
Invalidate non-printables inside plain flow keys
Browse files Browse the repository at this point in the history
  • Loading branch information
RedCMD committed Jun 29, 2024
1 parent b130874 commit 2088376
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion syntaxes/yaml-1.0.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,10 @@
"begin": "\\G(?![\\x{2028 2029}\r\n\t #])",
"end": "(?=[\t ]*+(?>:[\\x{2028 2029}\r\n\t ,\\[\\]{}]|[,\\[\\]{}])|[\t ]++#)",
"name": "meta.flow.map.key.yaml string.unquoted.other.in.yaml entity.name.tag.yaml",
"patterns": [ { "include": "#tag-implicit-plain-in" } ]
"patterns": [
{ "include": "#tag-implicit-plain-in" },
{ "include": "#non-printable" }
]
},
"key-double": {
"comment": "https://yaml.org/spec/1.2.2/#double-quoted-style",
Expand Down
5 changes: 4 additions & 1 deletion syntaxes/yaml-1.1.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,10 @@
"begin": "\\G(?![\\x{2028 2029}\r\n\t #])",
"end": "(?=[\t ]*+(?>:[\\x{2028 2029}\r\n\t ,\\[\\]{}]|[,\\[\\]{}])|[\t ]++#)",
"name": "meta.flow.map.key.yaml string.unquoted.other.in.yaml entity.name.tag.yaml",
"patterns": [ { "include": "#tag-implicit-plain-in" } ]
"patterns": [
{ "include": "#tag-implicit-plain-in" },
{ "include": "#non-printable" }
]
},
"key-double": {
"comment": "https://yaml.org/spec/1.2.2/#double-quoted-style",
Expand Down
5 changes: 4 additions & 1 deletion syntaxes/yaml-1.2.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,10 @@
"begin": "\\G(?![\r\n\t #])",
"end": "(?=[\t ]*+(?>:[\r\n\t ,\\[\\]{}]|[,\\[\\]{}])|[\t ]++#)",
"name": "meta.flow.map.key.yaml string.unquoted.other.in.yaml entity.name.tag.yaml",
"patterns": [ { "include": "#tag-implicit-plain-in" } ]
"patterns": [
{ "include": "#tag-implicit-plain-in" },
{ "include": "#non-printable" }
]
},
"key-double": {
"comment": "https://yaml.org/spec/1.2.2/#double-quoted-style",
Expand Down

0 comments on commit 2088376

Please sign in to comment.