]> git.eshelyaron.com Git - emacs.git/commitdiff
; Fix recent changes in typescript-ts-mode.el
authorEli Zaretskii <eliz@gnu.org>
Tue, 3 Jun 2025 16:32:29 +0000 (19:32 +0300)
committerEshel Yaron <me@eshelyaron.com>
Sat, 7 Jun 2025 20:00:20 +0000 (22:00 +0200)
* 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

index e207b75f95ecc78d5b2a356203d400fb6fa85a5d..509ad3a1d4c0f871937ef684fb5b5638ec190d7c 100644 (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))))))