branch: elpa/j-mode commit 561216c2708f6e63fdfc60845d327d5579ca441f Author: LdBeth <andp...@foxmail.com> Commit: LdBeth <andp...@foxmail.com>
fix mark-defun for nested direct functions --- j-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/j-mode.el b/j-mode.el index 4986a8acf2..fd0640a457 100644 --- a/j-mode.el +++ b/j-mode.el @@ -195,7 +195,7 @@ contents of current line." (:one-liner (beginning-of-line 2) t) (:multi-liner (search-forward-regexp "^)") t) (:direct (search-forward-regexp - (rx "}}" (or eol (not (any ".:"))))) + (rx bol "}}" (? (not (any ".:")) (* nonl)) eol)) t)))) (defun j-beginning-of-explicit-definition ()