On Thu, 24 Oct 2013, Cosmin Apreutesei wrote:
> Hi again Mitchell,
> Thanks for your help so far. I have a few more questions (I will make
> separate threads for each).
> I want to use the syntax highlighting engine from Lua, not from C. I
> see that lexer.lua assumes a clean Lua state (eg. it thinks
> package.loaded only contains lexer modules, it uses a _LEXER global,
> Do you have any plans to release lexers.lua for Lua use? Ideally that
> means a Lua module that doesn't create or assume global variables or
> package.path, used like this:
> local lexer = require'lexers.lexer'
> lexer.lex(some_html_code, hypertext')
I was not planning on it, but I agree that at least the global variable
use is not ideal. I will look into this when I have the chance, but it
might not be for a while. Thanks for the suggestion.
-- You are subscribed to code.att.foicica.com. To change subscription settings, send an e-mail to code+help.att.foicica.com. To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.Received on Fri 25 Oct 2013 - 11:42:53 EDT
This archive was generated by hypermail 2.2.0 : Sat 26 Oct 2013 - 06:47:12 EDT