mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
Disallow expect! as an identifier
This commit is contained in:
parent
249125297e
commit
ad1e3369c5
8 changed files with 10 additions and 55 deletions
|
@ -21,6 +21,7 @@ pub const WHERE: &str = "where";
|
|||
// These keywords are valid in headers
|
||||
pub const PLATFORM: &str = "platform";
|
||||
|
||||
pub const KEYWORDS: [&str; 11] = [
|
||||
pub const KEYWORDS: [&str; 12] = [
|
||||
IF, THEN, ELSE, WHEN, AS, IS, DBG, IMPORT, EXPECT, RETURN, CRASH,
|
||||
"expect!", // not itself a keyword, but it's problematic if we allow an identifier like this!
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue