[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
emacs-29 246f5b541c5: Update ts modes missed in 4c16fd3a512 to use colum
From: |
Dmitry Gutov |
Subject: |
emacs-29 246f5b541c5: Update ts modes missed in 4c16fd3a512 to use column-0 |
Date: |
Sat, 4 Mar 2023 12:46:05 -0500 (EST) |
branch: emacs-29
commit 246f5b541c50b28c4303a365f8d8cd384f0aa6c9
Author: Dmitry Gutov <dgutov@yandex.ru>
Commit: Dmitry Gutov <dgutov@yandex.ru>
Update ts modes missed in 4c16fd3a512 to use column-0
* lisp/progmodes/ruby-ts-mode.el (ruby-ts--indent-rules):
* lisp/progmodes/go-ts-mode.el (go-ts-mode--indent-rules):
Change point-min anchor to column-0.
---
lisp/progmodes/go-ts-mode.el | 2 +-
lisp/progmodes/ruby-ts-mode.el | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/progmodes/go-ts-mode.el b/lisp/progmodes/go-ts-mode.el
index c0ec2822b57..77c97ffac11 100644
--- a/lisp/progmodes/go-ts-mode.el
+++ b/lisp/progmodes/go-ts-mode.el
@@ -66,7 +66,7 @@
(defvar go-ts-mode--indent-rules
`((go
- ((parent-is "source_file") point-min 0)
+ ((parent-is "source_file") column-0 0)
((node-is ")") parent-bol 0)
((node-is "]") parent-bol 0)
((node-is "}") parent-bol 0)
diff --git a/lisp/progmodes/ruby-ts-mode.el b/lisp/progmodes/ruby-ts-mode.el
index fa1d8626f14..750642420e3 100644
--- a/lisp/progmodes/ruby-ts-mode.el
+++ b/lisp/progmodes/ruby-ts-mode.el
@@ -557,7 +557,7 @@ a statement container is a node that matches
(let ((common
`(
;; Slam all top level nodes to the left margin
- ((parent-is "program") point-min 0)
+ ((parent-is "program") column-0 0)
;; Do not indent here docs or the end. Not sure why it
;; takes the grand-parent but ok fine.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- emacs-29 246f5b541c5: Update ts modes missed in 4c16fd3a512 to use column-0,
Dmitry Gutov <=