mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-08 14:03:23 +00:00
Fix grammar top rule (#22325)
change stmt to complexOrSimpleStmt in the top grammar rule
This commit is contained in:
@@ -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?
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# This file is generated by compiler/parser.nim.
|
||||
module = stmt ^* (';' / IND{=})
|
||||
module = complexOrSimpleStmt ^* (';' / IND{=})
|
||||
comma = ',' COMMENT?
|
||||
semicolon = ';' COMMENT?
|
||||
colon = ':' COMMENT?
|
||||
|
||||
Reference in New Issue
Block a user