]> git.phdru.name Git - phdru.name/cgi-bin/blog-ru/search-tags.git/blobdiff - parser/grammar
Allow '||'
[phdru.name/cgi-bin/blog-ru/search-tags.git] / parser / grammar
index 17d3098324c6117c5c509a4c27ece95030766876..0017a96479b35acc8e1b1962e63f8844850668a2 100644 (file)
@@ -4,7 +4,7 @@
 #  TAG - search blog posts that contain the tag;
 #  !TAG - search blog posts that don't contain the tag;
 #  TAG && TAG, TAG & TAG - search blog posts that contain both tags;
-#  TAG | TAG - search blog posts that contain any of the tags;
+#  TAG || TAG, TAG | TAG - search blog posts that contain any of the tags;
 # Parentheses are allowed to group expressions:
 #  TAG & (TAG | TAG)
 #  !(TAG | TAG)
@@ -25,6 +25,7 @@ SP1 : '[ \t]+'
 expression : NAME
            | expression AND_OP AND_OP expression
            | expression AND_OP expression
+           | expression OR_OP OR_OP expression
            | expression OR_OP expression
            | NOT_OP expression
            | '(' expression ')'