mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 20:00:07 -04:00
feat(blade): add laravel blade parser and queries (#7693)
This commit is contained in:
parent
6d1a8e6fdb
commit
548ed98f8a
7 changed files with 59 additions and 0 deletions
|
|
@ -188,6 +188,7 @@ We are looking for maintainers to add more parsers and to write query files for
|
||||||
- [x] [bibtex](https://github.com/latex-lsp/tree-sitter-bibtex) (maintained by @theHamsta, @clason)
|
- [x] [bibtex](https://github.com/latex-lsp/tree-sitter-bibtex) (maintained by @theHamsta, @clason)
|
||||||
- [x] [bicep](https://github.com/amaanq/tree-sitter-bicep) (maintained by @amaanq)
|
- [x] [bicep](https://github.com/amaanq/tree-sitter-bicep) (maintained by @amaanq)
|
||||||
- [x] [bitbake](https://github.com/amaanq/tree-sitter-bitbake) (maintained by @amaanq)
|
- [x] [bitbake](https://github.com/amaanq/tree-sitter-bitbake) (maintained by @amaanq)
|
||||||
|
- [x] [blade](https://github.com/EmranMR/tree-sitter-blade) (maintained by @calebdw)
|
||||||
- [x] [blueprint](https://gitlab.com/gabmus/tree-sitter-blueprint.git) (experimental, maintained by @gabmus)
|
- [x] [blueprint](https://gitlab.com/gabmus/tree-sitter-blueprint.git) (experimental, maintained by @gabmus)
|
||||||
- [x] [bp](https://github.com/ambroisie/tree-sitter-bp) (maintained by @ambroisie)
|
- [x] [bp](https://github.com/ambroisie/tree-sitter-bp) (maintained by @ambroisie)
|
||||||
- [x] [c](https://github.com/tree-sitter/tree-sitter-c) (maintained by @amaanq)
|
- [x] [c](https://github.com/tree-sitter/tree-sitter-c) (maintained by @amaanq)
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,9 @@
|
||||||
"bitbake": {
|
"bitbake": {
|
||||||
"revision": "a5d04fdb5a69a02b8fa8eb5525a60dfb5309b73b"
|
"revision": "a5d04fdb5a69a02b8fa8eb5525a60dfb5309b73b"
|
||||||
},
|
},
|
||||||
|
"blade": {
|
||||||
|
"revision": "bcdc4b01827cac21205f7453e9be02f906943128"
|
||||||
|
},
|
||||||
"blueprint": {
|
"blueprint": {
|
||||||
"revision": "60ba73739c6083c693d86a1a7cf039c07eb4ed59"
|
"revision": "60ba73739c6083c693d86a1a7cf039c07eb4ed59"
|
||||||
},
|
},
|
||||||
|
|
|
||||||
|
|
@ -191,6 +191,14 @@ list.bitbake = {
|
||||||
maintainers = { "@amaanq" },
|
maintainers = { "@amaanq" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.blade = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/EmranMR/tree-sitter-blade",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
},
|
||||||
|
maintainers = { "@calebdw" },
|
||||||
|
}
|
||||||
|
|
||||||
list.blueprint = {
|
list.blueprint = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://gitlab.com/gabmus/tree-sitter-blueprint.git",
|
url = "https://gitlab.com/gabmus/tree-sitter-blueprint.git",
|
||||||
|
|
|
||||||
14
queries/blade/folds.scm
Normal file
14
queries/blade/folds.scm
Normal file
|
|
@ -0,0 +1,14 @@
|
||||||
|
[
|
||||||
|
(authorization)
|
||||||
|
(conditional)
|
||||||
|
(envoy)
|
||||||
|
(fragment)
|
||||||
|
(livewire)
|
||||||
|
(loop)
|
||||||
|
(once)
|
||||||
|
(php_statement)
|
||||||
|
(section)
|
||||||
|
(stack)
|
||||||
|
(switch)
|
||||||
|
(verbatim)
|
||||||
|
] @fold
|
||||||
15
queries/blade/highlights.scm
Normal file
15
queries/blade/highlights.scm
Normal 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))
|
||||||
3
queries/blade/indents.scm
Normal file
3
queries/blade/indents.scm
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
(directive_start) @indent.begin
|
||||||
|
|
||||||
|
(directive_end) @indent.end
|
||||||
15
queries/blade/injections.scm
Normal file
15
queries/blade/injections.scm
Normal 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))
|
||||||
Loading…
Add table
Add a link
Reference in a new issue