# HG changeset patch # User Andreas Schwab # Date 1044207259 0 # Node ID 288cda7c05fbffd14865dfdb7ff1fbcdbde695d4 # Parent d8d2b16ffa18d8dce004252597dabd7a6b48b8d4 (asm-font-lock-keywords): Allow arbitrary words separated by dots. Match optional parenthesized word at start of line. diff -r d8d2b16ffa18 -r 288cda7c05fb lisp/progmodes/asm-mode.el --- a/lisp/progmodes/asm-mode.el Sun Feb 02 17:31:49 2003 +0000 +++ b/lisp/progmodes/asm-mode.el Sun Feb 02 17:34:19 2003 +0000 @@ -1,6 +1,6 @@ ;;; asm-mode.el --- mode for editing assembler code -;; Copyright (C) 1991 Free Software Foundation, Inc. +;; Copyright (C) 1991, 2003 Free Software Foundation, Inc. ;; Author: Eric S. Raymond ;; Maintainer: FSF @@ -80,9 +80,10 @@ ) (defconst asm-font-lock-keywords - '(("^\\(\\(\\sw\\|\\s_\\)+\\)\\>:?[ \t]*\\(\\sw+\\(\\.[lLwWbBsS]\\)?\\)?" + '(("^\\(\\(\\sw\\|\\s_\\)+\\)\\>:?[ \t]*\\(\\sw+\\(\\.\\sw+\\)*\\)?" (1 font-lock-function-name-face) (3 font-lock-keyword-face nil t)) - ("^\\s +\\(\\(\\sw\\|\\s_\\)+\\(\\.[lLwWbBsS]\\)?\\)" 1 font-lock-keyword-face)) + ("^\\((\\sw+)\\)?\\s +\\(\\(\\sw\\|\\s_\\)+\\(\\.\\sw+\\)*\\)" + 2 font-lock-keyword-face)) "Additional expressions to highlight in Assembler mode.") (defvar asm-code-level-empty-comment-pattern nil)