mirror of
https://github.com/godotengine/emacs-gdscript-mode.git
synced 2025-12-31 21:48:34 +03:00
@@ -2137,6 +2137,17 @@ position, else returns nil."
|
||||
(point)
|
||||
(ignore (goto-char point)))))
|
||||
|
||||
|
||||
;;; Hideshow
|
||||
|
||||
(defun gdscript-hideshow-forward-sexp-function (arg)
|
||||
"Gdscript specific `forward-sexp' function for `hs-minor-mode'.
|
||||
Argument ARG is ignored."
|
||||
arg ; Shut up, byte compiler.
|
||||
(gdscript-nav-end-of-defun)
|
||||
(unless (gdscript-info-current-line-empty-p)
|
||||
(backward-char)))
|
||||
|
||||
|
||||
;;; Imenu
|
||||
|
||||
@@ -2381,7 +2392,7 @@ To this:
|
||||
(add-to-list
|
||||
'hs-special-modes-alist
|
||||
'(gdscript-mode
|
||||
"\\s-*\\_<\\(?:def\\|class\\)\\_>"
|
||||
"\\s-*\\_<\\(?:func\\|class\\)\\_>"
|
||||
;; use the empty string as end regexp so it doesn't default to
|
||||
;; "\\s)". this way parens at end of defun are properly hidden.
|
||||
""
|
||||
|
||||
Reference in New Issue
Block a user