From: Dmitry Gutov Date: Sat, 4 Mar 2023 17:45:39 +0000 (+0200) Subject: Update ts modes missed in 4c16fd3a512 to use column-0 X-Git-Tag: emacs-29.0.90~249 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=246f5b541c5;p=emacs.git 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. --- 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.