mirror of
https://github.com/leafo/moonscript.git
synced 2024-11-22 02:44:23 +00:00
fixed parse error for comment at end of file
This commit is contained in:
parent
c344b8ca3a
commit
6925deedc8
@ -267,7 +267,7 @@ local build_grammar = wrap(function()
|
||||
File = Shebang^-1 * (Block + Ct""),
|
||||
Block = Ct(Line * (Break^1 * Line)^0),
|
||||
CheckIndent = Cmt(Indent, check_indent), -- validates line is in correct indent
|
||||
Line = CheckIndent * Statement + Space * #Break,
|
||||
Line = (CheckIndent * Statement + Space * #Stop),
|
||||
|
||||
Statement = (Import + While + With + For + ForEach + Return
|
||||
+ ClassDecl + Export + BreakLoop + Ct(ExpList) / flatten_or_mark"explist" * Space) * ((
|
||||
|
@ -192,4 +192,4 @@ y = ifsomething
|
||||
z = x and b
|
||||
z = x andb
|
||||
|
||||
|
||||
-- cooool
|
||||
|
Loading…
Reference in New Issue
Block a user