Newlines disabled inside () and [], enabled inside {}

This commit is contained in:
Andrey Breslav
2010-12-30 15:08:14 +03:00
parent fb13e1b14f
commit 7f69f1ffe2
16 changed files with 808 additions and 76 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
if
: "if" "(" expression ")" expression ("else" expression)?
: "if" "(" expression ")" expression SEMI? ("else" expression)?
;
try
+1 -1
View File
@@ -211,7 +211,7 @@ functionLiteral // one can use "it" as a parameter name
;
expressions
: expression{SEMI} SEMI?
: SEMI* expression{SEMI+} SEMI*
;
constructorInvocation