vscode-lua
vscode-lua copied to clipboard
floor division "//" not recognized
The new (5.3) floor division "//" seems to be not recognised...
local horOffset = i // 4
it says: expression expected near '/' luaparse
https://www.lua.org/manual/5.3/manual.html#3.1 https://www.lua.org/manual/5.3/manual.html#3.4.1
Did you set lua.targetVersion
to 5.3 in the extension's settings? That fixed it for me... it defaults to 5.1.
Did you set
lua.targetVersion
to 5.3 in the extension's settings? That fixed it for me... it defaults to 5.1.
ah, sorry - my fault RTFM ;-) thanks for the hint...