tangled
alpha
login
or
join now
boltless.me
/
nvim_rocks
0
fork
atom
neovim configuration using rocks.nvim plugin manager
0
fork
atom
overview
issues
pulls
pipelines
feat(queries): add go sql injection queries
Seongmin Lee
1 year ago
b0ee4d68
ab3b719c
+19
1 changed file
expand all
collapse all
unified
split
after
queries
go
injections.scm
+19
after/queries/go/injections.scm
···
1
1
+
; extends
2
2
+
3
3
+
((comment) @comment
4
4
+
. (_ (raw_string_literal) @injection.content)
5
5
+
(#match? comment "/\/\* sql \*\//")
6
6
+
(#offset! @injection.content 0 1 0 -1)
7
7
+
(#set! injection.language "sql"))
8
8
+
(call_expression
9
9
+
function: (_) @_function
10
10
+
(#any-of? @_function
11
11
+
"db.Exec" "db.Query")
12
12
+
arguments: (argument_list
13
13
+
.
14
14
+
[
15
15
+
(raw_string_literal)
16
16
+
(interpreted_string_literal)
17
17
+
] @injection.content
18
18
+
(#offset! @injection.content 0 1 0 -1)
19
19
+
(#set! injection.language "sql")))