Add configurable extra line continuation indentation

This commit is contained in:
Caelan
2020-12-28 16:15:37 -08:00
parent f6c7bb5bb4
commit 9b1e313e2c

View File

@@ -273,17 +273,19 @@ possibilities can be narrowed to specific indentation points."
(current-column))) (current-column)))
(`(,(or :after-block-start (`(,(or :after-block-start
:after-backslash-first-line :after-backslash-first-line
:after-backslash-assignment-continuation
:inside-paren-newline-start) . ,start) :inside-paren-newline-start) . ,start)
;; Add one indentation level. ;; Add one indentation level.
(goto-char start) (goto-char start)
(+ (current-indentation) gdscript-indent-offset)) (+ (current-indentation) gdscript-indent-offset))
(`(,(or :inside-paren (`(,(or :inside-paren
:after-backslash-block-continuation :after-backslash-block-continuation
:after-backslash-dotted-continuation) . ,start) :after-backslash-dotted-continuation
;; Use the column given by the context. :after-backslash-assignment-continuation) . ,start)
;; Use (possibly extra) indentation given by the configuration
(goto-char start) (goto-char start)
(current-column)) (+ (current-indentation)
(* gdscript-indent-offset
gdscript-indent-line-continuation-scale)))
(`(:after-block-end . ,start) (`(:after-block-end . ,start)
;; Subtract one indentation level. ;; Subtract one indentation level.
(goto-char start) (goto-char start)