Fix grammar top rule (#22325)

change stmt to complexOrSimpleStmt in the top grammar rule
This commit is contained in:
Khaled Hammouda
2023-07-24 13:48:41 -04:00
committed by GitHub
parent 8216d7dd46
commit dce714b259
2 changed files with 2 additions and 2 deletions

View File

@@ -310,7 +310,7 @@ proc checkBinary(p: Parser) {.inline.} =
if p.tok.spacing == {tsTrailing}:
parMessage(p, warnInconsistentSpacing, prettyTok(p.tok))
#| module = stmt ^* (';' / IND{=})
#| module = complexOrSimpleStmt ^* (';' / IND{=})
#|
#| comma = ',' COMMENT?
#| semicolon = ';' COMMENT?

View File

@@ -1,5 +1,5 @@
# This file is generated by compiler/parser.nim.
module = stmt ^* (';' / IND{=})
module = complexOrSimpleStmt ^* (';' / IND{=})
comma = ',' COMMENT?
semicolon = ';' COMMENT?
colon = ':' COMMENT?