mirror of
https://github.com/godotengine/emacs-gdscript-mode.git
synced 2026-01-04 18:09:55 +03:00
Add configurable extra line continuation indentation
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user