Fix: (org-ql--def-query-string-to-sexp-fn) Ignore leading blanks
This commit is contained in:
parent
f65b1d91a4
commit
131407814e
3 changed files with 112 additions and 95 deletions
|
|
@ -945,7 +945,7 @@ value of `org-ql-predicates')."
|
|||
;; obscure bug in `peg': when one keyword is a substring of another,
|
||||
;; and the shorter one is listed first, the shorter one fails to match.
|
||||
(-sort (-on #'> #'length))))
|
||||
(pexs `((query (+ (and term (* [blank]))))
|
||||
(pexs `((query (and (* [blank]) (+ (and term (* [blank])))))
|
||||
(term (or (and negation (list positive-term)
|
||||
;; This is a bit confusing, but it seems to work. There's probably a better way.
|
||||
`(pred -- (list 'not (car pred))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue