Skip to content
This repository was archived by the owner on Nov 21, 2025. It is now read-only.

Commit 5d640de

Browse files
ayazhafizKeen Yee Liau
authored andcommitted
fix: whitelist all html elements
The `html.basic` grammar whitelists only W3 and custom HTML elements. Some Angular users may use elements that do not have the custom format (hyphen-separated), so just whitelist all elements. Fixes cases like `<popover></popover>` being highlighted incorrectly. Closes #526.
1 parent 7fa9923 commit 5d640de

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

syntaxes/inline-template.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
"contentName": "text.html",
6868
"patterns": [
6969
{
70-
"include": "text.html.basic"
70+
"include": "text.html.derivative"
7171
},
7272
{
7373
"include": "template.ng"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
22
"comment": "Dummy HTML TextMate grammar for use in testing",
3-
"scopeName": "text.html.basic"
3+
"scopeName": "text.html.derivative"
44
}

0 commit comments

Comments
 (0)