Identify C++ style comments with asm-mode in Emacs Lisp

余生长醉 提交于 2019-12-11 04:03:44

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!