[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/typescript-mode f33751e98f 145/222: Fix a case of bad inde
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/typescript-mode f33751e98f 145/222: Fix a case of bad indentation. |
Date: |
Sun, 6 Feb 2022 16:59:27 -0500 (EST) |
branch: elpa/typescript-mode
commit f33751e98f0b7f87f8c4a9a9e3dfd6c6fa4f7b31
Author: Louis-Dominique Dubeau <ldd@lddubeau.com>
Commit: Louis-Dominique Dubeau <ldd@lddubeau.com>
Fix a case of bad indentation.
Fixes #107
---
typescript-mode.el | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/typescript-mode.el b/typescript-mode.el
index e9632d70dd..178e4283c8 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -2070,14 +2070,20 @@ This performs fontification according to
`typescript--class-styles'."
"\\(?:NaN\\|-?\\(?:0[Bb][01]+\\|0[Oo][0-7]+\\|0[Xx][0-9a-fA-F]+\\|Infinity\\|\\(?:[[:digit:]]*\\.[[:digit:]]+\\|[[:digit:]]+\\)\\(?:[Ee][+-]?[[:digit:]]+\\)?\\)\\)"
"Regexp that matches number literals.")
-(defconst typescript--reserved-start-keywords-re
- (typescript--regexp-opt-symbol '("const" "export" "function" "let" "var"))
+(defconst typescript--reserved-start-keywords
+ '("const" "export" "function" "let" "var")
"These keywords cannot be variable or type names and start a new sentence.
Note that the \"import\" keyword can be a type import since TS2.9, so it might
not start a sentence!")
+(defconst typescript--reserved-start-keywords-re
+ (typescript--regexp-opt-symbol '("const" "export" "function" "let" "var"))
+ "A regular expression matching `typescript--reserved-start-keywords'.")
+
(defconst typescript--type-vs-ternary-re
- (concat "[?]\\|" (typescript--regexp-opt-symbol '("as" "class" "interface"
"private" "public" "readonly")))
+ (concat "[?]\\|" (typescript--regexp-opt-symbol
+ (append typescript--reserved-start-keywords
+ '("as" "class" "interface" "private" "public"
"readonly"))))
"Keywords/Symbols that help tell apart colon for types vs ternary
operators.")
(defun typescript--search-backward-matching-angle-bracket-inner (depth)
- [nongnu] elpa/typescript-mode 2d382d8bfb 053/222: Support rule names and severity in tslint reports., (continued)
- [nongnu] elpa/typescript-mode 2d382d8bfb 053/222: Support rule names and severity in tslint reports., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 83579fac6e 070/222: Remove the explicit invocation of the mode hook., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode e700af4703 092/222: Use syntax-propertize-function to fontify regexps., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 1d32c6b3a8 066/222: Improve readability of the code., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 46e032e932 054/222: Fix list of values compilation mode should use., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 56a1ea861f 082/222: Merge pull request #55 from bkruczyk/fix-regex-font-locking, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 0353bd72f8 133/222: Add bigint, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 18dc5a36a6 140/222: Fixes typo in the README file., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 36105abbb1 141/222: Add 26.1 to the versions we test on., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 08ceb01ff3 142/222: We no longer support 24.3, fixes #100., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode f33751e98f 145/222: Fix a case of bad indentation.,
ELPA Syncer <=
- [nongnu] elpa/typescript-mode 1ec94013e7 146/222: Run emacs --version prior to running cask., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 871c23111a 157/222: rename to typescript-mode and move to root, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode f2761fb313 178/222: Extract type-name regexp into reusable constant., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode b4109ac220 192/222: Merge pull request #139 from phst/should-not, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 12b6aae381 196/222: Merge pull request #141 from cireu/fix-auto-mode-list-re, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 3562c0c1f3 203/222: Add badges to README., ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 072f8ad43f 213/222: fix eval invocation in typescript--re-search-backward to work with lexical scoping, ELPA Syncer, 2022/02/06
- [nongnu] elpa/typescript-mode 2a58631230 207/222: Bump version for ELPA, ELPA Syncer, 2022/02/06