pkulchenko / ZeroBraneStudio

Lightweight Lua-based IDE for Lua with code completion, syntax highlighting, live coding, remote debugger, and code analyzer; supports Lua 5.1, 5.2, 5.3, 5.4, LuaJIT and other Lua interpreters on Windows, macOS, and Linux
http://studio.zerobrane.com/
Other
2.59k stars 518 forks source link

table.move, string.pack, string.unpack are not syntax colored correctly... #1159

Closed martinfabian closed 1 year ago

martinfabian commented 1 year ago

The identifiers table.move, string.pack, and string.unpack are not syntax colored in the same way as the other table and string methods. I copied the keywords from spec/lua.lua (lines 253-287) into ZBS editor, and this is what I see at the end: image

The reason for this seems to be that in spec/lua.lua, these identifiers are followed by commas (see line 290 of https://github.com/pkulchenko/ZeroBraneStudio/blob/master/spec/lua.lua). If the commas are removed, the coloring becomes as expected.

pkulchenko commented 1 year ago

Good catch; thank you for the report! Should be fixed now.