diff options
Diffstat (limited to 'queries/svelte')
| -rw-r--r-- | queries/svelte/highlights.scm | 47 | ||||
| -rw-r--r-- | queries/svelte/injections.scm | 8 |
2 files changed, 4 insertions, 51 deletions
diff --git a/queries/svelte/highlights.scm b/queries/svelte/highlights.scm index 1db90486..058682a7 100644 --- a/queries/svelte/highlights.scm +++ b/queries/svelte/highlights.scm @@ -1,43 +1,6 @@ -((element (start_tag (tag_name) @_tag) (text) @text.title) - (#match? @_tag "^(h[0-9]|title)$")) +; inherits: html_tags -((element (start_tag (tag_name) @_tag) (text) @text.strong) - (#match? @_tag "^(strong|b)$")) - -((element (start_tag (tag_name) @_tag) (text) @text.emphasis) - (#match? @_tag "^(em|i)$")) - -((element (start_tag (tag_name) @_tag) (text) @text.strike) - (#match? @_tag "^(s|del)$")) - -((element (start_tag (tag_name) @_tag) (text) @text.underline) - (#eq? @_tag "u")) - -((element (start_tag (tag_name) @_tag) (text) @text.literal) - (#match? @_tag "^(code|kbd)$")) - -((element (start_tag (tag_name) @_tag) (text) @text.uri) - (#eq? @_tag "a")) - -((attribute - (attribute_name) @_attr - (quoted_attribute_value (attribute_value) @text.uri)) - (#match? @_attr "^(href|src)$")) - -(tag_name) @tag -(attribute_name) @property -(erroneous_end_tag_name) @error -(comment) @comment - -[ - (attribute_value) - (quoted_attribute_value) -] @string - -[ - (text) - (raw_text_expr) -] @none +(raw_text_expr) @none [ (special_block_keyword) @@ -50,13 +13,7 @@ "}" ] @punctuation.bracket -"=" @operator - [ - "<" - ">" - "</" - "/>" "#" ":" "/" diff --git a/queries/svelte/injections.scm b/queries/svelte/injections.scm index c57ccb75..cca623f3 100644 --- a/queries/svelte/injections.scm +++ b/queries/svelte/injections.scm @@ -1,5 +1,4 @@ -((style_element - (raw_text) @css)) +; inherits: html_tags ( (style_element @@ -15,10 +14,7 @@ (quoted_attribute_value (attribute_value) @css)) (#eq? @_attr "style")) -((script_element - (raw_text) @javascript)) - -((raw_text_expr) @javascript) +(raw_text_expr) @javascript ( (script_element |
