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

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

[nongnu] elpa/smartparens 0778a8a840 2/2: Merge pull request #1174 from


From: ELPA Syncer
Subject: [nongnu] elpa/smartparens 0778a8a840 2/2: Merge pull request #1174 from akreisher/add-js-typescript-ts-modes
Date: Tue, 24 Oct 2023 16:02:00 -0400 (EDT)

branch: elpa/smartparens
commit 0778a8a84064cf2bc3a9857bd0e7a4619cc1e5c3
Merge: 37f91720fe 96fccc0816
Author: Matus Goljer <matus.goljer@gmail.com>
Commit: GitHub <noreply@github.com>

    Merge pull request #1174 from akreisher/add-js-typescript-ts-modes
    
    Add support for js-ts-mode and typescript-ts-mode
---
 smartparens-config.el     |  2 +-
 smartparens-javascript.el | 11 ++++++++++-
 smartparens.el            |  1 +
 3 files changed, 12 insertions(+), 2 deletions(-)

diff --git a/smartparens-config.el b/smartparens-config.el
index af2ee3a71a..d354d11255 100644
--- a/smartparens-config.el
+++ b/smartparens-config.el
@@ -148,7 +148,7 @@ ID, ACTION, CONTEXT."
 (eval-after-load 'tuareg                   '(require 'smartparens-ml))
 (eval-after-load 'fsharp-mode              '(require 'smartparens-ml))
 (eval-after-load 'unisonlang-mode          '(require 'smartparens-unison))
-(--each '(js js2-mode)
+(--each '(js js2-mode typescript-ts-mode)
   (eval-after-load it                      '(require 'smartparens-javascript)))
 (provide 'smartparens-config)
 
diff --git a/smartparens-javascript.el b/smartparens-javascript.el
index 95e6e5dc08..968694ad69 100644
--- a/smartparens-javascript.el
+++ b/smartparens-javascript.el
@@ -48,7 +48,16 @@
 
 ;; (|sys).path.append---the dot should not travel with the closing
 ;; paren
-(--each '(js-mode javascript-mode js2-mode typescript-mode rjsx-mode)
+(--each '(
+          js-mode
+          javascript-mode
+          js2-mode
+          typescript-mode
+          rjsx-mode
+          js-ts-mode
+          typescript-ts-mode
+          tsx-ts-mode
+          )
   (add-to-list 'sp-sexp-suffix (list it 'regexp "")))
 
 (provide 'smartparens-javascript)
diff --git a/smartparens.el b/smartparens.el
index d3661116a2..cc720d97f7 100644
--- a/smartparens.el
+++ b/smartparens.el
@@ -642,6 +642,7 @@ Symbol is defined as a chunk of text recognized by
                          js-jsx-mode
                          js2-jsx-mode
                          rjsx-mode
+                         tsx-ts-mode
                          )
   "List of HTML modes.")
 



reply via email to

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