feat: add sql injections

This commit is contained in:
2025-07-30 22:00:42 +03:00
parent 18671923c6
commit 40dda1c8f3
7 changed files with 39 additions and 120 deletions

View File

@@ -4,9 +4,11 @@
(string_literal)
(raw_string_literal)
] @injection.content
(#match? @injection.content "(SELECT|select|INSERT|insert|UPDATE|update|DELETE|delete).+(FROM|from|INTO|into|VALUES|values|SET|set).*(WHERE|where|GROUP BY|group by)?")
(#offset! @injection.content 0 1 0 -1)
(#set! injection.language "sql"))
(#match? @injection.content "(SELECT|select|INSERT|insert|UPDATE|update|DELETE|delete).+(FROM|from|INTO|into|VALUES|values|SET|set).*(WHERE|where|GROUP BY|group by|ORDER BY|order by)?")
(#offset! @injection.content 0 3 0 -2)
(#set! injection.language "sql")
(#set! injection.include-children)
)
;; Inject HTML into view! macro blocks for leptos
(