@@ -6,6 +6,16 @@
66 (indented_string_expression (string_fragment) @injection.content))
77 (#set! injection.combined))
88
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+
919; Common attribute keys corresponding to scripts,
1020; such as those of stdenv.mkDerivation.
1121((binding