From 3f8583969690a13fc8d41cbc788d4ab5a19248ca Mon Sep 17 00:00:00 2001
From: 43081j <43081j@users.noreply.github.com>
Date: Wed, 22 Aug 2018 23:13:56 +0100
Subject: [PATCH] add unknown type
---
TypeScript.YAML-tmLanguage | 2 +-
TypeScript.tmLanguage | 2 +-
TypeScriptReact.tmLanguage | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/TypeScript.YAML-tmLanguage b/TypeScript.YAML-tmLanguage
index c17267f6..19bf8c9a 100644
--- a/TypeScript.YAML-tmLanguage
+++ b/TypeScript.YAML-tmLanguage
@@ -2100,7 +2100,7 @@ repository:
type-primitive:
name: support.type.primitive.ts
- match: '{{startOfIdentifier}}(string|number|boolean|symbol|any|void|never){{endOfIdentifier}}'
+ match: '{{startOfIdentifier}}(string|number|boolean|symbol|any|void|never|unknown){{endOfIdentifier}}'
type-builtin-literals:
name: support.type.builtin.ts
diff --git a/TypeScript.tmLanguage b/TypeScript.tmLanguage
index d4b9e85b..b5e924b4 100644
--- a/TypeScript.tmLanguage
+++ b/TypeScript.tmLanguage
@@ -6228,7 +6228,7 @@
name
support.type.primitive.ts
match
- (?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(string|number|boolean|symbol|any|void|never)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))
+ (?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(string|number|boolean|symbol|any|void|never|unknown)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))
type-builtin-literals
diff --git a/TypeScriptReact.tmLanguage b/TypeScriptReact.tmLanguage
index 8be6dc1d..273f48a5 100644
--- a/TypeScriptReact.tmLanguage
+++ b/TypeScriptReact.tmLanguage
@@ -6174,7 +6174,7 @@
name
support.type.primitive.tsx
match
- (?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(string|number|boolean|symbol|any|void|never)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))
+ (?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(string|number|boolean|symbol|any|void|never|unknown)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))
type-builtin-literals