From 991d162fb0a17305f8f43d9bf1f566d8227b54ec Mon Sep 17 00:00:00 2001 From: Craig Earls Date: Fri, 5 Sep 2014 21:45:36 -0700 Subject: jit-lock is now calling ledger-fontify-buffer-part, but font-lock-fontify-region is still being called and fighting with it. --- lisp/ledger-fonts.el | 84 ++++++++++++++++++++++++++-------------------------- 1 file changed, 42 insertions(+), 42 deletions(-) (limited to 'lisp/ledger-fonts.el') diff --git a/lisp/ledger-fonts.el b/lisp/ledger-fonts.el index 5725db09..0c3b9861 100644 --- a/lisp/ledger-fonts.el +++ b/lisp/ledger-fonts.el @@ -228,48 +228,48 @@ :group 'ledger-faces) -;; (defvar ledger-font-lock-keywords -;; `( ;; (,ledger-other-entries-regex 1 -;; ;; ledger-font-other-face) -;; (,ledger-comment-regex 0 -;; 'ledger-font-comment-face) -;; (,ledger-amount-regex 0 -;; 'ledger-font-posting-amount-face) -;; (,ledger-multiline-comment-regex 0 'ledger-font-comment-face) -;; (,ledger-payee-pending-regex 2 -;; 'ledger-font-payee-pending-face) ; Works -;; (,ledger-payee-cleared-regex 2 -;; 'ledger-font-payee-cleared-face) ; Works -;; (,ledger-payee-uncleared-regex 2 -;; 'ledger-font-payee-uncleared-face) ; Works -;; (,ledger-account-cleared-regex 2 -;; 'ledger-font-posting-account-cleared-face) ; Works -;; (,ledger-account-pending-regex 2 -;; 'ledger-font-posting-account-pending-face) ; Works -;; (,ledger-account-any-status-regex 2 -;; 'ledger-font-posting-account-face) ; Works -;; (,ledger-other-entries-regex 1 -;; 'ledger-font-other-face)) -;; "Expressions to highlight in Ledger mode.") - -(defvar ledger-font-lock-keywords - `(("account" . ledger-font-account-directive-face) - ("apply" . ledger-font-apply-directive-face) - ("alias" . ledger-font-alias-directive-face) - ("assert" . ledger-font-assert-directive-face) - ("bucket" . ledger-font-bucket-directive-face) - ("capture" . ledger-font-capture-directive-face) - ("check" . ledger-font-check-directive-face) - ("commodity" . ledger-font-commodity-directive-face) - ("define" . ledger-font-define-directive-face) - ("end" . ledger-font-end-directive-face) - ("expr" . ledger-font-expr-directive-face) - ("fixed" . ledger-font-fixed-directive-face) - ("include" . ledger-font-include-directive-face) - ("payee" . ledger-font-payee-directive-face) - ("tag" . ledger-font-tag-directive-face) - ("year" . ledger-font-year-directive-face)) - "Expressions to highlight in Ledger mode.") + ;; (defvar ledger-font-lock-keywords + ;; `( ;; (,ledger-other-entries-regex 1 + ;; ;; ledger-font-other-face) + ;; (,ledger-comment-regex 0 + ;; 'ledger-font-comment-face) + ;; (,ledger-amount-regex 0 + ;; 'ledger-font-posting-amount-face) + ;; (,ledger-multiline-comment-regex 0 'ledger-font-comment-face) + ;; (,ledger-payee-pending-regex 2 + ;; 'ledger-font-payee-pending-face) ; Works + ;; (,ledger-payee-cleared-regex 2 + ;; 'ledger-font-payee-cleared-face) ; Works + ;; (,ledger-payee-uncleared-regex 2 + ;; 'ledger-font-payee-uncleared-face) ; Works + ;; (,ledger-account-cleared-regex 2 + ;; 'ledger-font-posting-account-cleared-face) ; Works + ;; (,ledger-account-pending-regex 2 + ;; 'ledger-font-posting-account-pending-face) ; Works + ;; (,ledger-account-any-status-regex 2 + ;; 'ledger-font-posting-account-face) ; Works + ;; (,ledger-other-entries-regex 1 + ;; 'ledger-font-other-face)) + ;; "Expressions to highlight in Ledger mode.") + + (defvar ledger-font-lock-keywords + `(("account" . ledger-font-account-directive-face) + ("apply" . ledger-font-apply-directive-face) + ("alias" . ledger-font-alias-directive-face) + ("assert" . ledger-font-assert-directive-face) + ("bucket" . ledger-font-bucket-directive-face) + ("capture" . ledger-font-capture-directive-face) + ("check" . ledger-font-check-directive-face) + ("commodity" . ledger-font-commodity-directive-face) + ("define" . ledger-font-define-directive-face) + ("end" . ledger-font-end-directive-face) + ("expr" . ledger-font-expr-directive-face) + ("fixed" . ledger-font-fixed-directive-face) + ("include" . ledger-font-include-directive-face) + ("payee" . ledger-font-payee-directive-face) + ("tag" . ledger-font-tag-directive-face) + ("year" . ledger-font-year-directive-face)) + "Expressions to highlight in Ledger mode.") -- cgit v1.2.3