mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Add restricted keyword 'as'
This commit is contained in:
parent
242a1b14e6
commit
be810f4dc9
2 changed files with 3 additions and 1 deletions
|
@ -3,3 +3,4 @@ pub static THEN: &str = "then";
|
|||
pub static ELSE: &str = "else";
|
||||
pub static CASE: &str = "case";
|
||||
pub static WHEN: &str = "when";
|
||||
pub static AS: &str = "as";
|
||||
|
|
|
@ -599,7 +599,8 @@ fn reserved_keyword<'a>() -> impl Parser<'a, ()> {
|
|||
string(keyword::THEN),
|
||||
string(keyword::ELSE),
|
||||
string(keyword::CASE),
|
||||
string(keyword::WHEN)
|
||||
string(keyword::WHEN),
|
||||
string(keyword::AS)
|
||||
)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue