Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--runtime/queries/kdl/highlights.scm14
1 files changed, 12 insertions, 2 deletions
diff --git a/runtime/queries/kdl/highlights.scm b/runtime/queries/kdl/highlights.scm
index 78e5acf4..9ba420a9 100644
--- a/runtime/queries/kdl/highlights.scm
+++ b/runtime/queries/kdl/highlights.scm
@@ -1,5 +1,15 @@
-(single_line_comment) @comment
-(multi_line_comment) @comment
+[
+ (single_line_comment)
+ (multi_line_comment)
+
+ (node_comment)
+ (node_field_comment)
+
+ ; these do not show up as comments in Helix as they are also highlighted as
+ ; normal nodes
+ (node . (node_comment))
+ (node_field . (node_field_comment))
+] @comment
(node
(identifier) @variable)