From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61923: 30.0.50; go-ts-mode, multiline raw-string-literal wrong indentation Date: Fri, 03 Mar 2023 09:04:28 +0200 Message-ID: <83o7paco3n.fsf@gnu.org> References: <877cvz5b0t.fsf@posteo.net> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="3480"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 61923@debbugs.gnu.org To: Gleb Zakharov Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 03 08:05:23 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pXzTn-0000ir-4w for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 03 Mar 2023 08:05:23 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pXzTU-0007r0-HT; Fri, 03 Mar 2023 02:05:04 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXzTS-0007mt-V2 for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 02:05:03 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pXzTS-00065F-Jn for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 02:05:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pXzTS-0001Tx-8j for bug-gnu-emacs@gnu.org; Fri, 03 Mar 2023 02:05:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 03 Mar 2023 07:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61923 X-GNU-PR-Package: emacs Original-Received: via spool by 61923-submit@debbugs.gnu.org id=B61923.16778270935668 (code B ref 61923); Fri, 03 Mar 2023 07:05:02 +0000 Original-Received: (at 61923) by debbugs.gnu.org; 3 Mar 2023 07:04:53 +0000 Original-Received: from localhost ([127.0.0.1]:59486 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXzTJ-0001TM-7N for submit@debbugs.gnu.org; Fri, 03 Mar 2023 02:04:53 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:50404) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pXzTH-0001T0-BM for 61923@debbugs.gnu.org; Fri, 03 Mar 2023 02:04:52 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXzTB-00063B-6c; Fri, 03 Mar 2023 02:04:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=mviPb5z0CvTwXNwu9I7KVHe+kEOrw2KdsSRNPnbU2qs=; b=QJtm8QGY8LSn tnUjEKOY5SctcttjRa8kIa+tG++JBiVWJGc5tMjPN6DqwMGeLAxL+hYGGvRd1IEsivUdIaJR8/83I 3tAza5x6m0AjZ1aLSIzcp1QkJxOc+2JMISbVGCNI0L/7bXXeMIK/+hz3geM83zDA6fPdcs3Xk7p4y i6EhwB+O3tLapZDK4nSU2iJdFQh6zrLDk0nnL/x4/cxgQfbM0r+XTU68i7iKSNSiU7IyMgT4Zoj4F ynuZbNdAQeWSSO/ceT4RPLcVEL8q1V4gzpROmeEaAdPV2x0mfyzusQTBQ/6Uk/9pB1WLa1VL8ZBDd kNPBzYuGcVfcSuXKrYnrwA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pXzTA-0007lh-AJ; Fri, 03 Mar 2023 02:04:44 -0500 In-Reply-To: <877cvz5b0t.fsf@posteo.net> (message from Gleb Zakharov on Thu, 02 Mar 2023 17:16:34 +0000) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:257194 Archived-At: > From: Gleb Zakharov > Date: Thu, 02 Mar 2023 17:16:34 +0000 > > In Go, I sometimes work with code written in another language. > I embed it into Go as string literals, for example, SQL code. > > When I type a multiline string, I notice that tree-sitter indents it by > usual Go rules, but this feature should be turned off inside the string. I don't think your conclusion is correct. This use case, and others like it, are supposed to be handled by features that support multiple major modes in the same buffer. Tweaking the language indentation rules to cater for these quite specialized use cases is not TRT, IMO, because it is likely to contradict what the majority of language users want and expect. So I agree we should support these use cases, just not by changing the general indentation rules of the language inside strings.