[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/web-mode 4b8a695825: typescript indent fix
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/web-mode 4b8a695825: typescript indent fix |
Date: |
Wed, 12 Oct 2022 04:59:22 -0400 (EDT) |
branch: elpa/web-mode
commit 4b8a695825fda366927894e498421f35fce1cbb9
Author: fxbois <fxbois@gmail.com>
Commit: fxbois <fxbois@gmail.com>
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 <fxbois@gmail.com>
;; 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)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/web-mode 4b8a695825: typescript indent fix,
ELPA Syncer <=