在Emacs Lisp中用asm模式识别C ++风格的注释 [英] Identify C++ style comments with asm-mode in Emacs Lisp

查看:270
本文介绍了在Emacs Lisp中用asm模式识别C ++风格的注释的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Emacs中,如何调整lisp文件以确定asm模式下的C ++样式注释?我有一个编译器处理asm代码,但使用C ++风格的评论。我希望emacs识别C ++风格的评论,并显示包含在/ *,* /中作为注释的文本块。可以忽略asm-mode(?\;)的默认注释开始字符。

解决方案

您是否使用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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆