Re: [Vala] vala.vim updated



Hi Sergi,

On Wed, 2009-10-28 at 11:45 +0100, Sergi Alvarez wrote:
I have updated the vala.vim to colorize the following keywords:

Thanks. Could you try to keep them somewhat alphabetically sorted, that
way it's easier to match them up with the vala lexer.

async owned unowned assert

Not sure about treating 'assert' as a keyword though, it is a function
in the glib/posix vapi files. I have thought about creating a separate
syntax file for common functions (that are also highlighted as such),
just like the gtk+ syntax file for example. However, unlike the C gtk+
apis these symbols are not unique, so it probably doesn't make much
sense.

Do somebody tried to push this syntax highlight file to the upstream vim?

I was kinda waiting for the 1.0 syntax stable release first, and tweak
and adjust it accordingly. For example, see if we can just highlight
get/set/default in the proper context and perhaps do some code attribute
validation where appropriate.
Another (not uncommon) option would be to distribute syntax files with
the vala tarball, so it always matches the installed release. But I
don't have a strong opinion about this since writing vala code isn't and
shouldn't be favored to any kind of editor.

  http://live.gnome.org/Vala/Vim

Regards,
Hans




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]