From: Mark Wooding Date: Tue, 16 Oct 2018 18:45:01 +0000 (+0100) Subject: el/dot-emacs.el: Fix `asm-mode' comment highlighting. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/5edd6d49dfa38fc4c93781b3ab9ec26c51cc9d86?ds=sidebyside el/dot-emacs.el: Fix `asm-mode' comment highlighting. I think this actually works with all three comment syntaxes now. Go me. --- diff --git a/el/dot-emacs.el b/el/dot-emacs.el index ac20c56..f0569e6 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -3007,13 +3007,17 @@ (defun mdw-fontify-asm () (modify-syntax-entry ?. "w") (modify-syntax-entry ?\n ">") (setf fill-prefix nil) + (modify-syntax-entry ?. "_") + (modify-syntax-entry ?* ". 23") + (modify-syntax-entry ?/ ". 124b") + (modify-syntax-entry ?\n "> b") (local-set-key ";" 'self-insert-command) (mdw-standard-fill-prefix "\\([ \t]*;+[ \t]*\\)")) (defun mdw-asm-set-comment () (modify-syntax-entry ?; "." ) - (modify-syntax-entry asm-comment-char "