mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-07-14 11:24:28 +02:00
add: blade treesitter config
This commit is contained in:
parent
b9949062dc
commit
fbc8a53840
19 changed files with 177 additions and 14 deletions
8
queries/blade/folds.scm
Normal file
8
queries/blade/folds.scm
Normal file
|
@ -0,0 +1,8 @@
|
|||
((directive_start) @start
|
||||
(directive_end) @end.after
|
||||
(#set! role block))
|
||||
|
||||
|
||||
((bracket_start) @start
|
||||
(bracket_end) @end
|
||||
(#set! role block))
|
4
queries/blade/highlights.scm
Normal file
4
queries/blade/highlights.scm
Normal file
|
@ -0,0 +1,4 @@
|
|||
(directive) @tag
|
||||
(directive_start) @tag
|
||||
(directive_end) @tag
|
||||
(comment) @comment @spell
|
16
queries/blade/injections.scm
Normal file
16
queries/blade/injections.scm
Normal file
|
@ -0,0 +1,16 @@
|
|||
((text) @injection.content
|
||||
(#not-has-ancestor? @injection.content "envoy")
|
||||
(#set! injection.combined)
|
||||
(#set! injection.language php))
|
||||
|
||||
((text) @injection.content
|
||||
(#has-ancestor? @injection.content "envoy")
|
||||
(#set! injection.combined)
|
||||
(#set! injection.language bash))
|
||||
|
||||
|
||||
((php_only) @injection.content
|
||||
(#set! injection.combined)
|
||||
(#set! injection.language php_only))
|
||||
((parameter) @injection.content
|
||||
(#set! injection.language php_only))
|
Loading…
Add table
Add a link
Reference in a new issue