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 152267 - Add syntax highlighting for assembly
Add syntax highlighting for assembly
Status: RESOLVED OBSOLETE
Product: gtksourceview
Classification: Platform
Component: New *.lang file
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: GTK Sourceview maintainers
GTK Sourceview maintainers
: 162274 454543 642384 649311 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2004-09-09 19:23 UTC by gnome_bugs
Modified: 2021-07-05 11:00 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
this is a simple syntax file for gnu assembler. it has strings, chars ('a, 'b, etc), ints and floats support, also the intel registers. accepts comments and also handle labels. (3.40 KB, text/plain)
2005-04-12 05:05 UTC, Ricardo Lenz
Details
Assembly source highlight file (31.59 KB, text/plain)
2005-10-13 15:59 UTC, Markus Lindqvist
Details

Description gnome_bugs 2004-09-09 19:23:34 UTC
Assembly is still quite a common programming language, and I respectfully
suggest addition of basic syntax highlighting for it.  It would greatly help me
with my current assembly classes.  We have highlighting for Ada, but not for
assembly!
Comment 1 Paolo Borelli 2004-09-09 20:21:32 UTC
feel free to provide a .lang file...
Comment 2 Paolo Borelli 2004-12-26 18:17:06 UTC
*** Bug 162274 has been marked as a duplicate of this bug. ***
Comment 3 Mystilleef 2004-12-27 03:06:39 UTC
I have written what seems to be a partially complete lang file for x86 assembly.
Unfortunately, I can't seem to get it to work. I thought placing the lang file
in /usr/share/gtksourceview-1.0/language-specs is all I need to do. But it seems
I'm wrong. What do I need to do to get syntax highlighting working for assembly
appart writing a lang file?
Comment 4 Paolo Maggi 2004-12-27 09:14:09 UTC
Is it shown by gedit in the "Highlight Mode" menu?
In the case it is shown, it could be a mime-type problem.
Comment 5 Mystilleef 2004-12-27 15:07:21 UTC
Yes, it is showing in the gedit preferences. It is just not working. 
Comment 6 Paolo Maggi 2005-01-07 22:05:03 UTC
Please, attach your file to the bug report so I can review it.
Comment 7 Ricardo Lenz 2005-04-12 05:05:44 UTC
Created attachment 45158 [details]
this is a simple syntax file for gnu assembler. it has strings, chars ('a, 'b, etc), ints and floats support, also the intel registers. accepts comments and also handle labels.

because no other posts have been made, i thought i might try to do a assembler
lang file... so here it is.
Comment 8 Markus Lindqvist 2005-10-13 15:59:25 UTC
Created attachment 53422 [details]
Assembly source highlight file

This file is very useful with NASM. It includes almost all nasm's preprocessor
things...
Comment 9 Sebastien Bacher 2007-07-07 22:18:16 UTC
*** Bug 454543 has been marked as a duplicate of this bug. ***
Comment 10 Peter Gordon 2008-02-12 07:00:36 UTC
2 years of silence? :o

This would be a very useful feature. :)

Markus, thanks for the lang file. It works beautifully here with Scribes, which still uses GtkSourceView 1.x for the time being. Would you please be so kind as to forward-port that to the 2.x format for other editors (such as gedit)? That would be incredibly appreciated! ^_^
Comment 11 Guy Taylor 2009-03-20 13:01:05 UTC
Iv started a separate 'bug' for the microchip PIC asm language. http://bugzilla.gnome.org/show_bug.cgi?id=576076
I don't know how similar or different they are. Would it be a duplicate bug?
Comment 12 Jean-Philippe Fleury 2011-10-17 03:13:02 UTC
See the following language definition file (based on the 2.0 spec) for NASM:

http://callumscode.com/downloads/nasm.lang

The file is released under LGPL version 2 or any later version.
Comment 13 Sébastien Wilmet 2013-11-15 18:35:07 UTC
*** Bug 642384 has been marked as a duplicate of this bug. ***
Comment 14 Sébastien Wilmet 2013-11-15 18:35:46 UTC
*** Bug 649311 has been marked as a duplicate of this bug. ***
Comment 15 GNOME Infrastructure Team 2021-07-05 11:00:56 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gtksourceview/-/issues/

Thank you for your understanding and your help.