File tree Expand file tree Collapse file tree 5 files changed +26
-3
lines changed Expand file tree Collapse file tree 5 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -906,7 +906,7 @@ repository:
906
906
907
907
type-builtin-literals :
908
908
name : support.type.builtin.ts
909
- match : (?<!\.|\$)\b(this|true|false|undefined|null)\b(?!\$)
909
+ match : (?<!\.|\$)\b(this|true|false|undefined|null|object )\b(?!\$)
910
910
911
911
# Parenthesis can contain either types and function parameters
912
912
# (number | string) or (param: number, param2: string)
Original file line number Diff line number Diff line change 2792
2792
<key >name </key >
2793
2793
<string >support.type.builtin.ts </string >
2794
2794
<key >match </key >
2795
- <string >(?< !\.|\$)\b(this|true|false|undefined|null)\b(?!\$) </string >
2795
+ <string >(?< !\.|\$)\b(this|true|false|undefined|null|object )\b(?!\$) </string >
2796
2796
</dict >
2797
2797
<key >type-paren-or-function-parameters </key >
2798
2798
<dict >
Original file line number Diff line number Diff line change 2796
2796
<key >name </key >
2797
2797
<string >support.type.builtin.tsx </string >
2798
2798
<key >match </key >
2799
- <string >(?< !\.|\$)\b(this|true|false|undefined|null)\b(?!\$) </string >
2799
+ <string >(?< !\.|\$)\b(this|true|false|undefined|null|object )\b(?!\$) </string >
2800
2800
</dict >
2801
2801
<key >type-paren-or-function-parameters </key >
2802
2802
<dict >
Original file line number Diff line number Diff line change
1
+ original file
2
+ -----------------------------------
3
+ var a: object;
4
+ -----------------------------------
5
+
6
+ Grammar: TypeScript.tmLanguage
7
+ -----------------------------------
8
+ >var a: object;
9
+ ^^^
10
+ source.ts meta.var.expr.ts storage.type.ts
11
+ ^
12
+ source.ts meta.var.expr.ts
13
+ ^
14
+ source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.definition.variable.ts variable.other.readwrite.ts
15
+ ^
16
+ source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.type.annotation.ts keyword.operator.type.annotation.ts
17
+ ^
18
+ source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.type.annotation.ts
19
+ ^^^^^^
20
+ source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.type.annotation.ts support.type.builtin.ts
21
+ ^
22
+ source.ts punctuation.terminator.statement.ts
Original file line number Diff line number Diff line change
1
+ var a : object ;
You can’t perform that action at this time.
0 commit comments