Function: python-ts-hs-adjust-block-end-fn
python-ts-hs-adjust-block-end-fn is a byte-compiled function defined
in python.el.gz.
Signature
(python-ts-hs-adjust-block-end-fn BLOCK-BEG)
Documentation
Python-ts-mode specific hs-adjust-block-end-function function.
BLOCK-BEG is the beginning position where the hiding will be performed.
This is only used to properly hide the block when there are no closing parens.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-ts-hs-adjust-block-end-fn (block-beg)
"Python-ts-mode specific `hs-adjust-block-end-function' function.
BLOCK-BEG is the beginning position where the hiding will be performed.
This is only used to properly hide the block when there are no closing
parens."
(unless (save-excursion
(goto-char block-beg)
(treesit-thing-at
(1- (point))
'(or "argument_list"
(and anonymous "\\`[](),[{}]\\'")
"string")))
(line-end-position)))