Revert "Fix predicate parsing in helm-org-ql"

This reverts commit f7e77989f7.
This commit is contained in:
Ihor Radchenko 2020-11-09 18:11:25 +08:00
parent 227c3f9945
commit aae03b1d43

View file

@ -1723,8 +1723,8 @@ Multiple predicates are combined with BOOLEAN."
(and predicate-without-args `(pred -- (list (intern pred)))) (and predicate-without-args `(pred -- (list (intern pred))))
(and plain-string `(s -- (list 'regexp s))))) (and plain-string `(s -- (list 'regexp s)))))
(plain-string (or quoted-arg unquoted-arg)) (plain-string (or quoted-arg unquoted-arg))
(predicate-with-args (and (substring predicate) ":" args)) (predicate-with-args (substring predicate) ":" args)
(predicate-without-args (and (substring predicate) ":")) (predicate-without-args (substring predicate) ":")
(predicate (or ,@predicates)) (predicate (or ,@predicates))
(args (list (+ (and (or keyword-arg quoted-arg unquoted-arg) (opt separator))))) (args (list (+ (and (or keyword-arg quoted-arg unquoted-arg) (opt separator)))))
(keyword-arg (and keyword "=" `(kw -- (intern (concat ":" kw))))) (keyword-arg (and keyword "=" `(kw -- (intern (concat ":" kw)))))