Skip to content

Commit b90263c

Browse files
committed
Merge remote-tracking branch 'haspaker/master'
2 parents 2343c29 + 3308931 commit b90263c

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

lib/lexer.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/lexer.ls

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -407,6 +407,7 @@ exports import
407407
else
408408
[tag, val] = last
409409
if tag is \ASSIGN and val+'' not in <[ = := += ]>
410+
or val is \++ and @tokens[*-2].spaced
410411
or tag in <[ +- PIPE BACKPIPE DOT LOGIC MATH COMPARE RELATION SHIFT
411412
IN OF TO BY FROM EXTENDS IMPLEMENTS ]>
412413
return length

test/operator.ls

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -520,10 +520,12 @@ eq '0,0,0,0' ''+ [i for i to 0] * n
520520
a = [0 1]
521521
c = [2 3]
522522

523-
eq '0,1,2,3' String a ++ c
524-
eq '0,1,2,3' String a++c
525-
eq '0,1,5' String a ++ 5
526523
eq '0,1,5' String a++5
524+
eq '0,1,5' String a ++ 5
525+
eq '0,1,2,3' String a++c
526+
eq '0,1,2,3' String a ++ c
527+
eq '0,1,2,3' String a ++
528+
c
527529

528530
### Mod
529531
eq -3, -3 % 4

0 commit comments

Comments
 (0)