Skip to content

Commit

Permalink
add missing include rules
Browse files Browse the repository at this point in the history
  • Loading branch information
mkslanc committed Feb 26, 2024
1 parent d94bd0f commit b65cdc3
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions src/mode/markdown_highlight_rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -1120,6 +1120,35 @@ var MarkdownHighlightRules = function () {
return scope.get(this.token);
}
}
],
"attribute_value": [
{
token: "string.attribute-value.xml",
regex: "'",
push: [
{
token: "string.attribute-value.xml",
regex: "'",
next: "pop"
}, {include: "attr_reference"}, {defaultToken: "string.attribute-value.xml"}
]
}, {
token: "string.attribute-value.xml",
regex: '"',
push: [
{
token: "string.attribute-value.xml",
regex: '"',
next: "pop"
}, {include: "attr_reference"}, {defaultToken: "string.attribute-value.xml"}
]
}
],
attr_reference: [
{
token: "constant.language.escape.reference.attribute-value.xml",
regex: "(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"
}
]
});

Expand Down

0 comments on commit b65cdc3

Please sign in to comment.