branch: externals/ess
commit 67312f56d2a7313c2a7da93ea8816a2d90b4d7ab
Author: Christophe Gouel <[email protected]>
Commit: Martin Mächler <[email protected]>
fix(ess-r-mode): Recognize star headings after '> ' prompt
---
lisp/ess-r-mode.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/ess-r-mode.el b/lisp/ess-r-mode.el
index 1f542acb05..8e57391d60 100644
--- a/lisp/ess-r-mode.el
+++ b/lisp/ess-r-mode.el
@@ -329,7 +329,7 @@ namespace.")
"Compute outline level for `stars` style headings."
(save-excursion
(beginning-of-line)
- (if (looking-at "###\\s-+\\(\\*+\\)\\s-+")
+ (if (looking-at "^\\(?:> \\)?###\\s-+\\(\\*+\\)\\s-+")
(length (match-string 1))
1000)))