sergeyklay / bnf-mode

A GNU Emacs major mode for editing BNF grammars
GNU General Public License v3.0
45 stars 9 forks source link

Define comment-start and comment-end #2

Closed stephan-cr closed 5 years ago

stephan-cr commented 5 years ago

This makes all comment commands work, e.g., comment-region and uncomment-region.

sergeyklay commented 5 years ago

Hello @stephan-cr,

There is an issue I would like to sort out. According to the BNF syntax, this is considered a correct terminal definition:

<all symbols except ; >

Note, here is ;. It seems I should define a syntax-propertize-function for more precise syntax definition. So, recently I removed what you are trying to return, because I thought it would interfere solving this issue. However, it seems I was mistaken. Could you return this back: https://github.com/sergeyklay/bnf-mode/commit/83f0e0fc144e453bcce459d2d655a7b48e77953e

sergeyklay commented 5 years ago

@stephan-cr Added in master branch. Thank you for the contributing, and for helping make BNF Mode better.