feat!: drop modules, general refactor and cleanup

This commit is contained in:
Christian Clason 2023-06-12 09:54:30 -06:00
parent c13e28f894
commit 2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions

View file

@ -0,0 +1,5 @@
[
(element)
(style_element)
(script_element)
] @fold

View file

@ -0,0 +1,5 @@
; inherits: html_tags
(doctype) @constant
"<!" @tag.delimiter

View file

@ -0,0 +1 @@
; inherits: html_tags

View file

@ -0,0 +1,30 @@
; inherits html_tags
(element
(start_tag
(tag_name) @_py_script)
(text) @injection.content
(#any-of? @_py_script "py-script" "py-repl")
(#set! injection.language "python")
(#set! injection.include-children))
(script_element
(start_tag
(attribute
(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
(#any-of? @_type "pyscript" "py-script")
(#set! injection.language "python")
(#set! injection.include-children))
(element
(start_tag
(tag_name) @_py_config)
(text) @injection.content
(#eq? @_py_config "py-config")
(#set! injection.language "toml")
(#set! injection.include-children))

View file

@ -0,0 +1 @@
(element) @scope