We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
1 parent 0e55648 commit b4494e1Copy full SHA for b4494e1
runtime/queries/nix/injections.scm
@@ -6,6 +6,16 @@
6
(indented_string_expression (string_fragment) @injection.content))
7
(#set! injection.combined))
8
9
+; Common attribute keys corresponding to Python scripts,
10
+; such as those for NixOS VM tests in nixpkgs/nixos/tests.
11
+((binding
12
+ attrpath: (attrpath (identifier) @_path)
13
+ expression: (indented_string_expression
14
+ (string_fragment) @injection.content))
15
+ (#match? @_path "(^|\\.)testScript$")
16
+ (#set! injection.language "python")
17
+ (#set! injection.combined))
18
+
19
; Common attribute keys corresponding to scripts,
20
; such as those of stdenv.mkDerivation.
21
((binding
0 commit comments