Skip to content

Commit

Permalink
Support Variance Annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
sheetalkamat committed May 24, 2022
1 parent 2e99115 commit 1d5a44a
Show file tree
Hide file tree
Showing 5 changed files with 400 additions and 3 deletions.
2 changes: 1 addition & 1 deletion TypeScript.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -2312,7 +2312,7 @@ repository:
patterns:
- include: '#comment'
- name: storage.modifier.ts
match: '{{startOfIdentifier}}(extends){{endOfIdentifier}}'
match: '{{startOfIdentifier}}(extends|in|out){{endOfIdentifier}}'
- include: '#type'
- include: '#punctuation-comma'
- name: keyword.operator.assignment.ts
Expand Down
2 changes: 1 addition & 1 deletion TypeScript.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -7017,7 +7017,7 @@
<key>name</key>
<string>storage.modifier.ts</string>
<key>match</key>
<string>(?&lt;![_$[:alnum:]])(?:(?&lt;=\.\.\.)|(?&lt;!\.))(extends)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))</string>
<string>(?&lt;![_$[:alnum:]])(?:(?&lt;=\.\.\.)|(?&lt;!\.))(extends|in|out)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))</string>
</dict>
<dict>
<key>include</key>
Expand Down
2 changes: 1 addition & 1 deletion TypeScriptReact.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -6965,7 +6965,7 @@
<key>name</key>
<string>storage.modifier.tsx</string>
<key>match</key>
<string>(?&lt;![_$[:alnum:]])(?:(?&lt;=\.\.\.)|(?&lt;!\.))(extends)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))</string>
<string>(?&lt;![_$[:alnum:]])(?:(?&lt;=\.\.\.)|(?&lt;!\.))(extends|in|out)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))</string>
</dict>
<dict>
<key>include</key>
Expand Down
Loading

0 comments on commit 1d5a44a

Please sign in to comment.