* a label starting from .
@ 2003-06-20 13:48 Masatake YAMATO
2003-06-21 4:58 ` Richard Stallman
0 siblings, 1 reply; 2+ messages in thread
From: Masatake YAMATO @ 2003-06-20 13:48 UTC (permalink / raw)
I've added code to support a label starting with "." in asm-mode.el.
Here is the example of assembly language code from sodipodi:
.o_clip:
addl $3, %edi
addl $4, %esi
decl %ebx
jnz .o_forx
movl 20(%ebp), %eax
addl %eax, 8(%ebp)
movl 28(%ebp), %eax
addl %eax, 24(%ebp)
decl %ecx
jnz .o_fory
jmp .exit
Without my patch .o_clip is not colored in font-lock-mode.
Could I install?
2003-06-20 Masatake YAMATO <jet@gyve.org>
* progmodes/asm-mode.el (asm-font-lock-keywords): Support
a label starting with ".".
Index: lisp/progmodes/asm-mode.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/progmodes/asm-mode.el,v
retrieving revision 1.26
diff -u -r1.26 asm-mode.el
--- lisp/progmodes/asm-mode.el 2 Apr 2003 16:44:32 -0000 1.26
+++ lisp/progmodes/asm-mode.el 20 Jun 2003 09:42:30 -0000
@@ -83,6 +83,8 @@
(defconst asm-font-lock-keywords
'(("^\\(\\(\\sw\\|\\s_\\)+\\)\\>:?[ \t]*\\(\\sw+\\(\\.\\sw+\\)*\\)?"
(1 font-lock-function-name-face) (3 font-lock-keyword-face nil t))
+ ("^\\(\\.\\(\\sw\\|\\s_\\)+\\)\\>:"
+ (1 font-lock-function-name-face))
("^\\((\\sw+)\\)?\\s +\\(\\(\\sw\\|\\s_\\)+\\(\\.\\sw+\\)*\\)"
2 font-lock-keyword-face))
"Additional expressions to highlight in Assembler mode.")
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: a label starting from .
2003-06-20 13:48 a label starting from Masatake YAMATO
@ 2003-06-21 4:58 ` Richard Stallman
0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2003-06-21 4:58 UTC (permalink / raw)
Cc: emacs-devel
Please install it, once you're sure it won't spuriously match anything
it should not.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-06-21 4:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-20 13:48 a label starting from Masatake YAMATO
2003-06-21 4:58 ` Richard Stallman
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).