forked from mirrors/org-mode
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:
parent
1cc8cdc49e
commit
cedef74216
|
@ -158,7 +158,8 @@ specially in `org-element--object-lex'.")
|
||||||
;; Empty lines.
|
;; Empty lines.
|
||||||
"$" "\\|"
|
"$" "\\|"
|
||||||
;; Tables (any type).
|
;; Tables (any type).
|
||||||
"\\(?:|\\|\\+-[-+]\\)" "\\|"
|
"|" "\\|"
|
||||||
|
"\\+\\(?:-+\\+\\)+[ \t]*$" "\\|"
|
||||||
;; Comments, keyword-like or block-like constructs.
|
;; Comments, keyword-like or block-like constructs.
|
||||||
;; Blocks and keywords with dual values need to be
|
;; Blocks and keywords with dual values need to be
|
||||||
;; double-checked.
|
;; double-checked.
|
||||||
|
|
Loading…
Reference in New Issue