mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 19:30:01 +02:00
14 lines
402 B
Scheme
14 lines
402 B
Scheme
; extends
|
|
|
|
(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")
|
|
])
|
|
))
|