Skip to content

Commit

Permalink
Fix embedding inside html
Browse files Browse the repository at this point in the history
  • Loading branch information
RedCMD committed Oct 11, 2024
1 parent af79002 commit 519f9d3
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions syntaxes/yaml.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,24 @@
"while": "^(?! {3,0}-{3,}[ \t]*+$|[ \t]*+\\.{3}$)",
"patterns": [ { "include": "source.yaml.1.2" } ]
},
{
"comment": "For when YAML is embedded inside HTML",
"//": "https://github.com/vuejs/language-tools/issues/4654",
"begin": "(?<=>)\\G(?!<)",
"end": "(?=<)",
"name": "meta.stream.yaml",
"patterns": [
{
"begin": "\\G(?![^<]*+<)",
"while": "^(?![^<]*<)",
"patterns": [ { "include": "source.yaml.1.2" } ]
},
{
"match": "[^<]++",
"captures": { "0": { "patterns": [ { "include": "source.yaml.1.2" } ] } }
}
]
},
{
"comment": "Default to YAML version 1.2",
"include": "source.yaml.1.2"
Expand Down

1 comment on commit 519f9d3

@RedCMD
Copy link
Owner Author

@RedCMD RedCMD commented on 519f9d3 Oct 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.