feat(blade): add laravel blade parser and queries (#7693)

This commit is contained in:
Caleb White 2025-03-12 12:47:19 -05:00 committed by GitHub
parent 6d1a8e6fdb
commit 548ed98f8a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 59 additions and 0 deletions

14
queries/blade/folds.scm Normal file
View file

@ -0,0 +1,14 @@
[
(authorization)
(conditional)
(envoy)
(fragment)
(livewire)
(loop)
(once)
(php_statement)
(section)
(stack)
(switch)
(verbatim)
] @fold

View file

@ -0,0 +1,15 @@
([
(directive)
(directive_start)
(directive_end)
] @tag
(#set! priority 101))
([
(bracket_start)
(bracket_end)
] @tag.delimiter
(#set! priority 101))
((comment) @comment @spell
(#set! priority 101))

View file

@ -0,0 +1,3 @@
(directive_start) @indent.begin
(directive_end) @indent.end

View file

@ -0,0 +1,15 @@
((text) @injection.content
(#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))