nvim-treesitter/runtime/queries/svelte/locals.scm
themixednuts a1bee9959b feat(svelte)!: switch parser repo and update queries
Breaking change: switch to themixednuts/tree-sitter-htmlx.

Update Svelte queries for the new node names.
2026-03-24 15:57:20 -05:00

15 lines
330 B
Scheme

; inherits: html
(snippet_block) @local.scope
(snippet_parameters
parameter: (pattern) @local.definition.parameter)
(snippet_name) @local.definition.function
((tag_name) @local.reference
(#lua-match? @local.reference "^[A-Z]"))
(tag_name
object: (tag_member) @local.reference
property: (tag_member) @local.reference)