mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
is_lowercase implies is_alphabetic I think
This commit is contained in:
parent
3244330a5d
commit
8fe4c749a2
1 changed files with 1 additions and 1 deletions
|
@ -335,7 +335,7 @@ pub fn unqualified_ident<'a>() -> impl Parser<'a, &'a str> {
|
||||||
// Idents must start with a lowercase letter.
|
// Idents must start with a lowercase letter.
|
||||||
let first_letter = match chars.next() {
|
let first_letter = match chars.next() {
|
||||||
Some(ch) => {
|
Some(ch) => {
|
||||||
if ch.is_alphabetic() && ch.is_lowercase() {
|
if ch.is_lowercase() {
|
||||||
ch
|
ch
|
||||||
} else {
|
} else {
|
||||||
return Err(unexpected(ch, 0, state, Attempting::RecordFieldLabel));
|
return Err(unexpected(ch, 0, state, Attempting::RecordFieldLabel));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue