Added forever loop
This commit is contained in:
@@ -29,6 +29,7 @@ keyword = {
|
||||
| "true"
|
||||
| "false"
|
||||
| "dyn"
|
||||
| "loop"
|
||||
}
|
||||
|
||||
identifier = @{
|
||||
@@ -379,6 +380,7 @@ control_flow = {
|
||||
| c_for_stmt
|
||||
| for_stmt
|
||||
| match_stmt
|
||||
| loop_stmt
|
||||
| block
|
||||
}
|
||||
|
||||
@@ -412,6 +414,10 @@ for_stmt = {
|
||||
"for" ~ "(" ~ mutable? ~ pattern ~ ":" ~ expr ~ ")" ~ statement
|
||||
}
|
||||
|
||||
loop_stmt = {
|
||||
"loop" ~ statement
|
||||
}
|
||||
|
||||
// ------------------------------------------------------
|
||||
// MATCH
|
||||
// ------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user