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

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

[nongnu] elpa/typescript-mode 0d5c941c4c 195/222: * typescript-mode.el:


From: ELPA Syncer
Subject: [nongnu] elpa/typescript-mode 0d5c941c4c 195/222: * typescript-mode.el: Use EOS instead of EOL for auto mode regexp.
Date: Sun, 6 Feb 2022 16:59:32 -0500 (EST)

branch: elpa/typescript-mode
commit 0d5c941c4c38b6f6ed1048a8dcfc5e1569e4b97b
Author: Zhu Zihao <all_but_last@163.com>
Commit: Zhu Zihao <all_but_last@163.com>

    * typescript-mode.el: Use EOS instead of EOL for auto mode regexp.
    
    This prevent matching filename like "xxxx.ts\nxxxx".
---
 typescript-mode.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/typescript-mode.el b/typescript-mode.el
index 7bad249e70..388f8a64e0 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -2978,7 +2978,7 @@ Key bindings:
      (folding-add-to-marks-list 'typescript-mode "// {{{" "// }}}" )))
 
 ;;;###autoload
-(add-to-list 'auto-mode-alist '("\\.ts$" . typescript-mode))
+(add-to-list 'auto-mode-alist '("\\.ts\\'" . typescript-mode))
 
 (provide 'typescript-mode)
 



reply via email to

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