diff options
| author | Augusto Stoffel | 2025-09-27 15:32:05 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2025-10-04 11:16:37 +0300 |
| commit | b8555ebff41bc06a7a35234d613a28a053b95c35 (patch) | |
| tree | 25146f61521ff8aaa43ca6cddfb3c0bd5e6057bb | |
| parent | 6a12fe3d797deb118d1328f04c0ed9a81d7eb0a6 (diff) | |
| download | emacs-b8555ebff41bc06a7a35234d613a28a053b95c35.tar.gz emacs-b8555ebff41bc06a7a35234d613a28a053b95c35.zip | |
Add 'auto-mode-alist' entry for Containerfile
* lisp/progmodes/dockerfile-ts-mode.el: Also match Containerfile
and Containerfile.* in the 'auto-mode-alist' entry. (Bug#79524)
| -rw-r--r-- | lisp/progmodes/dockerfile-ts-mode.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lisp/progmodes/dockerfile-ts-mode.el b/lisp/progmodes/dockerfile-ts-mode.el index 40259792b52..f02f97b6eb1 100644 --- a/lisp/progmodes/dockerfile-ts-mode.el +++ b/lisp/progmodes/dockerfile-ts-mode.el | |||
| @@ -218,7 +218,11 @@ is t or contains the mode name." | |||
| 218 | (when (treesit-available-p) | 218 | (when (treesit-available-p) |
| 219 | (add-to-list 'auto-mode-alist | 219 | (add-to-list 'auto-mode-alist |
| 220 | ;; NOTE: We can't use `rx' here, as it breaks bootstrap. | 220 | ;; NOTE: We can't use `rx' here, as it breaks bootstrap. |
| 221 | '("\\(?:Dockerfile\\(?:\\..*\\)?\\|\\.[Dd]ockerfile\\)\\'" | 221 | ;; (rx (or (and (or "Dockerfile" "Containerfile") |
| 222 | ;; (? "." (* nonl))) | ||
| 223 | ;; (and "." (and (any "Dd") "ocker") "file")) | ||
| 224 | ;; eos) | ||
| 225 | '("\\(?:\\(?:\\(?:Contain\\|Dock\\)erfile\\)\\(?:\\..*\\)?\\|\\.[Dd]ockerfile\\)\\'" | ||
| 222 | . dockerfile-ts-mode-maybe)) | 226 | . dockerfile-ts-mode-maybe)) |
| 223 | ;; To be able to toggle between an external package and core ts-mode: | 227 | ;; To be able to toggle between an external package and core ts-mode: |
| 224 | (defvar treesit-major-mode-remap-alist) | 228 | (defvar treesit-major-mode-remap-alist) |