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"
This commit is contained in:
parent
5efc6f5fc4
commit
9a8dab1436
|
@ -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))
|
||||
|
|
Loading…
Reference in New Issue