]
Kris Verlaenen updated DROOLS-5879:
-----------------------------------
Sprint: 2020 Week 49-51 (from Nov 30), 2020 Week 52-03 (from Dec 21) (was: 2020 Week
49-51 (from Nov 30))
Optional newline handling in MVEL parser
-----------------------------------------
Key: DROOLS-5879
URL:
https://issues.redhat.com/browse/DROOLS-5879
Project: Drools
Issue Type: Enhancement
Components: core engine
Reporter: Edoardo Vacchi
Assignee: Edoardo Vacchi
Priority: Minor
Labels: drools-core
MVEL parser explicitly handles newlines so that statements can be terminated
automatically without semicolons.
However, in some situations this is not necessary. For instance, while parsing
constraints, newlines should be treated as non-significant whitespace.
We add support to a new lexer state, that can be switched at run-time (parser
instantiation time), to allow for whitespace to be fully ignored, newlines included.