[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/beancount 02fe03ee44 070/103: Fix font lock for accounts
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/beancount 02fe03ee44 070/103: Fix font lock for accounts |
Date: |
Mon, 29 Apr 2024 15:59:47 -0400 (EDT) |
branch: elpa/beancount
commit 02fe03ee4487de7f83f587db65970b91ebd2d9d7
Author: ying <yingyuyao+yyymeow@gmail.com>
Commit: Martin Blais <blais@furius.ca>
Fix font lock for accounts
---
beancount-tests.el | 9 +++++++++
beancount.el | 4 ++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/beancount-tests.el b/beancount-tests.el
index 41d7576d96..be9201d5ae 100644
--- a/beancount-tests.el
+++ b/beancount-tests.el
@@ -129,6 +129,15 @@ Return a list of substrings each followed by its face."
"1.00 USD" beancount-amount
"Assets:Checking" beancount-account)))
+(ert-deftest beancount/fontify-005 ()
+ :tags '(font regress)
+ (beancount-test-font-lock "
+2019-01-01 open Assets:TD:TDB900 TDB900
+"
+ '("2019-01-01" beancount-date
+ "open" beancount-directive
+ "Assets:TD:TDB900" beancount-account)))
+
(ert-deftest beancount/indent-001 ()
:tags '(indent regress)
(with-temp-buffer
diff --git a/beancount.el b/beancount.el
index 6daf63b520..9ad9a5eb46 100644
--- a/beancount.el
+++ b/beancount.el
@@ -258,10 +258,10 @@ from the open directive for the relevant account."
;; Tags and links.
(,(concat "\\#[" beancount-tag-chars "]*") . 'beancount-tag)
(,(concat "\\^[" beancount-tag-chars "]*") . 'beancount-link)
- ;; Number followed by currency not covered by previous rules.
- (,(concat beancount-number-regexp "\\s-+" beancount-currency-regexp) .
'beancount-amount)
;; Accounts not covered by previous rules.
(,beancount-account-regexp . 'beancount-account)
+ ;; Number followed by currency not covered by previous rules.
+ (,(concat beancount-number-regexp "\\s-+" beancount-currency-regexp) .
'beancount-amount)
))
(defun beancount-tab-dwim (&optional arg)
- [nongnu] elpa/beancount eda34d1767 019/103: beancount.el: Convert the minor mode into a major mode, (continued)
- [nongnu] elpa/beancount eda34d1767 019/103: beancount.el: Convert the minor mode into a major mode, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 1343aaaf18 014/103: Fixed Emacs functionality to uncomment regions (change submitted by Stefan Monnier)., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount ea357a9077 021/103: beancount.el: Update Copyright and Author, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 8a1557bc96 039/103: beancount.el: Silence byte-compilation warnings about unused arguments, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount f27ea3084d 040/103: (changes for updated Emacs mode), ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount a48aaa7f41 045/103: beacnount.el: Tweak beancount-indent-line, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 0cd55a8038 055/103: beancount.el: Introduce beancount-insert-date and bind it to M-RET, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 60ef7f56d5 049/103: beancount.el: Fix typos in the comment, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 404876fa6b 015/103: Fixed #302: beancount.el does not fontify account names with single letter components., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 35ef808e1c 026/103: beancount.el: Implement indentation support, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 02fe03ee44 070/103: Fix font lock for accounts,
ELPA Syncer <=
- [nongnu] elpa/beancount 2bed4f6b7f 073/103: Setup CI using GitHub Actions, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount f55912cdef 094/103: Add flymake-bean-check, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 9f82d86d36 013/103: Fixed #209: Don't require 'ido. User will have to make sure that beancount-use-ido is false., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount b1fa650c5b 020/103: beancount.el: Add tests, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 6e104dcaf7 024/103: beancount.el: Revamp fontification, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 8de6790f46 029/103: beancount.el: Add support to highlight transaction at point, ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 008d1bc599 046/103: Added missing binding for outline more to go up a heading level., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount ca4babba94 057/103: Merged in imenu-support (pull request #132), ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount 53a3f8e22d 068/103: Fix typo and make code a bit more idiomatic., ELPA Syncer, 2024/04/29
- [nongnu] elpa/beancount dd024c867b 080/103: Added support for cost over regions, ELPA Syncer, 2024/04/29