GNOME Bugzilla – Bug 131482
Lua syntax highlighting
Last modified: 2004-12-22 21:47:04 UTC
I've written a lua.lang for enableing Lua syntax highlighting (attached). The only problem with it that I can see is the rules of how lines can be continued, as they are based on the python.lang file and I don't know how Lua handles those cases. It only highlights languages keywords, comments and basic functions. Not the many functions available from the main modules (I could add that if desired).
Created attachment 23361 [details] Lua language spec
A thing to note is the mimetype that I've chosen, text/x-lua. It is not present in gnome-mime-data yet and I've based it on text/x-python but I'm not sure if there is already another mimetype for Lua files. For now, I'm creating a bug for gnome-mime-data with a patch to add text/x-lua. To gnome-vfs.mime.
I've set this bug to depend on the gnome-mime-data one. I'll review it again when the other patch is committed. Thanks.
I've added the spec file to GtkSourceView HEAD. Thanks a lot.
It's great to see my little contribution making it in, thank you! :)