mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
30
runtime/queries/heex/injections.scm
Normal file
30
runtime/queries/heex/injections.scm
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
; directives are standalone tags like '<%= @x %>'
|
||||
;
|
||||
; partial_expression_values are elixir code that is part of an expression that
|
||||
; spans multiple directive nodes, so they must be combined. For example:
|
||||
; <%= if true do %>
|
||||
; <p>hello, tree-sitter!</p>
|
||||
; <% end %>
|
||||
(directive
|
||||
[
|
||||
(partial_expression_value)
|
||||
(ending_expression_value)
|
||||
] @injection.content
|
||||
(#set! injection.language "elixir")
|
||||
(#set! injection.include-children)
|
||||
(#set! injection.combined))
|
||||
|
||||
; Regular expression_values do not need to be combined
|
||||
((directive
|
||||
(expression_value) @injection.content)
|
||||
(#set! injection.language "elixir"))
|
||||
|
||||
; expressions live within HTML tags, and do not need to be combined
|
||||
; <link href={ Routes.static_path(..) } />
|
||||
(expression
|
||||
(expression_value) @injection.content
|
||||
(#set! injection.language "elixir"))
|
||||
|
||||
; HEEx comments
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue