Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
editor: Fix punctuation in JSX tags breaks the linked edit to the closing tag (#30167)
Smit Barmase0d726603ceac
diff --git a/crates/editor/src/editor.rs b/crates/editor/src/editor.rsindex 236bfa04412..82e3ea78141 100644--- a/crates/editor/src/editor.rs+++ b/crates/editor/src/editor.rs@@ -3631,7 +3631,9 @@ impl Editor {let start_anchor = snapshot.anchor_before(selection.start);let is_word_char = text.chars().next().map_or(true, |char| {- let classifier = snapshot.char_classifier_at(start_anchor.to_offset(&snapshot));+ let classifier = snapshot+ .char_classifier_at(start_anchor.to_offset(&snapshot))+ .ignore_punctuation(true);classifier.is_word(char)});