I've put together two .lang files for gtksourceview, the syntax
highlighting library used by gedit. Simply drop them in
~/.gnome2/gtksourceview-1.0/language-specs to make them available to a
single user or in /usr/share/gtksourceview-1.0/language-specs to make
them available globally. You can now select either Neko or NekoML from
the View -> Highlight Mode -> Sources menu within gedit.

Unfortunately the syntax highlighting isn't turned on automatically
since this requires adding some MIME types to your system (I'll see
what I can do about that later). However, gedit remembers the
highlighting mode for individual files so you only have to set it once
per file.

TODO
Neko : Consider adding some highlighting for true, false, null and this.
Neko : Consider enumerating all the built-ins instead of having a
regex that catches all instances of $ident. This could help catch miss
typed built-in names. I need an up-to-date list of built-ins for this.
NekoML : Currently only comments, literals and keywords have
highlighting. Types etc. might also need some.

--
Johan Tibell

Attachment: neko.lang
Description: Binary data

Attachment: nekoml.lang
Description: Binary data

-- 
Neko : One VM to run them all
(http://nekovm.org)

Reply via email to