softdevteam / grmtools

Rust grammar tool libraries and binaries
Other
507 stars 31 forks source link

Allow `%empty` to be used to highlight empty productions. #389

Closed ltratt closed 1 year ago

ltratt commented 1 year ago

This is a Bison-ism, but it seems reasonable to allow it even in "Yacc" mode.

Addresses one suggestion from https://github.com/softdevteam/grmtools/issues/129.

ratmice commented 1 year ago

This looks good to me, and now I can get rid of a bunch of Empty:; rules :+1: bors r+

bors[bot] commented 1 year ago

Build succeeded: