diff options
author | Nicolas Goaziou <n.goaziou@gmail.com> | 2011-04-09 13:18:13 +0200 |
---|---|---|
committer | Nicolas Goaziou <n.goaziou@gmail.com> | 2011-04-09 13:18:13 +0200 |
commit | 9a8dab1436fe10ca222544125695cd38e91c7eb2 (patch) | |
tree | 9dd85fe3e60aa8fbda70b6b4f336b6e5488ab406 | |
parent | 5efc6f5fc4cb3a81041d8ee39739827ddd034416 (diff) | |
download | org-mode-9a8dab1436fe10ca222544125695cd38e91c7eb2.tar.gz |
Correctly fontify description items
* lisp/org.el (org-set-font-lock-defaults): Be more strict when
recognizing description items, and do not fontify wrong cases like:
"- term ::description" or "1. term :: description"
-rw-r--r-- | lisp/org.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/org.el b/lisp/org.el index 50ca6bc..2d780f6 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -5593,8 +5593,8 @@ needs to be inserted at a specific position in the font-lock sequence.") '("\\[\\([0-9]*%\\)\\]\\|\\[\\([0-9]*\\)/\\([0-9]*\\)\\]" (0 (org-get-checkbox-statistics-face) t))) ;; Description list items - '("^[ \t]*\\([-+*]\\|[0-9]+[.)]\\)[ \t]+\\(.*? ::\\)" - 2 'bold prepend) + '("^[ \t]*[-+*][ \t]+\\(.*?[ \t]+::\\)\\([ \t]+\\|$\\)" + 1 'bold prepend) ;; ARCHIVEd headings (list (concat "^\\*+ \\(.*:" org-archive-tag ":.*\\)") '(1 'org-archived prepend)) |