remove unicode-ident dependency

This commit is contained in:
Max Heller 2023-08-01 18:18:12 -04:00
parent 91581becac
commit a743903cf0
3 changed files with 2 additions and 4 deletions

1
Cargo.lock generated
View File

@ -715,7 +715,6 @@ dependencies = [
"syntax",
"test-utils",
"text-edit",
"unicode-ident",
]
[[package]]

View File

@ -17,7 +17,6 @@ itertools = "0.10.5"
once_cell = "1.17.0"
smallvec.workspace = true
unicode-ident = "1.0.0"
# local deps

View File

@ -437,8 +437,8 @@ pub(crate) fn build(self, db: &RootDatabase) -> CompletionItem {
// `PartialOrd` because it has an alias of ">".
.filter(|alias| {
let mut chars = alias.chars();
chars.next().is_some_and(unicode_ident::is_xid_start)
&& chars.all(unicode_ident::is_xid_continue)
chars.next().is_some_and(char::is_alphabetic)
&& chars.all(|c| c.is_alphanumeric() || c == '_')
})
// Deliberately concatenated without separators as adding separators e.g.
// `alias1, alias2` results in LSP clients continuing to display the completion even