branch: elpa/web-mode
commit 4b8a695825fda366927894e498421f35fce1cbb9
Author: fxbois <[email protected]>
Commit: fxbois <[email protected]>

    typescript indent fix
    
    #1256
---
 issues/1256.ts | 7 +++++++
 web-mode.el    | 6 +++---
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/issues/1256.ts b/issues/1256.ts
new file mode 100644
index 0000000000..6667750500
--- /dev/null
+++ b/issues/1256.ts
@@ -0,0 +1,7 @@
+function hello() {
+  // This is a comment with a dot at the end.
+  let var = "wrong indentation";
+
+  // This is a comment without a dot at the end
+  let var = "correct indentation";
+}
diff --git a/web-mode.el b/web-mode.el
index 8b578b1537..06dcdb1186 100644
--- a/web-mode.el
+++ b/web-mode.el
@@ -2,7 +2,7 @@
 
 ;; Copyright 2011-2022 François-Xavier Bois
 
-;; Version: 17.3.2
+;; Version: 17.3.3
 ;; Author: François-Xavier Bois
 ;; Maintainer: François-Xavier Bois <[email protected]>
 ;; Package-Requires: ((emacs "23.1"))
@@ -23,7 +23,7 @@
 
 ;;---- CONSTS 
------------------------------------------------------------------
 
-(defconst web-mode-version "17.3.2"
+(defconst web-mode-version "17.3.3"
   "Web Mode version.")
 
 ;;---- GROUPS 
------------------------------------------------------------------
@@ -8451,7 +8451,7 @@ Also return non-nil if it is the command 
`self-insert-command' is remapped to."
                      (not (eq ?\< curr-char))))
         (let (prev)
           (cond
-           ((member language '("html" "xml" "javascript" "jsx" "css"))
+           ((member language '("html" "xml" "javascript" "typescript" "jsx" 
"css"))
             (when (setq prev (web-mode-part-previous-live-line reg-beg))
               (setq prev-line (nth 0 prev)
                     prev-indentation (nth 1 prev)

Reply via email to