mirror of
https://github.com/helix-editor/helix
synced 2026-08-05 14:42:57 +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
14 lines
342 B
Scheme
14 lines
342 B
Scheme
; inherits: go
|
|
|
|
((element_comment) @injection.content
|
|
(#set! injection.language "comment"))
|
|
|
|
((script_block_text) @injection.content
|
|
(#set! injection.language "javascript"))
|
|
|
|
((script_element_text) @injection.content
|
|
(#set! injection.language "javascript"))
|
|
|
|
((style_element_text) @injection.content
|
|
(#set! injection.language "css"))
|