html: Improve syntax highlighting (#28184)
| Zed 0.180.2 | With this PR | | --- | --- | |  |  | ```html <script> return <div class="main content"></div> </script> <div class="main content"></div> <span></spn> ``` Changes homogenize JSX and HTML - `"`: `string` - `=`: `operator` -> `punctuation.delimiter` like in [JSX](3775496b84/crates/languages/src/javascript/highlights.scm (L246)
), [VSCode](336801752d/extensions/html/syntaxes/html.tmLanguage.json (L382)
) - `erroneous_end_tag_name`: `keyword` -> not a keyword Release Notes: - Improved HTML highlighting
This commit is contained in:
parent
c21bca07e2
commit
e4f692ac75
@ -1,11 +1,14 @@
|
|||||||
(tag_name) @tag
|
(tag_name) @tag
|
||||||
(erroneous_end_tag_name) @keyword
|
|
||||||
(doctype) @tag.doctype
|
(doctype) @tag.doctype
|
||||||
(attribute_name) @attribute
|
(attribute_name) @attribute
|
||||||
(attribute_value) @string
|
[
|
||||||
|
"\""
|
||||||
|
"'"
|
||||||
|
(attribute_value)
|
||||||
|
] @string
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
||||||
"=" @operator
|
"=" @punctuation.delimiter.html
|
||||||
|
|
||||||
[
|
[
|
||||||
"<"
|
"<"
|
||||||
@ -13,4 +16,4 @@
|
|||||||
"<!"
|
"<!"
|
||||||
"</"
|
"</"
|
||||||
"/>"
|
"/>"
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket.html
|
||||||
|
Loading…
Reference in New Issue
Block a user