mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-09 06:50:06 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
44
runtime/queries/superhtml/highlights.scm
Normal file
44
runtime/queries/superhtml/highlights.scm
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
(doctype) @constant
|
||||
|
||||
(comment) @comment
|
||||
|
||||
(tag_name) @tag
|
||||
|
||||
((tag_name) @string.special
|
||||
(#any-of? @string.special "super" "extend"))
|
||||
|
||||
(attribute_name) @attribute
|
||||
|
||||
(attribute_value) @string
|
||||
|
||||
((element
|
||||
(start_tag
|
||||
(attribute
|
||||
(attribute_name) @_attribute
|
||||
[
|
||||
(attribute_value) @markup.link.url
|
||||
(quoted_attribute_value
|
||||
(attribute_value) @markup.link.url)
|
||||
]))
|
||||
(element
|
||||
(start_tag
|
||||
(tag_name) @tag)))
|
||||
(#eq? @tag "super")
|
||||
(#eq? @_attribute "id"))
|
||||
|
||||
(element
|
||||
(start_tag
|
||||
(tag_name) @string.special)
|
||||
(#eq? @string.special "super"))
|
||||
|
||||
"\"" @string
|
||||
|
||||
[
|
||||
"<"
|
||||
">"
|
||||
"</"
|
||||
"/>"
|
||||
"<!"
|
||||
] @punctuation.bracket
|
||||
|
||||
"=" @punctuation.delimiter
|
||||
7
runtime/queries/superhtml/injections.scm
Normal file
7
runtime/queries/superhtml/injections.scm
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
((script_element
|
||||
(raw_text) @injection.content)
|
||||
(#set! injection.language "javascript"))
|
||||
|
||||
((style_element
|
||||
(raw_text) @injection.content)
|
||||
(#set! injection.language "css"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue