Skip to content

Commit

Permalink
Add regex injections into bash (#11112)
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Else committed Jul 13, 2024
1 parent ec0bdb3 commit 928e3f0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion runtime/queries/bash/injections.scm
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,7 @@
name: (command_name (word) @_command)
argument: (raw_string) @injection.content
(#match? @_command "^[gnm]?awk$")
(#set! injection.language "awk"))
(#set! injection.language "awk"))

((regex) @injection.content
(#set! injection.language "regex"))

0 comments on commit 928e3f0

Please sign in to comment.