]> git.phdru.name Git - phdru.name/cgi-bin/blog-ru/search-tags.git/blobdiff - parser/parser.py
Fix negative lookahead in grammar syntax
[phdru.name/cgi-bin/blog-ru/search-tags.git] / parser / parser.py
index 4984f1862f4a4ef165dfc7ba05a3c263e2936056..a1dd03489c2db90ef315017fa2f7b47e3f27a630 100755 (executable)
@@ -17,7 +17,7 @@ from grako.parsing import graken, Parser
 from grako.util import re, RE_FLAGS, generic_main  # noqa
 
 
-__version__ = (2016, 7, 10, 22, 31, 57, 6)
+__version__ = (2016, 7, 11, 18, 15, 20, 0)
 
 __all__ = [
     'TagsParser',
@@ -62,8 +62,7 @@ class TagsParser(Parser):
             with self._option():
                 self._expression1_()
                 with self._ifnot():
-                    with self._if():
-                        self._or_op_()
+                    self._or_op_()
             with self._option():
                 self._or_expression_()
             self._error('no available options')
@@ -97,8 +96,7 @@ class TagsParser(Parser):
             with self._option():
                 self._expression2_()
                 with self._ifnot():
-                    with self._if():
-                        self._and_op_()
+                    self._and_op_()
             with self._option():
                 self._and_expression_()
             self._error('no available options')
@@ -108,8 +106,7 @@ class TagsParser(Parser):
         with self._choice():
             with self._option():
                 with self._ifnot():
-                    with self._if():
-                        self._not_op_()
+                    self._not_op_()
                 self._expression3_()
             with self._option():
                 self._not_expression_()