在 emacs 中,匹配 do 和 endo 语句
您好,
我正在审查高斯编程语言中的一些代码。其中,循环可以以 do 开头并以 endo 结束?我如何查看哪个内切与哪个内切匹配。我想看看代码结构的概要。真正酷的是用不同的颜色突出显示不同的代码块(例如蓝色的主循环,黄色的嵌套循环,绿色的嵌套循环等)。
a) 我怎样才能找出匹配的 do/endo 对? b) 我描述的颜色突出显示可能吗?
Greetings,
I am reviewing some code in the Gauss programming language. In it, loops can begin with do and end with endo? How do I see which endo matches which do. I want to see an outline of the structure of the code. What would be really cool is to highlight in different colors different blocks of code (e.g. main loop in blue, nested loop in yellow, loop nested inside that in green, etc).
a) How can I figure out the matching do/endo pairs?
b) Is the color highlighting I described possible?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您对所需内容的描述听起来像是您需要该语言的主要模式。 EamcsWiki 此处有完整的部分。另外,还有关于 SO 的讨论关于创建主要模式。您可以编写适合您需要的模式,或者使工作更轻松,这里是 Emacs 的高斯模式:)。
Your description of what you want sounds like you need a major mode for the language. There is a full section here at EamcsWiki. Also, there was another discussion on SO about creating major mode. You could write a mode for suiting your needs, or, making the work easier, here is a gauss mode for Emacs :).