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

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

[nongnu] elpa/evil-nerd-commenter c48a95c3ff 234/235: feat: support .tsx


From: ELPA Syncer
Subject: [nongnu] elpa/evil-nerd-commenter c48a95c3ff 234/235: feat: support .tsx files
Date: Thu, 6 Jan 2022 02:59:51 -0500 (EST)

branch: elpa/evil-nerd-commenter
commit c48a95c3ffd7e6865160fc1acad2da0048e2390b
Author: Rafał Wyszomirski <ralf@desmart.com>
Commit: Rafał Wyszomirski <ralf@desmart.com>

    feat: support .tsx files
    
    Motiviation: treat .tsx files just as .jsx in terms of whether they should 
be
    identified as JSX syntax.
---
 evil-nerd-commenter.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/evil-nerd-commenter.el b/evil-nerd-commenter.el
index 33e9fac3dd..ccc8f23442 100644
--- a/evil-nerd-commenter.el
+++ b/evil-nerd-commenter.el
@@ -192,7 +192,7 @@ The 2nd and 3rd item is the comment start and comment end.")
 (defun evilnc-html-jsx-p ()
   "Test if current file is jsx."
   (and buffer-file-name
-       (string-match-p "\.jsx?$" buffer-file-name)))
+       (string-match-p "\.[tj]sx?$" buffer-file-name)))
 
 (defun evilnc-html-match-comment-delimiters-p (target-mode)
   "Use `major-mode' to match TARGET-MODE which could be:



reply via email to

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