fix(beancount): relax prefix on virtual lines

Before, virtual includes were only followed if preceded by three
semicolons. Only one should do.
This commit is contained in:
Henrik Lissner
2025-05-24 20:09:19 +02:00
parent 8406c1ff22
commit 0199727de5

View File

@ -12,7 +12,7 @@ will theirs, recursively)."
(widen)
(goto-char (point-min))
(while (re-search-forward
(concat "^" (unless nested? "\\(?:;;;# \\)?")
(concat "^" (unless nested? "\\(?:;+# \\)?")
(rx "include" (+ " ") "\"" (group (+ (not "\"")))))
nil t)
(when-let* ((path (match-string-no-properties 1)))