summaryrefslogtreecommitdiffstats
path: root/src/scanner.l
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2014-09-17 09:43:52 +0200
committerPatrick McHardy <kaber@trash.net>2014-09-17 09:43:52 +0200
commit102c30013e622a9ffdccace52dee2552b06e5d3d (patch)
treed4517929b51234496a62dba8713ac93252fc97e4 /src/scanner.l
parentd4e06f5bb9511c6a3a00191f74a99ba0c58093a6 (diff)
parser: simplify monitor command parsing
Add tokens for "new" and "destroy". Split up the monitor flags into an event and an object to avoid lots of duplicated code. Signed-off-by: Patrick McHardy <kaber@trash.net>
Diffstat (limited to 'src/scanner.l')
-rw-r--r--src/scanner.l3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/scanner.l b/src/scanner.l
index 601ea3c1..8aab38f9 100644
--- a/src/scanner.l
+++ b/src/scanner.l
@@ -261,6 +261,9 @@ addrstring ({macaddr}|{ip4addr}|{ip6addr})
"export" { return EXPORT; }
"monitor" { return MONITOR; }
+"new" { return NEW; }
+"destroy" { return DESTROY; }
+
"position" { return POSITION; }
"comment" { return COMMENT; }