From e0e8c3fe609653935e381f1e74bfb6c50562cb7e Mon Sep 17 00:00:00 2001
From: Frank Zingsheim <f.zingsheim@gmx.de>
Date: Fri, 11 Dec 2015 20:21:38 +0100
Subject: [PATCH] Fix #7210 (Compiled match versus parsed match "|a|b")

---
 tools/matchcompiler.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/matchcompiler.py b/tools/matchcompiler.py
index 38d53d1bc..f9c0a71cd 100755
--- a/tools/matchcompiler.py
+++ b/tools/matchcompiler.py
@@ -157,7 +157,7 @@ class MatchCompiler:
                 ret += '        ' + returnStatement
 
             # a|b|c
-            elif tok.find('|') > 0:
+            elif tok.find('|') >= 0 and tok != '||' and tok != '|' and tok != '|=':
                 tokens2 = tok.split('|')
                 logicalOp = None
                 neg = None