Skip to content

Commit 76cfeab

Browse files
committed
Readonly modifier support from PR microsoft/TypeScript#29435
1 parent f17fefd commit 76cfeab

5 files changed

+267
-0
lines changed

TypeScript.YAML-tmLanguage

+2
Original file line numberDiff line numberDiff line change
@@ -2156,6 +2156,8 @@ repository:
21562156
- include: '#type-fn-type-parameters'
21572157
- include: '#type-paren-or-function-parameters'
21582158
- include: '#type-function-return-type'
2159+
- name: storage.modifier.ts
2160+
match: '{{startOfIdentifier}}(readonly){{endOfIdentifier}}'
21592161
- include: '#type-name'
21602162

21612163
type-primitive:

TypeScript.tmLanguage

+6
Original file line numberDiff line numberDiff line change
@@ -6519,6 +6519,12 @@
65196519
<key>include</key>
65206520
<string>#type-function-return-type</string>
65216521
</dict>
6522+
<dict>
6523+
<key>name</key>
6524+
<string>storage.modifier.ts</string>
6525+
<key>match</key>
6526+
<string>(?&lt;![_$[:alnum:]])(?:(?&lt;=\.\.\.)|(?&lt;!\.))(readonly)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))</string>
6527+
</dict>
65226528
<dict>
65236529
<key>include</key>
65246530
<string>#type-name</string>

TypeScriptReact.tmLanguage

+6
Original file line numberDiff line numberDiff line change
@@ -6465,6 +6465,12 @@
64656465
<key>include</key>
64666466
<string>#type-function-return-type</string>
64676467
</dict>
6468+
<dict>
6469+
<key>name</key>
6470+
<string>storage.modifier.tsx</string>
6471+
<key>match</key>
6472+
<string>(?&lt;![_$[:alnum:]])(?:(?&lt;=\.\.\.)|(?&lt;!\.))(readonly)(?![_$[:alnum:]])(?:(?=\.\.\.)|(?!\.))</string>
6473+
</dict>
64686474
<dict>
64696475
<key>include</key>
64706476
<string>#type-name</string>

0 commit comments

Comments
 (0)