diff options
author | Phil Sutter <phil@nwl.cc> | 2020-02-06 12:31:56 +0100 |
---|---|---|
committer | Phil Sutter <phil@nwl.cc> | 2020-02-10 12:33:51 +0100 |
commit | 556c5a94b8067f33ef0a42836753dae0736b7524 (patch) | |
tree | a3b6dd9860a45bfee5563145423885f535e21f5d | |
parent | 03d45ad330a25323610648bb05f550e0fb9d65b2 (diff) |
scanner: Extend asteriskstring definition
Accept escaped asterisks also mid-string and as only character.
Especially the latter will help when translating from iptables where
asterisk has no special meaning.
Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r-- | src/scanner.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scanner.l b/src/scanner.l index 99ee8355..20a59de5 100644 --- a/src/scanner.l +++ b/src/scanner.l @@ -120,7 +120,7 @@ numberstring ({decstring}|{hexstring}) letter [a-zA-Z] string ({letter}|[_.])({letter}|{digit}|[/\-_\.])* quotedstring \"[^"]*\" -asteriskstring ({string}\*|{string}\\\*) +asteriskstring ({string}\*|{string}\\\*|\\\*|{string}\\\*{string}) comment #.*$ slash \/ |