Re: Lua syntax highlighter for codemirror - javascript code editor.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: Lua syntax highlighter for codemirror - javascript code editor.
- From: Duncan Cross <duncan.cross@...>
- Date: 2009年4月14日 17:28:40 +0100
On Tue, Apr 14, 2009 at 4:55 PM, Francio
<francio@francio.pl> wrote:
I have written simple Lua parser for codemirror. Codemirror is kind of a _javascript_ textarea replacement with syntax highlighting.
http://marijn.haverbeke.nl/codemirror/
Lua parser can be tested under:
http://marijn.haverbeke.nl/codemirror/contrib/lua/index.html
It should highlight basic syntax elements and handle simple indenting rules.
Can someone give it a try and paste some syntax-complexed code to it?
For now i know that high level comments and strings("--[===[") are not well handled. I am working on it.
I am using it in my project. Maybe someone responsible for pages similar to "http://www.lua.org/demo.html" will consider using it too?
any comments welcome.
regards Franciszek Wawrzak.
This looks interesting, thank you.
I tried adding a missing 'then' after '
elseif x == "string"' and it changed the indentation of the line oddly - is that meant to happen? Pressing tab also does not seem to have any effect.
-Duncan