mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 01:16:18 +04:00
Update highlights.scm and injections.scm for blade.php files (#11138)
* Update highlights.scm for blade.php files * Update injections.scm to add tree-sitter-comment injection * Fixed the injection issues regarding blade parameters
This commit is contained in:
parent
7f77d95c79
commit
702a96d417
@ -2,3 +2,7 @@
|
||||
(directive_start) @tag
|
||||
(directive_end) @tag
|
||||
(comment) @comment
|
||||
[
|
||||
(bracket_start)
|
||||
(bracket_end)
|
||||
] @punctuation.bracket
|
||||
|
@ -1,9 +1,14 @@
|
||||
((text) @injection.content
|
||||
(#set! injection.combined)
|
||||
(#set! injection.language php))
|
||||
(#set! injection.language "php"))
|
||||
|
||||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
|
||||
((php_only) @injection.content
|
||||
(#set! injection.language php-only))
|
||||
((parameter) @injection.content
|
||||
(#set! injection.language php-only))
|
||||
(#set! injection.language "php-only"))
|
||||
|
||||
((parameter) @injection.content
|
||||
(#set! injection.include-children)
|
||||
(#set! injection.language "php-only"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user