File tree Expand file tree Collapse file tree 5 files changed +46
-3
lines changed Expand file tree Collapse file tree 5 files changed +46
-3
lines changed Original file line number Diff line number Diff line change @@ -978,7 +978,7 @@ repository:
978978
979979 access-modifier :
980980 name : storage.modifier.ts
981- match : ' {{startOfIdentifier}}(abstract|public|protected|private|readonly|static){{endOfIdentifier}}'
981+ match : ' {{startOfIdentifier}}(abstract|public|protected|private|readonly|static|declare ){{endOfIdentifier}}'
982982
983983 property-accessor :
984984 name : storage.type.property.ts
Original file line number Diff line number Diff line change 31153115 <key >name </key >
31163116 <string >storage.modifier.ts </string >
31173117 <key >match </key >
3118- <string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(abstract|public|protected|private|readonly|static)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)) </string >
3118+ <string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(abstract|public|protected|private|readonly|static|declare )(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)) </string >
31193119 </dict >
31203120 <key >property-accessor </key >
31213121 <dict >
Original file line number Diff line number Diff line change 31373137 <key >name </key >
31383138 <string >storage.modifier.tsx </string >
31393139 <key >match </key >
3140- <string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(abstract|public|protected|private|readonly|static)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)) </string >
3140+ <string >(?< ![_$[:alnum:]])(?:(?< =\.\.\.)|(?< !\.))(abstract|public|protected|private|readonly|static|declare )(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.)) </string >
31413141 </dict >
31423142 <key >property-accessor </key >
31433143 <dict >
Original file line number Diff line number Diff line change 1+ original file
2+ -----------------------------------
3+ class Foo {
4+ declare baz: any;
5+ }
6+ -----------------------------------
7+
8+ Grammar: TypeScript.tmLanguage
9+ -----------------------------------
10+ >class Foo {
11+ ^^^^^
12+ source.ts meta.class.ts storage.type.class.ts
13+ ^
14+ source.ts meta.class.ts
15+ ^^^
16+ source.ts meta.class.ts entity.name.type.class.ts
17+ ^
18+ source.ts meta.class.ts
19+ ^
20+ source.ts meta.class.ts punctuation.definition.block.ts
21+ > declare baz: any;
22+ ^^^^
23+ source.ts meta.class.ts
24+ ^^^^^^^
25+ source.ts meta.class.ts storage.modifier.ts
26+ ^
27+ source.ts meta.class.ts meta.field.declaration.ts
28+ ^^^
29+ source.ts meta.class.ts meta.field.declaration.ts meta.definition.property.ts variable.object.property.ts
30+ ^
31+ source.ts meta.class.ts meta.field.declaration.ts meta.type.annotation.ts keyword.operator.type.annotation.ts
32+ ^
33+ source.ts meta.class.ts meta.field.declaration.ts meta.type.annotation.ts
34+ ^^^
35+ source.ts meta.class.ts meta.field.declaration.ts meta.type.annotation.ts support.type.primitive.ts
36+ ^
37+ source.ts meta.class.ts punctuation.terminator.statement.ts
38+ >}
39+ ^
40+ source.ts meta.class.ts punctuation.definition.block.ts
Original file line number Diff line number Diff line change 1+ class Foo {
2+ declare baz : any ;
3+ }
You can’t perform that action at this time.
0 commit comments