Skip to content

Commit

Permalink
more info about (parameter) node. added tree-sitter-comment
Browse files Browse the repository at this point in the history
  • Loading branch information
EmranMR authored Jul 12, 2024
1 parent 1c0c868 commit caf4040
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions queries/injections.scm
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@
(#set! injection.combined)
(#set! injection.language php))

; tree-sitter-comment injection
; if available
((comment) @injection.content
(#set! injection.language "comment"))

; could be bash or zsh
; or whatever tree-sitter grammar you have.
((text) @injection.content
Expand All @@ -13,6 +18,7 @@

((php_only) @injection.content
(#set! injection.language php_only))
((parameter) @injection.content
(#set! injection.language php_only))

((parameter) @injection.content
(#set! injection.include-children) ; You may need this, depending on your editor e.g Helix
(#set! injection.language "php-only"))

0 comments on commit caf4040

Please sign in to comment.