在Emacs Lisp中用asm模式识别C ++风格的注释 [英] Identify C++ style comments with asm-mode in Emacs Lisp
本文介绍了在Emacs Lisp中用asm模式识别C ++风格的注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
您是否使用Emacs 21?如果我正确阅读版本历史记录,则从GNU Emacs 22开始支持 //
样式注释。
Mx emacs-version
告诉你你正在运行的版本。
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.
解决方案
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.
这篇关于在Emacs Lisp中用asm模式识别C ++风格的注释的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文