1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

; Fix recent changes in typescript-ts-mode.el

* lisp/progmodes/typescript-ts-mode.el
(typescript-ts--standalone-parent-p): Fix warning and punctuation
in a comment.
This commit is contained in:
Eli Zaretskii 2025-06-03 19:32:29 +03:00
parent 332f733d88
commit 9fcea4a263

View file

@ -241,11 +241,11 @@ This is used for `treesit-simple-indent-standalone-predicate'."
"ternary_expression")
nil)
;; If there's only whitespace before node, consider
;; this node standalone. To support function
;; this node standalone. To support function
;; chaining, allow a dot to be before the node.
((looking-back (rx bol (* whitespace) (? "."))
(line-beginning-position))
(if (looking-back "\\.")
(if (looking-back "\\." nil)
(1- (point))
(point))))))