Add blade queries for treesitter
This commit is contained in:
parent
f842f12bfb
commit
340c8f2d6b
9
after/queries/blade/highlights.scm
Normal file
9
after/queries/blade/highlights.scm
Normal file
@ -0,0 +1,9 @@
|
||||
(directive) @function
|
||||
(directive_start) @function
|
||||
(directive_end) @function
|
||||
(comment) @comment
|
||||
((parameter) @include (#set! "priority" 110))
|
||||
((php_only) @include (#set! "priority" 110))
|
||||
((bracket_start) @function (#set! "priority" 120))
|
||||
((bracket_end) @function (#set! "priority" 120))
|
||||
(keyword) @function
|
4
after/queries/blade/injections.scm
Normal file
4
after/queries/blade/injections.scm
Normal file
@ -0,0 +1,4 @@
|
||||
((text) @injection.content
|
||||
(#not-has-ancestor? @injection.content "envoy")
|
||||
(#set! injection.combined)
|
||||
(#set! injection.language php))
|
Loading…
x
Reference in New Issue
Block a user