Lua lexer
Posted: 16.02.2020 14:49
Hello!
The goto statement and the label definition (::labelname::) are missing. https://www.lua.org/manual/5.3/manual.html#3.3.4
The "table.member" and "table:member" references before and after the function keyword is not recognized. https://i.imgur.com/zXqJQPn.png
The metamethods are not highlighted. http://lua-users.org/wiki/MetatableEvents
Different style for the core functions, constants? https://www.lua.org/manual/5.3/manual.html#6.1
for standard module names?
for the boolean keywords/operators?
for the operators? https://www.lua.org/manual/5.3/manual.html#3.4
The goto statement and the label definition (::labelname::) are missing. https://www.lua.org/manual/5.3/manual.html#3.3.4
The "table.member" and "table:member" references before and after the function keyword is not recognized. https://i.imgur.com/zXqJQPn.png
The metamethods
Code: Select all
__add,__band,__bnot,__bor,__bxor,__call,__concat,__div,__eq,__gc,__idiv,__index,__ipairs,__le,__len,__lt,__metatable,__mod,__mode,__mul,__newindex,__pairs,__pow,__shl,__shr,__sub,__tostring,__unm
Different style for the core functions, constants
Code: Select all
assert(),collectgarbage(),dofile(),error(),getmetatable(),ipairs(),load(),loadfile(),next(),pairs(),pcall(),print(),rawequal(),rawget(),rawlen(),rawset(),select(),setmetatable(),tonumber(),tostring(),type(),xpcall(),_G,_VERSION
for standard module names
Code: Select all
math, coroutine, io, os, debug, string, table, utf8, package
for the boolean keywords/operators
Code: Select all
and, or, not, true, false, nil
for the operators
Code: Select all
arithmetic:
+
-
*
/
//
%
^
-
bitwise:
&
|
~
>>
<<
~
relational:
==
~=
<
>
<=
>=
varargs, concatenation, length:
...
..
#