From 8845db1cda653d526b07a02dd3bea5f0364ef2ba Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Tue, 3 Jun 2025 19:32:29 +0300 Subject: [PATCH] ; 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. (cherry picked from commit 9fcea4a263a004e5a2996a0dae2305434ed423c5) --- lisp/progmodes/typescript-ts-mode.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lisp/progmodes/typescript-ts-mode.el b/lisp/progmodes/typescript-ts-mode.el index e207b75f95e..509ad3a1d4c 100644 --- a/lisp/progmodes/typescript-ts-mode.el +++ b/lisp/progmodes/typescript-ts-mode.el @@ -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)))))) -- 2.39.5