fix(assertions): case shouldn't matter for comment node detection

This commit is contained in:
Amaan Qureshi 2024-02-28 07:47:14 -05:00
parent 8c4861c186
commit 4ff33e81bb

View file

@ -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 {