diff options
| author | Laurenz <laurmaedje@gmail.com> | 2019-10-22 21:40:37 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2019-10-22 21:40:37 +0200 |
| commit | cff325b520727ac0eec46a3757831afaa0916cc1 (patch) | |
| tree | 18cef7a7880fef41050678ab479818e0abb91f14 /src/parsing/mod.rs | |
| parent | 991e879e1d2ed53125dbff4edba80804ff28f2a9 (diff) | |
Add spacing functions 🔛
Diffstat (limited to 'src/parsing/mod.rs')
| -rw-r--r-- | src/parsing/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/parsing/mod.rs b/src/parsing/mod.rs index cd886fb4..36920595 100644 --- a/src/parsing/mod.rs +++ b/src/parsing/mod.rs @@ -404,13 +404,13 @@ fn is_identifier(string: &str) -> bool { let mut chars = string.chars(); match chars.next() { - Some(c) if !UnicodeXID::is_xid_start(c) => return false, + Some(c) if c != '.' && !UnicodeXID::is_xid_start(c) => return false, None => return false, _ => (), } while let Some(c) = chars.next() { - if !UnicodeXID::is_xid_continue(c) { + if c != '.' && !UnicodeXID::is_xid_continue(c) { return false; } } |
