Is there a Sublime Text Syntax for Flex and Bison?

Lieven Cardoen picture Lieven Cardoen · Oct 2, 2013 · Viewed 16.5k times · Source

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)?.

Answer

thalesmello picture thalesmello · Oct 7, 2013

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

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

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.