1((comment) @injection.content
2 (#set! injection.language "comment")
3)
4
5; SQL -----------------------------------------------------------------------------
6(
7 [
8 ; function calls
9 (call
10 [
11 (attribute attribute: (identifier) @function_name)
12 (identifier) @function_name
13 ]
14 arguments: (argument_list
15 (comment) @comment
16 (string
17 (string_content) @injection.content
18 )
19 ))
20
21 ; string variables
22 ((comment) @comment
23 .
24 (expression_statement
25 (assignment
26 right: (string
27 (string_content) @injection.content
28 )
29 )
30 ))
31 ]
32 (#match? @comment "^(#|#\\s+)(?i:sql)\\s*$")
33 (#set! injection.language "sql")
34)