Better handling of reserved keywords.
This commit is contained in:
@@ -43,8 +43,9 @@ Reserved Keywords
|
||||
| `static` | Variable declaration |
|
||||
| `do` | Looping |
|
||||
| `each` | Looping |
|
||||
| `then` | Conditional |
|
||||
| `goto` | Jump |
|
||||
| `then` | Control flow |
|
||||
| `goto` | Control flow |
|
||||
| `exit` | Control flow |
|
||||
| `switch` | Matching |
|
||||
| `match` | Matching |
|
||||
| `case` | Matching |
|
||||
|
@@ -9,7 +9,7 @@ The following are reserved keywords in Rhai:
|
||||
| ------------------------------------------------- | ---------------------------------------- | --------------------- | :--------------------: |
|
||||
| `true`, `false` | | Boolean constants | |
|
||||
| `let`, `const` | `var`, `static` | Variable declarations | |
|
||||
| `if`, `else` | `then`, `goto` | Control flow | |
|
||||
| `if`, `else` | `then`, `goto`, `exit` | Control flow | |
|
||||
| | `switch`, `match`, `case` | Matching | |
|
||||
| `while`, `loop`, `for`, `in`, `continue`, `break` | `do`, `each` | Looping | |
|
||||
| `fn`, `private` | `public`, `new` | Functions | [`no_function`] |
|
||||
|
Reference in New Issue
Block a user