Fwd: Bison and Flex syntax highlighting

1,036 views
Skip to first unread message

Panayiotis Karabassis

unread,
Apr 10, 2012, 6:10:08 AM4/10/12
to vim...@googlegroups.com
As suggested I forward this email here.

-------- Original Message --------
Subject: Bison and Flex syntax highlighting
Date: Wed, 04 Apr 2012 23:20:45 +0300
From: Panayiotis Karabassis <pan...@gmail.com>
To: bu...@vim.org


Hi! This is a feature request.

Currently Vim only supports Yacc and Lex source files and displays Bison
and Flex files incorrectly.

Can we get support for these languages? I am willing to contribute the
code for this, and have started making changes to the yacc.vim file, but
there's not much point in continuing, if the changes won't be accepted.
Also, to that end, I'd like to know if there are any particular rules I
should follow while making the modifications (should I even be modifying
yacc.vim or start anew?) and any sources of documentation/reference
about Vim syntax files?

Congratulations on one of the the best editors ever made!

Thanks, and best regards,
Panayiotis Karabassis

bugreport.txt

Charles Campbell

unread,
Apr 10, 2012, 5:27:43 PM4/10/12
to vim...@googlegroups.com
If you wish to make modifications yourself, that's fine -- please send
them to me. Plus, send examples of the yacc/lex code that you're affecting.
I'd prefer it if you made your modifications against the latest yacc.vim
and lex.vim, which are on my website under

http://www.drchip.org/astronaut/vim/index.html#vimlinks_syntax

Regards,
Chip Campbell

Panayiotis Karabassis

unread,
Apr 12, 2012, 1:36:18 PM4/12/12
to Charles Campbell, vim...@googlegroups.com

Let me know if this agrees with you. It is for Bison only. Still quite
some way to go. I describe the changes in CHANGES and provide an example
for each change as well as a real-world Bison C++ parser, which was my
original motivation.

Regards,
Panayiotis

bison-flex-vim-0.01.tar.gz

Charles Campbell

unread,
Nov 2, 2012, 4:26:37 PM11/2/12
to vim...@googlegroups.com
Any more progress with your bison/flex mods?

Regards,
Chip Campbell

Reply all
Reply to author
Forward
0 new messages