Skip to content

Commit

Permalink
Add regex injections into bash (helix-editor#11112)
Browse files Browse the repository at this point in the history
  • Loading branch information
David-Else authored and kyruzic committed Sep 27, 2024
1 parent 59befc6 commit fd1449c
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 fd1449c

Please sign in to comment.