Skip to content

Commit 641d7cb

Browse files
committed
fix
1 parent 34a7ded commit 641d7cb

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

script/parser/compile.lua

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2674,15 +2674,19 @@ local function parseBinaryOP(asAction, level)
26742674
if token == '//'
26752675
or token == '<<'
26762676
or token == '>>' then
2677-
pushError {
2678-
type = 'UNSUPPORT_SYMBOL',
2679-
version = {'Lua 5.3', 'Lua 5.4', 'Lua 5.5'},
2680-
start = op.start,
2681-
finish = op.finish,
2682-
info = {
2683-
version = State.version,
2677+
if State.version ~= 'Lua 5.3'
2678+
and State.version ~= 'Lua 5.4'
2679+
and State.version ~= 'Lua 5.5' then
2680+
pushError {
2681+
type = 'UNSUPPORT_SYMBOL',
2682+
version = {'Lua 5.3', 'Lua 5.4', 'Lua 5.5'},
2683+
start = op.start,
2684+
finish = op.finish,
2685+
info = {
2686+
version = State.version,
2687+
}
26842688
}
2685-
}
2689+
end
26862690
end
26872691
Index = Index + 2
26882692
return op, myLevel

0 commit comments

Comments
 (0)