summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorge Kettleborough <g.kettleborough@member.fsf.org>2013-04-11 10:50:18 +0100
committerGeorge Kettleborough <g.kettleborough@member.fsf.org>2013-04-11 10:50:18 +0100
commit90d275098899c30b14a812452bbf068cadd1d4ad (patch)
treefa19c9169e6a501e78b4bc5cf6ccf476a6e09a41
parent15e84cbb18ff2e0423e20c3a620631c3ce97956c (diff)
downloadfork-ledger-90d275098899c30b14a812452bbf068cadd1d4ad.tar.gz
fork-ledger-90d275098899c30b14a812452bbf068cadd1d4ad.tar.bz2
fork-ledger-90d275098899c30b14a812452bbf068cadd1d4ad.zip
Stop account regexes matching comments
-rw-r--r--lisp/ldg-regex.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/ldg-regex.el b/lisp/ldg-regex.el
index 226475df..c17582eb 100644
--- a/lisp/ldg-regex.el
+++ b/lisp/ldg-regex.el
@@ -61,13 +61,13 @@
"^--.+?\\($\\|[ ]\\)")
(defconst ledger-account-any-status-regex
- "^[ \t]+\\([*!]\\s-+\\)?\\([[(]?.+?\\)\\(\t\\|\n\\| [ \t]\\)")
+ "^[ \t]+\\([*!]\\s-*\\)?\\([^ ;].*?\\)\\( \\|$\\)")
(defconst ledger-account-pending-regex
- "\\(^[ \t]+\\)\\(!.+?\\)\\( \\|$\\)")
+ "\\(^[ \t]+\\)\\(!\\s-*.*?\\)\\( \\|$\\)")
(defconst ledger-account-cleared-regex
- "\\(^[ \t]+\\)\\(\\*.+?\\)\\( \\|$\\)")
+ "\\(^[ \t]+\\)\\(*\\s-*.*?\\)\\( \\|$\\)")