We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c344b8c commit 6925deeCopy full SHA for 6925dee
moonscript/parse.lua
@@ -267,7 +267,7 @@ local build_grammar = wrap(function()
267
File = Shebang^-1 * (Block + Ct""),
268
Block = Ct(Line * (Break^1 * Line)^0),
269
CheckIndent = Cmt(Indent, check_indent), -- validates line is in correct indent
270
- Line = CheckIndent * Statement + Space * #Break,
+ Line = (CheckIndent * Statement + Space * #Stop),
271
272
Statement = (Import + While + With + For + ForEach + Return
273
+ ClassDecl + Export + BreakLoop + Ct(ExpList) / flatten_or_mark"explist" * Space) * ((
tests/inputs/syntax.moon
@@ -192,4 +192,4 @@ y = ifsomething
192
z = x and b
193
z = x andb
194
195
-
+-- cooool
0 commit comments