diff options
author | Dmitry Gutov <dgutov@yandex.ru> | 2023-03-04 19:45:39 +0200 |
---|---|---|
committer | Dmitry Gutov <dgutov@yandex.ru> | 2023-03-04 19:45:39 +0200 |
commit | 246f5b541c50b28c4303a365f8d8cd384f0aa6c9 (patch) | |
tree | 2a66ea25d921496a9a8a8d2126acbbf5a383b001 | |
parent | 0bfba49ca7cf90e841c076d6db9bb3826e7b6a57 (diff) | |
download | emacs-246f5b541c50b28c4303a365f8d8cd384f0aa6c9.tar.gz |
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.
-rw-r--r-- | lisp/progmodes/go-ts-mode.el | 2 | ||||
-rw-r--r-- | 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. |