Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-5879

Optional newline handling in MVEL parser

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Minor Minor
    • None
    • None
    • core engine
    • 2020 Week 49-51 (from Nov 30), 2020 Week 52-03 (from Dec 21)
    • 3
    • Undefined
    • NEW
    • NEW
    • ---
    • ---

      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.

              evacchi Edoardo Vacchi (Inactive)
              evacchi Edoardo Vacchi (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: