Global Lua Modules/Lexer

Lexer for Lua source code. This module returns a lexer function which takes one argument (the text string to lex).
It returns a array containing every line of the lexed text. Each line is an array of tokens in the order they were found.
{
 type = string, -- one of the lexer's token types
 data = string, -- token source code (lexeme)
 posFirst = number, -- start caret position in line
 posLast = number -- end caret position in line
}
To see a full list of token types, see the original readme.
This module is only intended for use in developer-oriented modules where source code parsing is useful.
== See also ==
* Original module on Github