summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2015-09-04 21:29:55 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2015-09-04 21:29:55 +0200
commita2662dc3657118ab01814125695c2ac09589114e (patch)
treece79c55d5699a73f09d21d5b32d51098f6916e83
parentb0f6c3c251414f9fb857bb54a309baba7d4cb17c (diff)
downloadorg-mode-a2662dc3657118ab01814125695c2ac09589114e.tar.gz
Fix property drawer regexp
* lisp/org.el (org-property-drawer-re): Make sure regexp doesn't expand past other drawers.
-rwxr-xr-xlisp/org.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el
index 0b80e79..f3bb30a 100755
--- a/lisp/org.el
+++ b/lisp/org.el
@@ -492,7 +492,7 @@ Group 1 contains drawer's name or \"END\".")
(defconst org-property-drawer-re
(concat "^[ \t]*:PROPERTIES:[ \t]*\n"
- "\\(?:[ \t]*:\\S-+:\\(?: .*\\)?[ \t]*\n\\)*"
+ "\\(?:[ \t]*:\\S-+:\\(?: .*\\)?[ \t]*\n\\)*?"
"[ \t]*:END:[ \t]*$")
"Matches an entire property drawer.")