From 37e48f4307a79cbc4e54e045584ec816bcc245a5 Mon Sep 17 00:00:00 2001
From: pacien
Date: Fri, 15 Sep 2023 17:12:47 +0200
Subject: queries/nix: align match start for language comments

This rule failed to override other ones because it started its
matching later.
---
 runtime/queries/nix/injections.scm | 4 ++++
 1 file changed, 4 insertions(+)

(limited to 'runtime')

diff --git a/runtime/queries/nix/injections.scm b/runtime/queries/nix/injections.scm
index 03a6dc36..9804b75b 100644
--- a/runtime/queries/nix/injections.scm
+++ b/runtime/queries/nix/injections.scm
@@ -5,6 +5,10 @@
 ((((comment) @injection.language) .
   (indented_string_expression (string_fragment) @injection.content))
   (#set! injection.combined))
+((binding
+    (comment) @injection.language
+    expression: (indented_string_expression (string_fragment) @injection.content))
+  (#set! injection.combined))
 
 ; Common attribute keys corresponding to Python scripts,
 ; such as those for NixOS VM tests in nixpkgs/nixos/tests.
-- 
cgit v1.2.3-70-g09d2