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:
parent
332f733d88
commit
9fcea4a263
1 changed files with 2 additions and 2 deletions
|
|
@ -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))))))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue