mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-29 19:48:19 +00:00
Add patterns for asm-mode.
This commit is contained in:
parent
6054fcc645
commit
33f54425db
@ -1471,6 +1471,20 @@ number of backslashes."
|
||||
'(("[A-Z][a-z]+ [0-9]+" nil define) ; month and year
|
||||
("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)
|
||||
|
Loading…
Reference in New Issue
Block a user