summaryrefslogtreecommitdiff
path: root/lisp/hilit19.el
diff options
context:
space:
mode:
authorKarl Heuer <kwzh@gnu.org>1994-12-09 06:24:22 +0000
committerKarl Heuer <kwzh@gnu.org>1994-12-09 06:24:22 +0000
commit8d900b6cbcbe2ec9e136c525ca1ee840d6c899ee (patch)
tree73f85bde7b324c266bc58fdfcaa1c7f659387d64 /lisp/hilit19.el
parente67b6a82463bfba1403996d746c5228d0f3c464e (diff)
downloademacs-8d900b6cbcbe2ec9e136c525ca1ee840d6c899ee.tar.gz
Add patterns for asm-mode.
Diffstat (limited to 'lisp/hilit19.el')
-rw-r--r--lisp/hilit19.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/lisp/hilit19.el b/lisp/hilit19.el
index 35b9e98fb4e..5fca0bab48e 100644
--- a/lisp/hilit19.el
+++ b/lisp/hilit19.el
@@ -1472,6 +1472,20 @@ number of backslashes."
("S M Tu W Th F S" nil label))) ; week days
(hilit-set-mode-patterns
+ 'asm-mode
+ '(("/\\*" "\\*/" comment)
+ ("^#[ \t]*\\(undef\\|define\\).*$" "[^\\]$" define)
+ ("^#.*$" nil include)
+ ;; labels
+ ("^.+:" nil defun)
+ ;; assembler directives
+ ("^[ \t]*\\..*$" nil decl)
+ ;; register names
+ ("\\$[a-z0-9]+" nil string)
+ ;; mnemonics
+ ("^[ \t]*[a-z]+" nil struct)))
+
+(hilit-set-mode-patterns
'pascal-mode
'(("(\\*" "\\*)" comment)
("{" "}" comment)