Add # as a path component char

Fixes #10271
This commit is contained in:
Fabian Boehm 2024-01-28 10:37:47 +01:00
parent 05ac1b770c
commit aa5649ca99

View file

@ -1262,7 +1262,7 @@ impl MoveWordStateMachine {
}
fn is_path_component_character(c: char) -> bool {
tok_is_string_character(c, None) && !L!("/={,}'\":@").as_char_slice().contains(&c)
tok_is_string_character(c, None) && !L!("/={,}'\":@#").as_char_slice().contains(&c)
}
/// The position of the equal sign in a variable assignment like foo=bar.