Skip to content

Commit 14fd941

Browse files
authored
Merge pull request #14 from calops/fix-fish-functions
2 parents 34b825b + 9e022c9 commit 14fd941

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

queries/nix/injections.scm

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -51,17 +51,13 @@
5151
) @injection.combined
5252

5353
(binding
54-
attrpath: (_) @_path (#hmts-path? @_path "programs" "fish" "(shellAliases|shellAbbrs|functions)")
55-
expression: (attrset_expression
56-
(binding_set
57-
binding: (binding
58-
attrpath: (_)
59-
expression: (_ (string_fragment) @injection.content @injection.combined)
60-
)))
54+
attrpath: (_) @_path (#hmts-path? @_path "programs" "fish" "(shellAliases|shellAbbrs|functions)" ".*" "body")
55+
expression: (_ (string_fragment) @injection.content)
6156
(#set! injection.language "fish")
62-
)
57+
) @injection.combined
58+
6359
(binding
64-
attrpath: (_) @_path (#hmts-path? @_path "programs" "fish" "(shellAliases|shellAbbrs|functions)" ".*" "body")
60+
attrpath: (_) @_path (#hmts-path? @_path "programs" "fish" "(shellAliases|shellAbbrs|functions)" ".*")
6561
expression: (_ (string_fragment) @injection.content)
6662
(#set! injection.language "fish")
6763
) @injection.combined

0 commit comments

Comments
 (0)