From 246f5b541c50b28c4303a365f8d8cd384f0aa6c9 Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Sat, 4 Mar 2023 19:45:39 +0200 Subject: [PATCH] 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. -- 2.39.2