mirror of
https://github.com/helix-editor/helix
synced 2026-08-06 15:02:59 +02:00
* chore(lang/go): update source to the latest revision
* chore(lang/templ): update source to the newest revision
* feat(tags/templ): add tags query
* feat(injections/templ): inherit from go, inject comment
* feat(textobjects/templ): add textobject queries
inherit from go and add the additional templ-only textobject queries for
`@comment` and `@function`.
* fix(highlights/templ): fix and align templ highlight queries
- only mark the names of tags as `@tag`
- also correctly highlight the script tag
- mark <, </, >, /> as `@punctuation.bracket`
- don't mark interpolation expressions as `@function.member`
- highlight {{ and }} as brackets
- mark css properties as members like the css highlights do
- don't highlight the (element_text) nodes
- remove duplicate tags from the go queries
* feat(highlights/templ): add special highlighting to specific elements
this is mostly taken from the html queries, but adjusted to the templ
queries.
* feat(rainbows/templ): add rainbow queries
* chore: cargo xtask docgen
39 lines
535 B
Scheme
39 lines
535 B
Scheme
; inherits: go
|
|
|
|
[
|
|
(expression)
|
|
(component_switch_statement)
|
|
(component_render)
|
|
(component_children_expression)
|
|
(doctype)
|
|
(spread_attributes)
|
|
(conditional_attribute_block)
|
|
(css_declaration)
|
|
(dynamic_class_attribute_value)
|
|
(component_block)
|
|
(script_block)
|
|
(rawgo_block)
|
|
(literal_value)
|
|
] @rainbow.scope
|
|
|
|
[
|
|
"{"
|
|
"}"
|
|
"{!"
|
|
"}"
|
|
"{{"
|
|
"}}"
|
|
"<"
|
|
">"
|
|
"</"
|
|
"/>"
|
|
"<!"
|
|
] @rainbow.bracket
|
|
|
|
([
|
|
(element)
|
|
(style_element)
|
|
(script_element)
|
|
] @rainbow.scope
|
|
(#set! rainbow.include-children))
|