From 9f96f95e81490a1c714abc2048a3d5f6254e7d9e Mon Sep 17 00:00:00 2001 From: summivox Date: Thu, 7 Jan 2016 00:03:44 -0500 Subject: [PATCH] fixes #634 --- src/ast.ls | 4 ++-- src/lexer.ls | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/ast.ls b/src/ast.ls index ca16730bf..a993e1014 100644 --- a/src/ast.ls +++ b/src/ast.ls @@ -1467,9 +1467,9 @@ class exports.Binary extends Node y = Var \y$ sn(this, (Fun [x, y], Block((Binary @op, x, y).invert-check this), false, true).compile o) case @first? - sn(this, "(", ((Fun [vit], Block((Binary @op, @first, vit) .invert-check this)).compile o), ")") + sn(this, "(", ((Fun [vit], Block((Binary @op, @first, vit) .invert-check this), true).compile o), ")") default - sn(this, "(", ((Fun [vit], Block((Binary @op, vit, @second).invert-check this)).compile o), ")") + sn(this, "(", ((Fun [vit], Block((Binary @op, vit, @second).invert-check this), true).compile o), ")") compileRegexEquals: (o, [regex, target]) -> if @op is \=== diff --git a/src/lexer.ls b/src/lexer.ls index 02b515d02..bc8c4e823 100644 --- a/src/lexer.ls +++ b/src/lexer.ls @@ -1003,7 +1003,7 @@ character = if not JSON? then uxxxx else -> tokens.splice i, 0, * 'PARAM(' '(' line, column * ')PARAM' ')' line, column - * '->' '->' line, column + * '->' '~>' line, column * 'ID' 'it' line, column else if next.0 is ')' tokens.splice i + 1, 0, @@ -1020,7 +1020,7 @@ character = if not JSON? then uxxxx else -> ['PARAM(' '(' line, column] ['ID' 'it' line, column] [')PARAM' ')' line, column] - ['->' '->' line, column] + ['->' '~>' line, column] break LOOP prev = token continue