Wilfred/bison-mode

off-by-one

Closed this issue · 2 comments

on line 450, the forward-sexp starts one character after the opening brace rather than on it... point should be moved back one prior to the forward-sexp.

I've pushed a fix, please let me know if that fixes the issue you're seeing. This is a part of the code that I'm very unfamiliar with.

looks good! sorry, shoudl have included a test case...

any production with an empty (or non-sexp) {} was causing it, ie.. in the rule below it would not indent prod2 correctly...

rule:
prod {}
| prod2 {}
;