From 9b1e313e2cc19634e1051b1dcab3fd4e5410f5bc Mon Sep 17 00:00:00 2001 From: Caelan <803687+clangdo@users.noreply.github.com> Date: Mon, 28 Dec 2020 16:15:37 -0800 Subject: [PATCH] Add configurable extra line continuation indentation --- gdscript-indent-and-nav.el | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gdscript-indent-and-nav.el b/gdscript-indent-and-nav.el index 4f04e50..821cb2d 100644 --- a/gdscript-indent-and-nav.el +++ b/gdscript-indent-and-nav.el @@ -273,17 +273,19 @@ possibilities can be narrowed to specific indentation points." (current-column))) (`(,(or :after-block-start :after-backslash-first-line - :after-backslash-assignment-continuation :inside-paren-newline-start) . ,start) ;; Add one indentation level. (goto-char start) (+ (current-indentation) gdscript-indent-offset)) (`(,(or :inside-paren :after-backslash-block-continuation - :after-backslash-dotted-continuation) . ,start) - ;; Use the column given by the context. + :after-backslash-dotted-continuation + :after-backslash-assignment-continuation) . ,start) + ;; Use (possibly extra) indentation given by the configuration (goto-char start) - (current-column)) + (+ (current-indentation) + (* gdscript-indent-offset + gdscript-indent-line-continuation-scale))) (`(:after-block-end . ,start) ;; Subtract one indentation level. (goto-char start)