diff options
| author | Pham Huy Hoang <hoangtun0810@gmail.com> | 2024-01-06 15:05:50 +0900 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-01-19 16:58:37 +0100 |
| commit | 57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9 (patch) | |
| tree | 70bf645539882b88e6fa129cefd30986b89bbac3 /queries/html | |
| parent | ci: add query lint job (diff) | |
| download | nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.gz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.bz2 nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.lz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.xz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.zst nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.zip | |
chore: query formatting
Diffstat (limited to 'queries/html')
| -rw-r--r-- | queries/html/highlights.scm | 1 | ||||
| -rw-r--r-- | queries/html/injections.scm | 7 |
2 files changed, 3 insertions, 5 deletions
diff --git a/queries/html/highlights.scm b/queries/html/highlights.scm index 4e2371d64..ae4e396c0 100644 --- a/queries/html/highlights.scm +++ b/queries/html/highlights.scm @@ -1,5 +1,4 @@ ; inherits: html_tags - (doctype) @constant "<!" @tag.delimiter diff --git a/queries/html/injections.scm b/queries/html/injections.scm index 7087abc73..adb067d15 100644 --- a/queries/html/injections.scm +++ b/queries/html/injections.scm @@ -1,5 +1,4 @@ ; inherits html_tags - (element (start_tag (tag_name) @_py_script) @@ -10,12 +9,12 @@ (script_element (start_tag (attribute - (attribute_name) @_attr - (quoted_attribute_value + (attribute_name) @_attr + (quoted_attribute_value (attribute_value) @_type))) (raw_text) @injection.content (#eq? @_attr "type") - ; not adding type="py" here as it's handled by html_tags + ; not adding type="py" here as it's handled by html_tags (#any-of? @_type "pyscript" "py-script") (#set! injection.language "python")) |
