diff options
| author | elianiva <dicha.arkana03@gmail.com> | 2021-02-11 15:00:14 +0700 |
|---|---|---|
| committer | Stephan Seitz <stephan.lauf@yahoo.de> | 2021-02-23 16:27:16 +0100 |
| commit | 72d38fc44bce5f3cc1c6209a1550f41f7524e775 (patch) | |
| tree | 860819cd9839290d8698d45da5b50d5ffbd782f7 /queries | |
| parent | 17a74e2055dcd80c5f8581320e56015350c1001f (diff) | |
refactor: use eq
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/svelte/highlights.scm | 6 | ||||
| -rw-r--r-- | queries/svelte/injections.scm | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/queries/svelte/highlights.scm b/queries/svelte/highlights.scm index ecdfa931..7eff09b0 100644 --- a/queries/svelte/highlights.scm +++ b/queries/svelte/highlights.scm @@ -17,18 +17,18 @@ (#match? @_tag "^(s|del)$")) ((element (start_tag (tag_name) @_tag) (text) @text.underline) - (#match? @_tag "^u$")) + (#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) - (#match? @_tag "^a$")) + (#eq? @_tag "a")) ((attribute (attribute_name) @_attr (quoted_attribute_value (attribute_value) @text.uri)) - (#match? @_attr "^href$")) + (#eq? @_attr "href")) [ (special_block_keyword) diff --git a/queries/svelte/injections.scm b/queries/svelte/injections.scm index c63c31d0..01c3bcc5 100644 --- a/queries/svelte/injections.scm +++ b/queries/svelte/injections.scm @@ -4,7 +4,7 @@ ((attribute (attribute_name) @_attr (quoted_attribute_value (attribute_value) @css)) - (#match? @_attr "^style$")) + (#eq? @_attr "style")) ((script_element (raw_text) @javascript)) |
