Flex和Bison是否有Sublime Text语法? [英] Is there a Sublime Text Syntax for Flex and Bison?

查看:167
本文介绍了Flex和Bison是否有Sublime Text语法?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找Sublime Text中的语法,该语法突出显示我的Flex和Bison文件(或lex/yacc),以使其易于阅读... Sublime Text自动选择Lisp作为Flex文件,但不会做好所有的技巧.有什么建议尝试其他语法吗?还是在某个有用的地方(到目前为止没有发现任何东西)的插件??

I'm looking for a syntax in Sublime Text that highlights my Flex and Bison files (or lex/yacc) in a way that makes them readable... Sublime Text automatically chooses Lisp for Flex files, but that doesn't do the trick all that well. Any suggestions to try another syntax? Or is there a plugin somewhere that's useful (haven't found anything so far)?.

推荐答案

我还没有找到专门为Sublime构建的版本,但是我已经找到了与Sublime兼容的TextMate版本.

I haven't found one built specifically for Sublime, but I've found one for TextMate, which Sublime is compatible with.

因此,要突出显示Flex,您要做的就是将 TextMate的语法文件克隆到您的包中文件夹.

Therefore, for Flex highlight, all you need to do is git clone the TextMate's syntax files to your Packages folder.

关于Bison,我找到了TextMate的语法,但是对我来说效果不是很好. Vaklarados发布与我的源文件配合使用效果更好.

Regarding Bison, I've found a syntax for TextMate, but it didn't work very well for me. The one Vaklarados posted worked nicer with my source files.

这篇关于Flex和Bison是否有Sublime Text语法?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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