summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2011-08-12 13:06:25 +0200
committerNicolas Goaziou <n.goaziou@gmail.com>2011-08-12 13:06:25 +0200
commit9c33b9c259806b6cf6bf0bac01db9f47f6b38198 (patch)
tree8f5da0c45e623b0eff0c56df91357aa5fc4f1417
parent7410001a4768b58a9e6c9ea414a0aeffec1a8471 (diff)
downloadorg-mode-9c33b9c259806b6cf6bf0bac01db9f47f6b38198.tar.gz
Fix fontification error in feb52f9028e73f0f49390780bb2e61cc9da04303
* lisp/org.el (org-activate-code): correct regexp so ":.*" isn't matched.
-rw-r--r--lisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 743d9c4..7caed9c 100644
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -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)