I sent the email below to the yacc.vim maintainer, but it seems the listed address bounces. Does anyone on this list
have the expertise/desire to step in to maintain this file? I'd be happy to do it myself, but the complexity of this
file is a bit above my level of Vim expertise.
-------- Forwarded Message --------
Subject: Vim Yacc syntax inconsistencies
Date: Wed, 9 Aug 2017 07:31:33 -0700
From: Matthew Fernandez <matthew.fernan...@gmail.com>
To: Charles E. Campbell <ndroch...@pcampbellafamily.mbiz>
I've been working on a Bison-generated parser recently and have come across some unexpected behaviour in syntax
highlighting within Vim. I've never used Yacc itself before, so my understanding of it is based off its docs .
The highlighting rule for "%prec" looks like the following :
syn match yaccKey "\s%\(prec\|expect\)\>" contained
This doesn't seem to actually highlight "%prec" in the context in which it is
used, trailing the body of an expression:
expr : expr '+' expr
| expr '-' expr
| expr '*' expr
| expr '/' expr
| '-' expr %prec '*'
Is this intentional?
I've noticed that this rule also tries to match "%expect" which doesn't seem supported by Yacc. This is supported by
Bison and it would actually be desirable for me if highlighting worked on other newer Bison features, like the prologue
alternatives . Are you happy to accept patches that add Bison support? The complexity of yacc.vim is above my level
of Vimscript competence, but I'm sure I can learn what I need from the Vim docs.
If you're no longer the maintainer of this file, please let me know who I should contact about this issue. Thank you for
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
You received this message because you are subscribed to the Google Groups "vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
For more options, visit https://groups.google.com/d/optout.