From unknown Fri Aug 15 18:14:26 2025 X-Loop: help-debbugs@gnu.org Subject: bug#62327: [PATCH] Minor additions for heex- and elixir-ts-mode Resent-From: Wilhelm Kirschbaum Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 21 Mar 2023 11:04:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 62327 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch To: 62327@debbugs.gnu.org X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.167939662125854 (code B ref -1); Tue, 21 Mar 2023 11:04:01 +0000 Received: (at submit) by debbugs.gnu.org; 21 Mar 2023 11:03:41 +0000 Received: from localhost ([127.0.0.1]:57734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peZmG-0006iv-JN for submit@debbugs.gnu.org; Tue, 21 Mar 2023 07:03:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:45472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peZmD-0006im-Aj for submit@debbugs.gnu.org; Tue, 21 Mar 2023 07:03:38 -0400 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 1peZmC-0001An-TI for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2023 07:03:36 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1peZmA-0002Gc-1Y for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2023 07:03:36 -0400 Received: by mail-wm1-x335.google.com with SMTP id ip21-20020a05600ca69500b003ed56690948so8756621wmb.1 for ; Tue, 21 Mar 2023 04:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679396608; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc :subject:date:message-id:reply-to; bh=8n2KmQsNNQZxtX6ifkvvaDLh7xBZl8ibVz0x9k+QXP4=; b=d/yQsXMXKTCbREnmbUF2l3AfmROS9Bf4NGFGnLTwK9qMkQQv3V7TNN14DjGKsg5ozO 1EbISzTJA8EMrbhprz1ndMIvCCy/KjZcX1dg8MCdFrVD1xAmwGXF9uhXw528sUNv0Mng Wju6ZMky6Y+fNMO9wwOmw/dfgb0hu0a5vM4vukM2sLXUWBPT/CBd1wGDDnfW1qnQ3p+n L5m0peNTi7Brx+cUECmCFFHq1Dk5UjQPEeLdAFl7p56c2hycdb0YnbXZDqCT+D7GPuur IGza9id6/cbtQSReHD5QJz/rkUfJE6xmjdslXWJc78PsP/dcJyU87aAkMKLmiyvUsjOg TlUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679396608; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8n2KmQsNNQZxtX6ifkvvaDLh7xBZl8ibVz0x9k+QXP4=; b=2/M3V8mTIa/hfszhQ4+cASoA4QjtIIiXp1qg/wFYvnG6K/0fqnQBHJ5OozEdj5Wr4K /zcf5fgt3qEKFcwC7rnYiBs+i40/InKcRsDDvdbErpu2uRfXqjXrnAZZVne5VdaFsuaK Ypw0Ru2rAQiu9/IOJGrbSFHUytmhBkr3kRMxylnnNnzFBlJ9RFVQMqbEN7ocbWuB49ZW U/Sv32cq1CHbGz+AqliHLTsyp3HLD/DdYdWiPkq7/tJc5JxG5qhGLmidRAxsP8mqBmhx ARJIaFUHNL0b+Q8WEExO3ebc4GeJWgQ/nvu74gnCgEmNci+cYXqIugh0qPC/k5l/5wdY UMog== X-Gm-Message-State: AO0yUKVlJZTdhw+Z2lYvmc+GskquEQRbBW3hpdlKlz4k2mJbsP7+2Tbv HoVLZP2i7j9qa60fDDb5mN9ssFRXfVE= X-Google-Smtp-Source: AK7set/EYH//xk3GbZYra59CickmcNe89F1zeG9Z8wVQ+8JtDBlA9NnPVVo2igW1+BE/w/7I4ixD+w== X-Received: by 2002:a7b:c454:0:b0:3ed:e447:1ed0 with SMTP id l20-20020a7bc454000000b003ede4471ed0mr2131295wmi.14.1679396608218; Tue, 21 Mar 2023 04:03:28 -0700 (PDT) Received: from melissa.local (ec2-13-245-158-50.af-south-1.compute.amazonaws.com. [13.245.158.50]) by smtp.gmail.com with ESMTPSA id e5-20020a05600c254500b003eb596cbc54sm13490135wma.0.2023.03.21.04.03.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 04:03:27 -0700 (PDT) User-agent: mu4e 1.9.3; emacs 30.0.50 From: Wilhelm Kirschbaum Date: Tue, 21 Mar 2023 12:52:39 +0200 Message-ID: <877cva8iyr.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=wkirschbaum@gmail.com; helo=mail-wm1-x335.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain; format=flowed The first patch set heex-ts-mode to use the same language server as elixir-ts-mode. The second adds a test to make it easier for detecting breaking change to HEEx embeds. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-heex-ts-mode-to-eglot-server-programs.patch Content-Description: Add heex-ts-mode to eglot-server-programs >From 12ab3a29000f55e4b77e10602f47702c907a43ea Mon Sep 17 00:00:00 2001 From: Wilhelm H Kirschbaum Date: Tue, 21 Mar 2023 11:48:30 +0200 Subject: [PATCH 1/2] Add heex-ts-mode to eglot-server-programs The same language server is used for elixir and heex modes. * lisp/progmodes/eglot.el (eglot-server-programs): Add heex-ts-mode. --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index fe9bc510049..cae5e038f11 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -221,7 +221,7 @@ eglot-server-programs ((java-mode java-ts-mode) . ("jdtls")) (dart-mode . ("dart" "language-server" "--client-id" "emacs.eglot-dart")) - ((elixir-ts-mode elixir-mode) . ("language_server.sh")) + ((elixir-mode elixir-ts-mode heex-ts-mode) . ("language_server.sh")) (ada-mode . ("ada_language_server")) (scala-mode . ,(eglot-alternatives '("metals" "metals-emacs"))) -- 2.40.0 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-Add-test-for-embedded-HEEx-to-elixir-ts-mode-tests.patch Content-Description: Add test to elixir-ts-mode-tests.el >From b42d8a10124a83d39248bef31ffbb12efd04db0b Mon Sep 17 00:00:00 2001 From: Wilhelm H Kirschbaum Date: Tue, 21 Mar 2023 12:13:58 +0200 Subject: [PATCH 2/2] ; Add test for embedded HEEx to elixir-ts-mode-tests * test/lisp/progmodes/elixir-ts-mode-resources/indent.erts: Add test. --- .../elixir-ts-mode-resources/indent.erts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/test/lisp/progmodes/elixir-ts-mode-resources/indent.erts b/test/lisp/progmodes/elixir-ts-mode-resources/indent.erts index 748455cc3f2..ea5d9e62240 100644 --- a/test/lisp/progmodes/elixir-ts-mode-resources/indent.erts +++ b/test/lisp/progmodes/elixir-ts-mode-resources/indent.erts @@ -306,3 +306,27 @@ Name: Long tuple {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"} =-=-= + +Name: Embedded HEEx + +=-= + defmodule Foo do + def foo(assigns) do +~H""" + +text + +""" + end + end +=-= +defmodule Foo do + def foo(assigns) do + ~H""" + + text + + """ + end +end +=-=-= -- 2.40.0 --=-=-=-- From unknown Fri Aug 15 18:14:26 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Wilhelm Kirschbaum Subject: bug#62327: closed (Re: bug#62327: [PATCH] Minor additions for heex- and elixir-ts-mode) Message-ID: References: <834jqb6ed3.fsf@gnu.org> <877cva8iyr.fsf@gmail.com> X-Gnu-PR-Message: they-closed 62327 X-Gnu-PR-Package: emacs X-Gnu-PR-Keywords: patch Reply-To: 62327@debbugs.gnu.org Date: Thu, 23 Mar 2023 08:51:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1679561462-22283-1" This is a multi-part message in MIME format... ------------=_1679561462-22283-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #62327: [PATCH] Minor additions for heex- and elixir-ts-mode which was filed against the emacs package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 62327@debbugs.gnu.org. --=20 62327: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D62327 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1679561462-22283-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 62327-done) by debbugs.gnu.org; 23 Mar 2023 08:50:08 +0000 Received: from localhost ([127.0.0.1]:37317 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfGe8-0005mC-2E for submit@debbugs.gnu.org; Thu, 23 Mar 2023 04:50:08 -0400 Received: from eggs.gnu.org ([209.51.188.92]:43464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pfGe6-0005la-6Q for 62327-done@debbugs.gnu.org; Thu, 23 Mar 2023 04:50:06 -0400 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 1pfGe1-0003zI-0F; Thu, 23 Mar 2023 04:50:01 -0400 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=YgG4pFQf8+lDPZsfbUXu0myr+TZGxe5E8xg8Z93kjk0=; b=iT9nRyzkmNyD ioaqfEg8agmF2/R4uK/KyA8dw5KJO5eYK6x3O4z/lHxlFNS2c/w33D2/EEhaPnlb7KZ2B89RYMxdo YHtO6zKcCKYbeoYP/4PTRb0USftk3P8TBoqq+WMkHBGONeBerD/yUXN1/eF9dLMK6RfB9ajuzLOW/ PUoBcvWlyw8fPDEhgISjnHsaPVzPrBFXmNtoaIbjAo4gQyl/RffuQ0ZBbl6DPx3t25oolPWyxISJT wtZEpVbNQOPt2nKRSi2gDlbF6oogC1zx+ftVA+pXGHuS0tsSbet5TcSuYXvRgk13H54dnSFTxwRyL mQJEwkowWejttaSIuU+0cg==; 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 1pfGe0-0006kV-3G; Thu, 23 Mar 2023 04:50:00 -0400 Date: Thu, 23 Mar 2023 10:50:16 +0200 Message-Id: <834jqb6ed3.fsf@gnu.org> From: Eli Zaretskii To: Wilhelm Kirschbaum In-Reply-To: <877cva8iyr.fsf@gmail.com> (message from Wilhelm Kirschbaum on Tue, 21 Mar 2023 12:52:39 +0200) Subject: Re: bug#62327: [PATCH] Minor additions for heex- and elixir-ts-mode References: <877cva8iyr.fsf@gmail.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 62327-done Cc: 62327-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) > From: Wilhelm Kirschbaum > Date: Tue, 21 Mar 2023 12:52:39 +0200 > > The first patch set heex-ts-mode to use the same language server as > elixir-ts-mode. The second adds a test to make it easier for > detecting breaking change to HEEx embeds. Thanks, installed on the master branch. ------------=_1679561462-22283-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 21 Mar 2023 11:03:41 +0000 Received: from localhost ([127.0.0.1]:57734 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peZmG-0006iv-JN for submit@debbugs.gnu.org; Tue, 21 Mar 2023 07:03:40 -0400 Received: from lists.gnu.org ([209.51.188.17]:45472) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1peZmD-0006im-Aj for submit@debbugs.gnu.org; Tue, 21 Mar 2023 07:03:38 -0400 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 1peZmC-0001An-TI for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2023 07:03:36 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1peZmA-0002Gc-1Y for bug-gnu-emacs@gnu.org; Tue, 21 Mar 2023 07:03:36 -0400 Received: by mail-wm1-x335.google.com with SMTP id ip21-20020a05600ca69500b003ed56690948so8756621wmb.1 for ; Tue, 21 Mar 2023 04:03:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679396608; h=mime-version:message-id:date:subject:to:from:user-agent:from:to:cc :subject:date:message-id:reply-to; bh=8n2KmQsNNQZxtX6ifkvvaDLh7xBZl8ibVz0x9k+QXP4=; b=d/yQsXMXKTCbREnmbUF2l3AfmROS9Bf4NGFGnLTwK9qMkQQv3V7TNN14DjGKsg5ozO 1EbISzTJA8EMrbhprz1ndMIvCCy/KjZcX1dg8MCdFrVD1xAmwGXF9uhXw528sUNv0Mng Wju6ZMky6Y+fNMO9wwOmw/dfgb0hu0a5vM4vukM2sLXUWBPT/CBd1wGDDnfW1qnQ3p+n L5m0peNTi7Brx+cUECmCFFHq1Dk5UjQPEeLdAFl7p56c2hycdb0YnbXZDqCT+D7GPuur IGza9id6/cbtQSReHD5QJz/rkUfJE6xmjdslXWJc78PsP/dcJyU87aAkMKLmiyvUsjOg TlUw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679396608; h=mime-version:message-id:date:subject:to:from:user-agent :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=8n2KmQsNNQZxtX6ifkvvaDLh7xBZl8ibVz0x9k+QXP4=; b=2/M3V8mTIa/hfszhQ4+cASoA4QjtIIiXp1qg/wFYvnG6K/0fqnQBHJ5OozEdj5Wr4K /zcf5fgt3qEKFcwC7rnYiBs+i40/InKcRsDDvdbErpu2uRfXqjXrnAZZVne5VdaFsuaK Ypw0Ru2rAQiu9/IOJGrbSFHUytmhBkr3kRMxylnnNnzFBlJ9RFVQMqbEN7ocbWuB49ZW U/Sv32cq1CHbGz+AqliHLTsyp3HLD/DdYdWiPkq7/tJc5JxG5qhGLmidRAxsP8mqBmhx ARJIaFUHNL0b+Q8WEExO3ebc4GeJWgQ/nvu74gnCgEmNci+cYXqIugh0qPC/k5l/5wdY UMog== X-Gm-Message-State: AO0yUKVlJZTdhw+Z2lYvmc+GskquEQRbBW3hpdlKlz4k2mJbsP7+2Tbv HoVLZP2i7j9qa60fDDb5mN9ssFRXfVE= X-Google-Smtp-Source: AK7set/EYH//xk3GbZYra59CickmcNe89F1zeG9Z8wVQ+8JtDBlA9NnPVVo2igW1+BE/w/7I4ixD+w== X-Received: by 2002:a7b:c454:0:b0:3ed:e447:1ed0 with SMTP id l20-20020a7bc454000000b003ede4471ed0mr2131295wmi.14.1679396608218; Tue, 21 Mar 2023 04:03:28 -0700 (PDT) Received: from melissa.local (ec2-13-245-158-50.af-south-1.compute.amazonaws.com. [13.245.158.50]) by smtp.gmail.com with ESMTPSA id e5-20020a05600c254500b003eb596cbc54sm13490135wma.0.2023.03.21.04.03.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 04:03:27 -0700 (PDT) User-agent: mu4e 1.9.3; emacs 30.0.50 From: Wilhelm Kirschbaum To: bug-gnu-emacs@gnu.org Subject: [PATCH] Minor additions for heex- and elixir-ts-mode Date: Tue, 21 Mar 2023 12:52:39 +0200 Message-ID: <877cva8iyr.fsf@gmail.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Received-SPF: pass client-ip=2a00:1450:4864:20::335; envelope-from=wkirschbaum@gmail.com; helo=mail-wm1-x335.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.3 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --=-=-= Content-Type: text/plain; format=flowed The first patch set heex-ts-mode to use the same language server as elixir-ts-mode. The second adds a test to make it easier for detecting breaking change to HEEx embeds. --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-Add-heex-ts-mode-to-eglot-server-programs.patch Content-Description: Add heex-ts-mode to eglot-server-programs >From 12ab3a29000f55e4b77e10602f47702c907a43ea Mon Sep 17 00:00:00 2001 From: Wilhelm H Kirschbaum Date: Tue, 21 Mar 2023 11:48:30 +0200 Subject: [PATCH 1/2] Add heex-ts-mode to eglot-server-programs The same language server is used for elixir and heex modes. * lisp/progmodes/eglot.el (eglot-server-programs): Add heex-ts-mode. --- lisp/progmodes/eglot.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lisp/progmodes/eglot.el b/lisp/progmodes/eglot.el index fe9bc510049..cae5e038f11 100644 --- a/lisp/progmodes/eglot.el +++ b/lisp/progmodes/eglot.el @@ -221,7 +221,7 @@ eglot-server-programs ((java-mode java-ts-mode) . ("jdtls")) (dart-mode . ("dart" "language-server" "--client-id" "emacs.eglot-dart")) - ((elixir-ts-mode elixir-mode) . ("language_server.sh")) + ((elixir-mode elixir-ts-mode heex-ts-mode) . ("language_server.sh")) (ada-mode . ("ada_language_server")) (scala-mode . ,(eglot-alternatives '("metals" "metals-emacs"))) -- 2.40.0 --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0002-Add-test-for-embedded-HEEx-to-elixir-ts-mode-tests.patch Content-Description: Add test to elixir-ts-mode-tests.el >From b42d8a10124a83d39248bef31ffbb12efd04db0b Mon Sep 17 00:00:00 2001 From: Wilhelm H Kirschbaum Date: Tue, 21 Mar 2023 12:13:58 +0200 Subject: [PATCH 2/2] ; Add test for embedded HEEx to elixir-ts-mode-tests * test/lisp/progmodes/elixir-ts-mode-resources/indent.erts: Add test. --- .../elixir-ts-mode-resources/indent.erts | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/test/lisp/progmodes/elixir-ts-mode-resources/indent.erts b/test/lisp/progmodes/elixir-ts-mode-resources/indent.erts index 748455cc3f2..ea5d9e62240 100644 --- a/test/lisp/progmodes/elixir-ts-mode-resources/indent.erts +++ b/test/lisp/progmodes/elixir-ts-mode-resources/indent.erts @@ -306,3 +306,27 @@ Name: Long tuple {"January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"} =-=-= + +Name: Embedded HEEx + +=-= + defmodule Foo do + def foo(assigns) do +~H""" + +text + +""" + end + end +=-= +defmodule Foo do + def foo(assigns) do + ~H""" + + text + + """ + end +end +=-=-= -- 2.40.0 --=-=-=-- ------------=_1679561462-22283-1--