Skip to content

Commit

Permalink
Readonly modifier support from PR microsoft/TypeScript#29435
Browse files Browse the repository at this point in the history
  • Loading branch information
sheetalkamat committed Jan 16, 2019
1 parent f17fefd commit 76cfeab
Show file tree
Hide file tree
Showing 5 changed files with 267 additions and 0 deletions.
2 changes: 2 additions & 0 deletions TypeScript.YAML-tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -2156,6 +2156,8 @@ repository:
- include: '#type-fn-type-parameters'
- include: '#type-paren-or-function-parameters'
- include: '#type-function-return-type'
- name: storage.modifier.ts
match: '{{startOfIdentifier}}(readonly){{endOfIdentifier}}'
- include: '#type-name'

type-primitive:
Expand Down
6 changes: 6 additions & 0 deletions TypeScript.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -6519,6 +6519,12 @@
<key>include</key>
<string>#type-function-return-type</string>
</dict>
<dict>
<key>name</key>
<string>storage.modifier.ts</string>
<key>match</key>
<string>(?&lt;![_$[:alnum:]])(?:(?&lt;=\.\.\.)|(?&lt;!\.))(readonly)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))</string>
</dict>
<dict>
<key>include</key>
<string>#type-name</string>
Expand Down
6 changes: 6 additions & 0 deletions TypeScriptReact.tmLanguage
Original file line number Diff line number Diff line change
Expand Up @@ -6465,6 +6465,12 @@
<key>include</key>
<string>#type-function-return-type</string>
</dict>
<dict>
<key>name</key>
<string>storage.modifier.tsx</string>
<key>match</key>
<string>(?&lt;![_$[:alnum:]])(?:(?&lt;=\.\.\.)|(?&lt;!\.))(readonly)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))</string>
</dict>
<dict>
<key>include</key>
<string>#type-name</string>
Expand Down

0 comments on commit 76cfeab

Please sign in to comment.