Skip to content

Commit

Permalink
fixes #634
Browse files Browse the repository at this point in the history
  • Loading branch information
summivox committed Jan 31, 2016
1 parent 7816af0 commit 9f96f95
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/ast.ls
Original file line number Diff line number Diff line change
Expand Up @@ -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 \===
Expand Down
4 changes: 2 additions & 2 deletions src/lexer.ls
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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
Expand Down

0 comments on commit 9f96f95

Please sign in to comment.