mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-15 06:40:17 +00:00
editor: Recognize '$' as a Word character.
This fixes PHP variable completion. When we were querying for completions, PHP LS returned proper matches for variables which we filtered out as our query did not include a `$` character. Z-2819
This commit is contained in:
parent
8451e7eb7e
commit
273a8b4368
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue