This commit is contained in:
zdenko
2018-02-18 01:57:49 +01:00
committed by Geoffrey Booth
parent 571e9df335
commit eb7009268d
3 changed files with 57 additions and 3 deletions

View File

@@ -1287,3 +1287,56 @@ test "#4871: `else if` no longer output together ", ->
2;
}
'''
test "#4898: Lexer: backslash line continuation is inconsistent", ->
if ( \
false \
or \
true \
)
a = 42
eq a, 42
if ( \
false \
or \
true \
)
b = 42
eq b, 42
if ( \
false \
or \
true \
)
c = 42
eq c, 42
if \
false \
or \
true
d = 42
eq d, 42
if \
false or \
true
e = 42
eq e, 42
if \
false or \
true \
then \
f = 42 \
else
f = 24
eq f, 42