From 4ff33e81bb50143d9c93134373b0e169962969b2 Mon Sep 17 00:00:00 2001 From: Amaan Qureshi Date: Wed, 28 Feb 2024 07:47:14 -0500 Subject: [PATCH] fix(assertions): case shouldn't matter for comment node detection --- cli/src/query_testing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/query_testing.rs b/cli/src/query_testing.rs index c6e85e6e..a0ac260d 100644 --- a/cli/src/query_testing.rs +++ b/cli/src/query_testing.rs @@ -57,7 +57,7 @@ pub fn parse_position_comments( let node = cursor.node(); // Find every comment node. - if node.kind().contains("comment") { + if node.kind().to_lowercase().contains("comment") { if let Ok(text) = node.utf8_text(source) { let mut position = node.start_position(); if position.row > 0 {