fixed parse error for comment at end of file

This commit is contained in:
leaf corcoran 2011-11-04 18:58:01 -07:00
parent c344b8ca3a
commit 6925deedc8
2 changed files with 2 additions and 2 deletions

View File

@ -267,7 +267,7 @@ local build_grammar = wrap(function()
File = Shebang^-1 * (Block + Ct""), File = Shebang^-1 * (Block + Ct""),
Block = Ct(Line * (Break^1 * Line)^0), Block = Ct(Line * (Break^1 * Line)^0),
CheckIndent = Cmt(Indent, check_indent), -- validates line is in correct indent 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 Statement = (Import + While + With + For + ForEach + Return
+ ClassDecl + Export + BreakLoop + Ct(ExpList) / flatten_or_mark"explist" * Space) * (( + ClassDecl + Export + BreakLoop + Ct(ExpList) / flatten_or_mark"explist" * Space) * ((

View File

@ -192,4 +192,4 @@ y = ifsomething
z = x and b z = x and b
z = x andb z = x andb
-- cooool