Match all sql like strings as sql

This commit is contained in:
2025-05-10 02:16:42 +02:00
parent 2de747bef4
commit 8242c7e0d1

View File

@@ -3,3 +3,8 @@
function: (attribute attribute: (identifier) @id (#match? @id "execute|read_sql"))
arguments: (argument_list
(string (string_content) @injection.content (#set! injection.language "sql"))))
(string
(string_content) @injection.content
(#match? @injection.content "\\s*(SELECT|CREATE|DROP|INSERT|UPDATE|ALTER|DELETE|select|create|drop|insert|update|alter|delete)\\W+")
(#set! injection.language "sql"))