Skip to content

Commit

Permalink
make _ as word component
Browse files Browse the repository at this point in the history
  • Loading branch information
Satoshi Amemiya committed Jul 16, 2021
1 parent 547bd83 commit 75539ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ enum CharKind {
impl CharKind {
fn from_char(c: &char) -> Self {
use CharKind::*;
if c.is_ascii_alphanumeric() {
if c == &'_' || c.is_ascii_alphanumeric() {
return AlphaNumeric;
}

Expand Down

0 comments on commit 75539ce

Please sign in to comment.