From 10bdb08fded232f6530545e7d0f007e680bb1f10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B0=D0=BD=D0=B4=D0=B0?= =?UTF-8?q?=D1=80=20=D0=A1=D0=B8=D0=BC=D0=B8=D1=9B?= Date: Tue, 30 Jul 2024 07:41:57 +0100 Subject: [PATCH] Really add .tofu suffix With the previous change the leading dot was not escaped and this broke the terraform-mode (since it wouldn't automatically autoload it for .tf(vars)? files, but it also wouldn't work for .tofu files either). So this is a bug fix. --- terraform-mode.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/terraform-mode.el b/terraform-mode.el index 15e33bd..ac62dea 100644 --- a/terraform-mode.el +++ b/terraform-mode.el @@ -404,7 +404,7 @@ If the point is not at the heading, call (imenu-add-to-menubar "Terraform")) ;;;###autoload -(add-to-list 'auto-mode-alist '(".\\(tf\\(vars\\)?\\|tofu\\)'". terraform-mode)) +(add-to-list 'auto-mode-alist '("\\.t\\(f\\(vars\\)?\\|ofu\\)\\'" . terraform-mode)) (provide 'terraform-mode)