Lua functions defined within tables highlight up to the period

Issue #497 resolved
Former user created an issue

See the functions at the end of

Really, though, function declaration having its own syntax coloring doesn't make sense for Lua, since all the function name is is the name of the variable to assign the function to.

{{{ function function_name() print "example function content" end }}}

is just syntactic sugar for

{{{ function_name = function () print "example function content" end }}}

and in the latter case function_name doesn't get any special syntax highlighting. It would be more consistent to just give function names in function declarations the same color as variables. (This is how the SciTE lexer that comes with Lua for Windows does it.)

Reported by guest

Comments (4)

  1. Log in to comment