aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorAndreas Schwab2003-02-02 17:35:47 +0000
committerAndreas Schwab2003-02-02 17:35:47 +0000
commit769c4c6377fcdcb49c5e2ce11301d59ee675559b (patch)
tree25782e8b8192501355242670867211f273e11146 /lisp/progmodes
parent4cac2fc3fa46f66883ddc593b88e98f6961315e0 (diff)
downloademacs-769c4c6377fcdcb49c5e2ce11301d59ee675559b.tar.gz
emacs-769c4c6377fcdcb49c5e2ce11301d59ee675559b.zip
(asm-font-lock-keywords): Allow arbitrary
words separated by dots. Match optional parenthesized word at start of line.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/asm-mode.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/progmodes/asm-mode.el b/lisp/progmodes/asm-mode.el
index 6feded31b7f..96b14596f6b 100644
--- a/lisp/progmodes/asm-mode.el
+++ b/lisp/progmodes/asm-mode.el
@@ -1,6 +1,6 @@
1;;; asm-mode.el --- mode for editing assembler code 1;;; asm-mode.el --- mode for editing assembler code
2 2
3;; Copyright (C) 1991 Free Software Foundation, Inc. 3;; Copyright (C) 1991, 2003 Free Software Foundation, Inc.
4 4
5;; Author: Eric S. Raymond <esr@snark.thyrsus.com> 5;; Author: Eric S. Raymond <esr@snark.thyrsus.com>
6;; Maintainer: FSF 6;; Maintainer: FSF
@@ -80,9 +80,10 @@
80 ) 80 )
81 81
82(defconst asm-font-lock-keywords 82(defconst asm-font-lock-keywords
83 '(("^\\(\\(\\sw\\|\\s_\\)+\\)\\>:?[ \t]*\\(\\sw+\\(\\.[lLwWbBsS]\\)?\\)?" 83 '(("^\\(\\(\\sw\\|\\s_\\)+\\)\\>:?[ \t]*\\(\\sw+\\(\\.\\sw+\\)*\\)?"
84 (1 font-lock-function-name-face) (3 font-lock-keyword-face nil t)) 84 (1 font-lock-function-name-face) (3 font-lock-keyword-face nil t))
85 ("^\\s +\\(\\(\\sw\\|\\s_\\)+\\(\\.[lLwWbBsS]\\)?\\)" 1 font-lock-keyword-face)) 85 ("^\\((\\sw+)\\)?\\s +\\(\\(\\sw\\|\\s_\\)+\\(\\.\\sw+\\)*\\)"
86 2 font-lock-keyword-face))
86 "Additional expressions to highlight in Assembler mode.") 87 "Additional expressions to highlight in Assembler mode.")
87 88
88(defvar asm-code-level-empty-comment-pattern nil) 89(defvar asm-code-level-empty-comment-pattern nil)