branch: elpa/smartparens
commit 96fccc0816093aaad4b904a20802ec306c6da420
Author: Alex Kreisher <akreishe...@gmail.com>
Commit: Alex Kreisher <akreishe...@gmail.com>

    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