Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

editor: Recognize '$' as a Word character.

Piotr Osiewicz273a8b436896
diff --git a/crates/language/src/buffer.rs b/crates/language/src/buffer.rs
index 0b10432a9f4..48dc936a949 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