Unnamed repository; edit this file 'description' to name the repository.
fish injection query for nu, on `nu -c` (#14376)
| -rw-r--r-- | runtime/queries/fish/injections.scm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/runtime/queries/fish/injections.scm b/runtime/queries/fish/injections.scm index 3378c14a..81a067e2 100644 --- a/runtime/queries/fish/injections.scm +++ b/runtime/queries/fish/injections.scm @@ -5,3 +5,10 @@ name: (word) @_command (#any-of? @_command "jq" "jaq") argument: [(double_quote_string) (single_quote_string)] @injection.content (#set! injection.language "jq")) + +(command + name: (word) @_command (#eq? @_command "nu") + argument: (word) @_flag (#match? @_flag "^-.*c$") + argument: [(single_quote_string) (double_quote_string)] @injection.content + (#set! injection.language "nu") +) |