Родитель
4fa9a9a803
Коммит
e50f447d12
|
@ -1680,7 +1680,7 @@ repository:
|
|||
- begin: (?<!\.|\$)\b(as)\s+
|
||||
beginCaptures:
|
||||
'1': { name: keyword.control.as.ts }
|
||||
end: (?=$|^|[;,:})\]])
|
||||
end: (?=$|^|[;,:})\]]|((?<!\.|\$)\b(as)\s+))
|
||||
patterns:
|
||||
- include: '#type'
|
||||
- name: keyword.operator.spread.ts
|
||||
|
|
|
@ -4617,7 +4617,7 @@
|
|||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>(?=$|^|[;,:})\]])</string>
|
||||
<string>(?=$|^|[;,:})\]]|((?<!\.|\$)\b(as)\s+))</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
|
|
|
@ -4563,7 +4563,7 @@
|
|||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>(?=$|^|[;,:})\]])</string>
|
||||
<string>(?=$|^|[;,:})\]]|((?<!\.|\$)\b(as)\s+))</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
original file
|
||||
-----------------------------------
|
||||
0 as any as string;
|
||||
-----------------------------------
|
||||
|
||||
Grammar: TypeScript.tmLanguage
|
||||
-----------------------------------
|
||||
>0 as any as string;
|
||||
^
|
||||
source.ts constant.numeric.decimal.ts
|
||||
^
|
||||
source.ts
|
||||
^^
|
||||
source.ts keyword.control.as.ts
|
||||
^
|
||||
source.ts
|
||||
^^^
|
||||
source.ts support.type.primitive.ts
|
||||
^
|
||||
source.ts
|
||||
^^
|
||||
source.ts keyword.control.as.ts
|
||||
^
|
||||
source.ts
|
||||
^^^^^^
|
||||
source.ts support.type.primitive.ts
|
||||
^
|
||||
source.ts punctuation.terminator.statement.ts
|
|
@ -0,0 +1 @@
|
|||
0 as any as string;
|
Загрузка…
Ссылка в новой задаче