[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Vim syntax and indent for Lua 4 and 5
- From: Andre Costa <brblueser@...>
- Date: Mon, 13 Jan 2003 11:20:19 -0200
this is excellent news, thks for tackling this -- I've been wanting to
do this for ages, but always postponed it...
I have already installed your files here (vim 6.1) and will report any
probls I find, if any. Looking forward to seeing them on the next vim
On Sun, 12 Jan 2003 23:21:18 -0200
"marcus.cf" <email@example.com> wrote:
> I've adapted syntax/lua.vim and indent/lua.vim that come
> with Vim to work with Lua 4.0 (:let lua_4=1) and Lua 5.0.
> In my tests, they work fairly well, but I'd like other
> users to test them.
> Nested [[ ]]
> "for" loop (the old syntax file was for Lua 3, I believe)
> Keyword "break"
> Constants "true" and "false"
> Nested comments --[[ ]]
> Vim makes Lua long comments this way:
> I would edit the ftplugin/lua.vim to avoid this, but
> maybe other users like it (the ones that comment in C as:
> * xxx
> Commented out preprocessor
> Lua 3 library functions were replaced by Lua 4 functions.
> As for Lua 5, I'm not sure if it's better to highlight
> all library (string, math, table, io, os, debug)
> functions, like the old syntax file, or only the basic
> ones (type, assert, etc.), like most languages do.
> File-handle methods won't get highlighted, so, to be
> consistent, the library shouldn't either. Tell me what
> you think.
> Added indentkeys to allow unindent when the user types
> "end" or "until" ("else" and "elseif" already worked)
> Simplified pattern matching to find out when indent or
> unindent (I guess the old ones were based on Ruby and had
> lots of unnecessary tests)
> If you like the changes, I will send it to vim.org. Maybe
> the next version of Vim comes with full Lua support!
> _____ E-mail Premium BOL
> Antivírus, anti-spam e até 100 MB de espaço. Assine já!
Andre Oliveira da Costa