theY4Kman / parsuricata

Parse Suricata rules
https://pypi.org/project/parsuricata/
MIT License
13 stars 3 forks source link

Multiline rule with newline before first option #4

Closed Gladskih closed 3 years ago

Gladskih commented 4 years ago

Parser fails on line break in the beggining of options section of multiline rules

lark.exceptions.UnexpectedCharacters: No terminal defined for '\' at line 135 col 48
cp $HOME_NET any -> $EXTERNAL_NET any ( \
                                        ^
Expecting: {'KEYWORD'}
theY4Kman commented 3 years ago

mm, sorry for taking a full damn year to get to these, but I pushed a fix for this in version 0.2.2