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 mxxntype committed Aug 14, 2024
1 parent bdc091b commit e5d40a9
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 e5d40a9

Please sign in to comment.