Fix fontification error in feb52f9028

* lisp/org.el (org-activate-code): correct regexp so ":.*" isn't
  matched.
This commit is contained in:
Nicolas Goaziou 2011-08-12 13:06:25 +02:00
parent 7410001a47
commit 9c33b9c259

View file

@ -5160,7 +5160,7 @@ will be prompted for."
t)))))
(defun org-activate-code (limit)
(if (re-search-forward "^[ \t]*\\(:\\(?: .*\\)?\n?\\)" limit t)
(if (re-search-forward "^[ \t]*\\(:\\(?: .*\\|$\\)\n?\\)" limit t)
(progn
(org-remove-flyspell-overlays-in (match-beginning 0) (match-end 0))
(remove-text-properties (match-beginning 0) (match-end 0)