Bemhtml parser has its Jail grammar hard-coded in one of the rules. This prevents anyone who inherits from the bemhtml Parser grammar from specifying their custom Jail grammar. This tiny change should fix it. Just assign your custom jailer like so YourParserGrammarName.prototype._jail = MyCustomJailGrammar and you no longer have to copy-paste the listBemMatchAndSet rule to your grammar just for the sake of redefining the Jail.
Bemhtml parser has its Jail grammar hard-coded in one of the rules. This prevents anyone who inherits from the bemhtml Parser grammar from specifying their custom Jail grammar. This tiny change should fix it. Just assign your custom jailer like so
YourParserGrammarName.prototype._jail = MyCustomJailGrammar
and you no longer have to copy-paste thelistBemMatchAndSet
rule to your grammar just for the sake of redefining the Jail.