After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 131482 - Lua syntax highlighting
Lua syntax highlighting
Status: RESOLVED FIXED
Product: gtksourceview
Classification: Platform
Component: Syntax files
0.7.x
Other Linux
: Normal enhancement
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
Depends on: 131484
Blocks:
 
 
Reported: 2004-01-14 20:37 UTC by Thorbjørn Lindeijer
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Lua language spec (2.73 KB, text/plain)
2004-01-14 20:39 UTC, Thorbjørn Lindeijer
Details

Description Thorbjørn Lindeijer 2004-01-14 20:37:46 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).
Comment 1 Thorbjørn Lindeijer 2004-01-14 20:39:43 UTC
Created attachment 23361 [details]
Lua language spec
Comment 2 Thorbjørn Lindeijer 2004-01-14 20:58:46 UTC
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.
Comment 3 Gustavo Giráldez 2004-01-15 03:42:51 UTC
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.
Comment 4 Gustavo Giráldez 2004-06-21 19:59:43 UTC
I've added the spec file to GtkSourceView HEAD.  Thanks a lot.
Comment 5 Thorbjørn Lindeijer 2004-06-21 22:01:17 UTC
It's great to see my little contribution making it in, thank you! :)