org-element: Minimize false positives when matching a table.el table

* lisp/org-element.el (org-element--set-regexps): Improve regexp for
  table.el tables.
This commit is contained in:
Nicolas Goaziou 2015-06-29 14:49:00 +02:00
parent 1cc8cdc49e
commit cedef74216
1 changed files with 2 additions and 1 deletions

View File

@ -158,7 +158,8 @@ specially in `org-element--object-lex'.")
;; Empty lines.
"$" "\\|"
;; Tables (any type).
"\\(?:|\\|\\+-[-+]\\)" "\\|"
"|" "\\|"
"\\+\\(?:-+\\+\\)+[ \t]*$" "\\|"
;; Comments, keyword-like or block-like constructs.
;; Blocks and keywords with dual values need to be
;; double-checked.