问题
In Emacs, how do I tweak the lisp file(s) to identify C++ style comments in asm-mode? I have a compiler that deals with asm code but uses C++ style comments. I would like emacs identify C++ style commenting and show chunks of text wrapped in /* , */ as comments. The default comment start characters of asm-mode (?\;) can be ignored.
回答1:
Are you using Emacs 21? If I'm reading the version history correctly, //
style comments are supported starting with GNU Emacs 22.
M-x emacs-version
tells you what version you're running.
来源:https://stackoverflow.com/questions/11660077/identify-c-style-comments-with-asm-mode-in-emacs-lisp