mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
adding nvim/queries/php/injections.scm
This commit is contained in:
parent
4fb5507ff5
commit
b3a3b49707
1 changed files with 14 additions and 0 deletions
14
nvim/queries/php/injections.scm
Normal file
14
nvim/queries/php/injections.scm
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
; inherits: php
|
||||
|
||||
(scoped_call_expression
|
||||
scope: [
|
||||
(qualified_name (name) @class)
|
||||
(name) @class
|
||||
] (#eq? @class "DB")
|
||||
name: (name) @method (#eq? @method "insert")
|
||||
arguments: (arguments
|
||||
. (argument [
|
||||
(string (string_content) @injection.content(#set! injection.language "sql"))
|
||||
(encapsed_string . (string_content) .) @injection.content(#set! injection.language "sql")
|
||||
])
|
||||
))
|
||||
Loading…
Add table
Add a link
Reference in a new issue