Soften restrictions for external parameters (#1277)

* Soften restrictions for external parameters

* Add test
This commit is contained in:
Jonathan Turner
2020-01-25 08:14:49 +13:00
committed by GitHub
parent a2bb23d78c
commit 798a24eda5
2 changed files with 14 additions and 2 deletions

View File

@ -1008,8 +1008,7 @@ fn is_boundary(c: Option<char>) -> bool {
fn is_external_word_char(c: char) -> bool {
match c {
';' | '|' | '#' | '-' | '"' | '\'' | '$' | '(' | ')' | '[' | ']' | '{' | '}' | '`'
| '.' => false,
';' | '|' | '"' | '\'' | '$' | '(' | ')' | '[' | ']' | '{' | '}' | '`' => false,
other if other.is_whitespace() => false,
_ => true,
}