diff --git a/crates/language/src/buffer.rs b/crates/language/src/buffer.rs index 0b10432a9f4747d93ff974ac72ddbbb6783fe676..48dc936a949c5cc47e12199d4d895b9f8a09ddf6 100644 --- a/crates/language/src/buffer.rs +++ b/crates/language/src/buffer.rs @@ -2987,7 +2987,7 @@ pub fn contiguous_ranges( pub fn char_kind(c: char) -> CharKind { if c.is_whitespace() { CharKind::Whitespace - } else if c.is_alphanumeric() || c == '_' { + } else if c.is_alphanumeric() || c == '_' || c == '$' { CharKind::Word } else { CharKind::Punctuation