CSS, Python Lexers Updated
August 19, 2007
2SVN revision 192 contains updated CSS and Python lexers. The CSS lexer has support for url() and rgb() units, and the Python lexer now works because I mistakenly named LoadTokens LoadTypes, which caused tokens to not be loaded.2
A Very Nice Speed Boost
August 18, 2007
I cannot believe I’ve overlooked this improvement for so long. I knew for a long while that Lua’s local variables are much faster than global variables, but for some reason this was not incorporated in the lexer implementation. Anyway, now they are, and the speed improvement is phenomenal. Changes in SVN, or you can download the new lexer.lua.
Oh, and the new “cleaned-up” lexer was committed to SVN as well.2
Stability?
August 17, 2007
2The dynamic lexer has proven itself rather stable. I don’t remember the last time it crashed on me and I have received no bug reports on issues related to the lexer core. In a short time I will be committing a more concise lexer because I thought the original was a pretty big hack and ugly code. I have been testing the cleaner code for a couple weeks now and it seems quite stable too (as expected).2
Changes to SciTE-st
August 7, 2007
I have committed the latest version of Scintilla/SciTE from CVS to the SVN repository with this notable change:
- lexers/lexer.lua doesn’t use the SciteDefaultHome variable anymore. Instead it uses its own lexer_home variable that is set via the ‘lexer.lua.home’ SciTE property. So in your properties file, just define it like “lexer.lua.home=$(SciteDefaultHome)/lexers/”. The lexer.lua.script property is unchanged.
2