org-element: Consider first "+" as a comment when parsing an ill-defined keyword

* lisp/org-element.el (org-element-comment-parser): Consider first "+"
  as a comment when parsing an ill-defined keyword.
This commit is contained in:
Nicolas Goaziou 2012-08-04 10:16:12 +02:00
parent 71c957d903
commit 9d045b21bb
1 changed files with 2 additions and 2 deletions

View File

@ -1349,7 +1349,7 @@ Assume point is at comment beginning."
(begin (car keywords))
;; Match first line with a loose regexp since it might as
;; well be an ill-defined keyword.
(value (prog2 (looking-at "[ \t]*#\\+? ?")
(value (prog2 (looking-at "[ \t]*# ?")
(buffer-substring-no-properties
(match-end 0) (line-end-position))
(forward-line)))
@ -2151,7 +2151,7 @@ CONTENTS is verse block contents."
;; org-element-NAME-successor, where NAME is the name of the
;; successor, as defined in `org-element-all-successors'.
;;
;; Some object types (i.e. `emphasis') are recursive. Restrictions on
;; Some object types (i.e. `italic') are recursive. Restrictions on
;; object types they can contain will be specified in
;; `org-element-object-restrictions'.
;;