emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/web-mode ad3d282fe0 1/3: Recognize new TypeScript file ext


From: ELPA Syncer
Subject: [nongnu] elpa/web-mode ad3d282fe0 1/3: Recognize new TypeScript file extensions
Date: Fri, 23 Dec 2022 17:00:20 -0500 (EST)

branch: elpa/web-mode
commit ad3d282fe03c991090b79b481ea8b5902a22f533
Author: Kasumi Hanazuki <kasumi@rollingapple.net>
Commit: Kasumi Hanazuki <kasumi@rollingapple.net>

    Recognize new TypeScript file extensions
    
    TypeScript 4.7 supports `.cts` and `.mts` file extensions as
    counterparts of `.cjs` and `.mjs`.
    
    This patch modifies `web-mode-content-types` so that the files with
    those new extensions are handled as TypeScript.
    
    ref: 
https://www.typescriptlang.org/docs/handbook/release-notes/typescript-4-7.html#new-file-extensions
---
 web-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/web-mode.el b/web-mode.el
index 06dcdb1186..5d1682c7a1 100644
--- a/web-mode.el
+++ b/web-mode.el
@@ -998,7 +998,7 @@ Must be used in conjunction with 
web-mode-enable-block-face."
 (defvar web-mode-content-types
   '(("css"        . "\\.\\(s?css\\|css\\.erb\\)\\'")
     ("javascript" . "\\.\\([mc]?js\\|js\\.erb\\)\\'")
-    ("typescript" . "\\.\\(ts\\|ts\\.erb\\)\\'")
+    ("typescript" . "\\.\\([mc]?ts\\|ts\\.erb\\)\\'")
     ("json"       . "\\.\\(api\\|json\\|jsonld\\)\\'")
     ("jsx"        . "\\.[jt]sx\\'")
     ("xml"        . "\\.xml\\'")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]