Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tree-sitter approach to expand across semicolons #644

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/ark/src/lsp/encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ fn convert_character_from_utf16_to_utf8(x: &str, character: usize) -> usize {
}

/// Converts a character offset into a particular line from UTF-8 to UTF-16
pub(crate) fn convert_character_from_utf8_to_utf16(x: &str, character: usize) -> usize {
fn convert_character_from_utf8_to_utf16(x: &str, character: usize) -> usize {
if x.is_ascii() {
// Fast pass
return character;
Expand Down
Loading
Loading