GNOME Bugzilla – Bug 152267
Add syntax highlighting for assembly
Last modified: 2021-07-05 11:00:56 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!
feel free to provide a .lang file...
*** Bug 162274 has been marked as a duplicate of this bug. ***
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?
Is it shown by gedit in the "Highlight Mode" menu? In the case it is shown, it could be a mime-type problem.
Yes, it is showing in the gedit preferences. It is just not working.
Please, attach your file to the bug report so I can review it.
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.
Created attachment 53422 [details] Assembly source highlight file This file is very useful with NASM. It includes almost all nasm's preprocessor things...
*** Bug 454543 has been marked as a duplicate of this bug. ***
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! ^_^
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?
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.
*** Bug 642384 has been marked as a duplicate of this bug. ***
*** Bug 649311 has been marked as a duplicate of this bug. ***
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.