Skip to content

Commit

Permalink
Added support for .tofu suffix for OpenTofu
Browse files Browse the repository at this point in the history
With the release of OpenTofu 1.8, support for files with .tofu suffix
was added. See: opentofu/opentofu#1738

This change enables terraform-mode for .tofu files, "out of the box".
  • Loading branch information
dotemacs committed Jul 29, 2024
1 parent a645c32 commit 4b17413
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion terraform-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -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\\)?\\'" . terraform-mode))
(add-to-list 'auto-mode-alist '(".\\(tf\\(vars\\)?\\|tofu\\)'". terraform-mode))

(provide 'terraform-mode)

Expand Down

0 comments on commit 4b17413

Please sign in to comment.