diff options
| author | Liam Hupfer | 2025-06-25 22:47:34 -0500 |
|---|---|---|
| committer | Eli Zaretskii | 2025-06-28 13:11:01 +0300 |
| commit | 6299eb0fe54c87bcbb0f6ab4de3e4f9e250d4586 (patch) | |
| tree | 4ac7eed60aa03d71fce72ec16deea17da076f524 | |
| parent | 982938363ad2d8307f241d752223eb91dc195b08 (diff) | |
| download | emacs-6299eb0fe54c87bcbb0f6ab4de3e4f9e250d4586.tar.gz emacs-6299eb0fe54c87bcbb0f6ab4de3e4f9e250d4586.zip | |
bug#78901: [PATCH] js-ts-mode: Fix auto-mode-alist regexp
Align the js-ts-mode entry with the javascript-mode entries in the
default auto-mode-alist value in lisp/files.el. Otherwise, js-ts-mode is
not associated with .js files.
* lisp/progmodes/js.el (js-ts-mode): Fix auto-mode-alist regexp.
Fixes: 2023-01-20 6b2f85caa6ca "Make tree-sitter based modes optional"
| -rw-r--r-- | lisp/progmodes/js.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/progmodes/js.el b/lisp/progmodes/js.el index 3e789218fde..edb77db9bfe 100644 --- a/lisp/progmodes/js.el +++ b/lisp/progmodes/js.el | |||
| @@ -3961,7 +3961,7 @@ See `treesit-thing-settings' for more information.") | |||
| 3961 | (treesit-major-mode-setup) | 3961 | (treesit-major-mode-setup) |
| 3962 | 3962 | ||
| 3963 | (add-to-list 'auto-mode-alist | 3963 | (add-to-list 'auto-mode-alist |
| 3964 | '("\\(\\.js[mx]\\|\\.har\\)\\'" . js-ts-mode)))) | 3964 | '("\\(\\.js[mx]?\\|\\.har\\)\\'" . js-ts-mode)))) |
| 3965 | 3965 | ||
| 3966 | (derived-mode-add-parents 'js-ts-mode '(js-mode)) | 3966 | (derived-mode-add-parents 'js-ts-mode '(js-mode)) |
| 3967 | 3967 | ||