Родитель
06d49b5ea9
Коммит
17761d144b
|
@ -880,9 +880,10 @@ repository:
|
|||
class-expression:
|
||||
name: meta.class.ts
|
||||
# allows anonymous class
|
||||
begin: '{{startOfIdentifier}}(class)\b(?=\s+|[<{]|\/[\/*])'
|
||||
begin: '{{startOfIdentifier}}(?:(abstract)\s+)?(class)\b(?=\s+|[<{]|\/[\/*])'
|
||||
beginCaptures:
|
||||
'1': { name: storage.type.class.ts }
|
||||
'1': { name: storage.modifier.ts }
|
||||
'2': { name: storage.type.class.ts }
|
||||
end: (?<=\})
|
||||
patterns:
|
||||
- include: '#class-declaration-or-expression-patterns'
|
||||
|
|
|
@ -2824,10 +2824,15 @@
|
|||
<key>name</key>
|
||||
<string>meta.class.ts</string>
|
||||
<key>begin</key>
|
||||
<string>(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(class)\b(?=\s+|[<{]|\/[\/*])</string>
|
||||
<string>(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(abstract)\s+)?(class)\b(?=\s+|[<{]|\/[\/*])</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.modifier.ts</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.type.class.ts</string>
|
||||
|
|
|
@ -2828,10 +2828,15 @@
|
|||
<key>name</key>
|
||||
<string>meta.class.tsx</string>
|
||||
<key>begin</key>
|
||||
<string>(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(class)\b(?=\s+|[<{]|\/[\/*])</string>
|
||||
<string>(?<![_$[:alnum:]])(?:(?<=\.\.\.)|(?<!\.))(?:(abstract)\s+)?(class)\b(?=\s+|[<{]|\/[\/*])</string>
|
||||
<key>beginCaptures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.modifier.tsx</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.type.class.tsx</string>
|
||||
|
|
|
@ -0,0 +1,32 @@
|
|||
original file
|
||||
-----------------------------------
|
||||
export default abstract class AbstractClass {}
|
||||
-----------------------------------
|
||||
|
||||
Grammar: TypeScript.tmLanguage
|
||||
-----------------------------------
|
||||
>export default abstract class AbstractClass {}
|
||||
^^^^^^
|
||||
source.ts meta.export.default.ts keyword.control.export.ts
|
||||
^
|
||||
source.ts meta.export.default.ts
|
||||
^^^^^^^
|
||||
source.ts meta.export.default.ts keyword.control.default.ts
|
||||
^
|
||||
source.ts meta.export.default.ts
|
||||
^^^^^^^^
|
||||
source.ts meta.export.default.ts meta.class.ts storage.modifier.ts
|
||||
^
|
||||
source.ts meta.export.default.ts meta.class.ts
|
||||
^^^^^
|
||||
source.ts meta.export.default.ts meta.class.ts storage.type.class.ts
|
||||
^
|
||||
source.ts meta.export.default.ts meta.class.ts
|
||||
^^^^^^^^^^^^^
|
||||
source.ts meta.export.default.ts meta.class.ts entity.name.type.class.ts
|
||||
^
|
||||
source.ts meta.export.default.ts meta.class.ts
|
||||
^
|
||||
source.ts meta.export.default.ts meta.class.ts punctuation.definition.block.ts
|
||||
^
|
||||
source.ts meta.export.default.ts meta.class.ts punctuation.definition.block.ts
|
|
@ -0,0 +1 @@
|
|||
export default abstract class AbstractClass {}
|
Загрузка…
Ссылка в новой задаче