From 6396fe2bd78d63cee3caaeb45fdd4daddb68d88f Mon Sep 17 00:00:00 2001 From: George Kettleborough Date: Thu, 11 Apr 2013 10:50:38 +0100 Subject: Fix comment regex to include all line comment types --- lisp/ldg-regex.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lisp/ldg-regex.el') diff --git a/lisp/ldg-regex.el b/lisp/ldg-regex.el index c17582eb..8e843ae5 100644 --- a/lisp/ldg-regex.el +++ b/lisp/ldg-regex.el @@ -43,7 +43,7 @@ "\\(^[~=A-Za-z].+\\)+") (defconst ledger-comment-regex - "\\( \\| \\|^\\)\\(;.*\\)") + "^[;#|\\*%].*\\|[ \t]+;.*") (defconst ledger-payee-any-status-regex "^[0-9/.=-]+\\(\\s-+\\*\\)?\\(\\s-+(.*?)\\)?\\s-+\\(.+?\\)\\(\t\\|\n\\| [ \t]\\)") -- cgit v1.2.3