mirror of
https://github.com/AleoHQ/leo.git
synced 2024-12-02 12:22:08 +03:00
update protected names in pest
This commit is contained in:
parent
3a53b91632
commit
d4d8550a15
@ -9,10 +9,20 @@ file = { SOI ~ NEWLINE* ~ import* ~ NEWLINE* ~ circuit* ~ NEWLINE* ~ function_de
|
|||||||
// Declared in common/identifier.rs
|
// Declared in common/identifier.rs
|
||||||
identifier = @{ ((!protected_name ~ ASCII_ALPHA) | (protected_name ~ (ASCII_ALPHANUMERIC | "_"))) ~ (ASCII_ALPHANUMERIC | "_")* }
|
identifier = @{ ((!protected_name ~ ASCII_ALPHA) | (protected_name ~ (ASCII_ALPHANUMERIC | "_"))) ~ (ASCII_ALPHANUMERIC | "_")* }
|
||||||
protected_name = {
|
protected_name = {
|
||||||
"for"| "if" | "else" | "as" | "return"
|
"address"
|
||||||
| declare | mutable | static_ | value_boolean
|
| "as"
|
||||||
| type_array | type_data
|
| "const"
|
||||||
| macro_name | macro_symbol
|
| "else"
|
||||||
|
| "false"
|
||||||
|
| "function"
|
||||||
|
| "for"
|
||||||
|
| "if"
|
||||||
|
| "in"
|
||||||
|
| "let"
|
||||||
|
| "mut"
|
||||||
|
| "return"
|
||||||
|
| "static"
|
||||||
|
| "true"
|
||||||
}
|
}
|
||||||
|
|
||||||
// Declared in common/line_end.rs
|
// Declared in common/line_end.rs
|
||||||
|
Loading…
Reference in New Issue
Block a user