refactor: indicate subword function is about text object

pull/12026/head
Nikita Revenco 2 weeks ago
parent 0166c59671
commit f77b0eca3d

@ -33,9 +33,9 @@ pub fn char_is_line_ending(ch: char) -> bool {
LineEnding::from_char(ch).is_some() LineEnding::from_char(ch).is_some()
} }
/// Determine whether a character is a subword delimiter. /// Determine whether a character is a subword text object delimiter.
#[inline] #[inline]
pub fn char_is_subword_delimiter(ch: char) -> bool { pub fn char_is_subword_textobj_delimiter(ch: char) -> bool {
ch == '_' || ch == '-' || ch == '/' ch == '_' || ch == '-' || ch == '/'
} }

Loading…
Cancel
Save