Procházet zdrojové kódy

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.
Nicolas Goaziou před 12 roky
rodič
revize
9d045b21bb
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      lisp/org-element.el

+ 2 - 2
lisp/org-element.el

@@ -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'.
 ;;