1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-18 03:50:03 +02:00

nvim: treesitter: fix blade/php highlight

This commit is contained in:
Henrik Hautakoski 2024-02-29 13:13:51 +01:00
parent 0ac177ee21
commit 23a91b642f
5 changed files with 66 additions and 1 deletions

View file

@ -0,0 +1,5 @@
(directive) @keyword
(directive_start) @keyword
(directive_end) @keyword
(comment) @comment
(keyword) @keyword

View file

@ -0,0 +1,15 @@
((text) @injection.content
(#not-has-ancestor? @injection.content "envoy")
(#set! injection.combined)
(#set! injection.language php))
; could be bash or zsh
; or whatever tree-sitter grammar you have.
((text) @injection.content
(#has-ancestor? @injection.content "envoy")
(#set! injection.combined)
(#set! injection.language bash))
((php_only) @injection.content (#set! injection.language php))
((parameter) @injection.content (#set! injection.language php))