Add restricted keyword 'as'

This commit is contained in:
Richard Feldman 2019-12-05 19:34:15 -05:00
parent 242a1b14e6
commit be810f4dc9
2 changed files with 3 additions and 1 deletions

View file

@ -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";

View file

@ -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)
)
}