mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-03 12:50:03 +08:00
25 lines
528 B
Scheme
25 lines
528 B
Scheme
|
; inherits html_tags
|
||
|
|
||
|
(element
|
||
|
(start_tag
|
||
|
(tag_name) @_py_script)
|
||
|
(text) @python
|
||
|
(#any-of? @_py_script "py-script" "py-repl"))
|
||
|
|
||
|
(script_element
|
||
|
(start_tag
|
||
|
(attribute
|
||
|
(attribute_name) @_attr
|
||
|
(quoted_attribute_value
|
||
|
(attribute_value) @_type)))
|
||
|
(raw_text) @python
|
||
|
(#eq? @_attr "type")
|
||
|
; not adding type="py" here as it's handled by html_tags
|
||
|
(#any-of? @_type "pyscript" "py-script"))
|
||
|
|
||
|
(element
|
||
|
(start_tag
|
||
|
(tag_name) @_py_config)
|
||
|
(text) @toml
|
||
|
(#eq? @_py_config "py-config"))
|