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

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

[nongnu] elpa/typescript-mode 9796425fdb 113/222: Add support for new ty


From: ELPA Syncer
Subject: [nongnu] elpa/typescript-mode 9796425fdb 113/222: Add support for new type "unknown".
Date: Sun, 6 Feb 2022 16:59:23 -0500 (EST)

branch: elpa/typescript-mode
commit 9796425fdb7d95463950e1277e2f3f9805ba0947
Author: Jostein Kjønigsen <jostein@kjonigsen.net>
Commit: Jostein Kjønigsen <jostein@kjonigsen.net>

    Add support for new type "unknown".
    
    This is now a supported typename:
    
https://blogs.msdn.microsoft.com/typescript/2018/07/30/announcing-typescript-3-0/#unknown-is-a-reserved-type-name
---
 typescript-mode.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/typescript-mode.el b/typescript-mode.el
index a3d92dbfac..c5a1bc28da 100644
--- a/typescript-mode.el
+++ b/typescript-mode.el
@@ -270,13 +270,13 @@ Match group 1 is MUMBLE.")
      "interface" "keyof" "let" "module" "namespace" "new" "null" "number" 
"object" "of"
      "private" "protected" "public" "readonly" "return" "set" "static" "string"
      "super" "switch"  "this" "throw" "true"
-     "try" "type" "typeof" "var" "void"
+     "try" "type" "typeof" "unknown" "var" "void"
      "while"))                  ; yield is handled separately
   "Regexp matching any typescript keyword.")
 
 (defconst typescript--basic-type-re
   (typescript--regexp-opt-symbol
-   '("bool" "boolean" "string" "number" "any" "void"))
+   '("bool" "boolean" "string" "number" "any" "unknown" "void"))
   "Regular expression matching any predefined type in typescript.")
 
 (defconst typescript--constant-re



reply via email to

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