This PR adjusts the highlights for `{#each ...}` and `{#if ...}`
expression blocks to use keyword highlighting.
Extracted from https://github.com/zed-industries/zed/pull/18052.
Release Notes:
- N/A
Co-authored-by: Albert Marashi <albert@lumina.earth>
@@ -55,7 +55,7 @@
(#set! "language" "ts")
)
-; Match style tags with a lang attribute
+; Match <style lang="language"> as the specified language
(style_element
(start_tag
(attribute
@@ -69,7 +69,7 @@
(raw_text) @content
)
-; Match style tags without a lang attribute
+; Match <style> tags without a lang attribute as CSS
(style_element
(start_tag
(attribute
@@ -81,6 +81,4 @@
(#set! language "css")
)
--; Downstream TODO: Style highlighting for `style:background="red"` and `style="background: red"` strings-; Downstream TODO: Style component comments as markdown
+; Downstream TODO: Style @component comments as markdown