fix(assertions): case shouldn't matter for comment node detection
This commit is contained in:
parent
8c4861c186
commit
4ff33e81bb
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue