This commit is contained in:
Sheetal Nandi 2016-08-31 17:09:03 -07:00
Родитель a883c3630e
Коммит 0178496f5b
6 изменённых файлов: 162 добавлений и 10 удалений

Просмотреть файл

@ -703,12 +703,12 @@ repository:
patterns:
- include: '#expression-operator'
- include: '#type'
- include: '#string'
- include: '#comment'
type:
name: meta.type.ts
patterns:
- include: '#string'
- include: '#type-primitive'
- include: '#type-parameters'
- include: '#type-tuple'

Просмотреть файл

@ -3396,6 +3396,10 @@
<string>meta.type.ts</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#string</string>
</dict>
<dict>
<key>include</key>
<string>#type-primitive</string>
@ -3448,10 +3452,6 @@
<key>include</key>
<string>#type</string>
</dict>
<dict>
<key>include</key>
<string>#string</string>
</dict>
<dict>
<key>include</key>
<string>#comment</string>

Просмотреть файл

@ -707,12 +707,12 @@ repository:
patterns:
- include: '#expression-operator'
- include: '#type'
- include: '#string'
- include: '#comment'
type:
name: meta.type.tsx
patterns:
- include: '#string'
- include: '#type-primitive'
- include: '#type-parameters'
- include: '#type-tuple'

Просмотреть файл

@ -3786,6 +3786,10 @@
<string>meta.type.tsx</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#string</string>
</dict>
<dict>
<key>include</key>
<string>#type-primitive</string>
@ -3838,10 +3842,6 @@
<key>include</key>
<string>#type</string>
</dict>
<dict>
<key>include</key>
<string>#string</string>
</dict>
<dict>
<key>include</key>
<string>#comment</string>

Просмотреть файл

@ -0,0 +1,148 @@
original file
-----------------------------------
export type BreakpointType = 'line' | 'call' | 'return' | 'exception' | 'conditional' | 'watch'
interface Test {
type: 'line' | 'call' | 'return';
}
-----------------------------------
>export type BreakpointType = 'line' | 'call' | 'return' | 'exception' | 'conditional' | 'watch'
^^^^^^
source.ts meta.type.declaration.ts keyword.control.export.ts
^
source.ts meta.type.declaration.ts
^^^^
source.ts meta.type.declaration.ts storage.type.type.ts
^
source.ts meta.type.declaration.ts
^^^^^^^^^^^^^^
source.ts meta.type.declaration.ts entity.name.type.ts
^
source.ts meta.type.declaration.ts
^^
source.ts meta.type.declaration.ts keyword.operator.assignment.ts
^
source.ts meta.type.declaration.ts string.quoted.single.ts punctuation.definition.string.begin.ts
^^^^
source.ts meta.type.declaration.ts string.quoted.single.ts
^
source.ts meta.type.declaration.ts string.quoted.single.ts punctuation.definition.string.end.ts
^
source.ts meta.type.declaration.ts
^
source.ts meta.type.declaration.ts keyword.operator.type.ts
^
source.ts meta.type.declaration.ts
^
source.ts meta.type.declaration.ts string.quoted.single.ts punctuation.definition.string.begin.ts
^^^^
source.ts meta.type.declaration.ts string.quoted.single.ts
^
source.ts meta.type.declaration.ts string.quoted.single.ts punctuation.definition.string.end.ts
^
source.ts meta.type.declaration.ts
^
source.ts meta.type.declaration.ts keyword.operator.type.ts
^
source.ts meta.type.declaration.ts
^
source.ts meta.type.declaration.ts string.quoted.single.ts punctuation.definition.string.begin.ts
^^^^^^
source.ts meta.type.declaration.ts string.quoted.single.ts
^
source.ts meta.type.declaration.ts string.quoted.single.ts punctuation.definition.string.end.ts
^
source.ts meta.type.declaration.ts
^
source.ts meta.type.declaration.ts keyword.operator.type.ts
^
source.ts meta.type.declaration.ts
^
source.ts meta.type.declaration.ts string.quoted.single.ts punctuation.definition.string.begin.ts
^^^^^^^^^
source.ts meta.type.declaration.ts string.quoted.single.ts
^
source.ts meta.type.declaration.ts string.quoted.single.ts punctuation.definition.string.end.ts
^
source.ts meta.type.declaration.ts
^
source.ts meta.type.declaration.ts keyword.operator.type.ts
^
source.ts meta.type.declaration.ts
^
source.ts meta.type.declaration.ts string.quoted.single.ts punctuation.definition.string.begin.ts
^^^^^^^^^^^
source.ts meta.type.declaration.ts string.quoted.single.ts
^
source.ts meta.type.declaration.ts string.quoted.single.ts punctuation.definition.string.end.ts
^
source.ts meta.type.declaration.ts
^
source.ts meta.type.declaration.ts keyword.operator.type.ts
^
source.ts meta.type.declaration.ts
^
source.ts meta.type.declaration.ts string.quoted.single.ts punctuation.definition.string.begin.ts
^^^^^
source.ts meta.type.declaration.ts string.quoted.single.ts
^
source.ts meta.type.declaration.ts string.quoted.single.ts punctuation.definition.string.end.ts
^
source.ts meta.type.declaration.ts
>interface Test {
^^^^^^^^^
source.ts meta.declaration.object.ts storage.type.interface.ts
^
source.ts meta.declaration.object.ts
^^^^
source.ts meta.declaration.object.ts meta.object.name.ts entity.name.class.ts
^
source.ts meta.declaration.object.ts
^
source.ts meta.declaration.object.ts meta.object.body.ts punctuation.definition.block.ts
^^
source.ts meta.declaration.object.ts meta.object.body.ts
> type: 'line' | 'call' | 'return';
^^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts
^^^^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts variable.object.property.ts
^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.type.annotation.ts
^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.type.annotation.ts
^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.type.annotation.ts string.quoted.single.ts punctuation.definition.string.begin.ts
^^^^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.type.annotation.ts string.quoted.single.ts
^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.type.annotation.ts string.quoted.single.ts punctuation.definition.string.end.ts
^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.type.annotation.ts
^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.type.annotation.ts keyword.operator.type.ts
^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.type.annotation.ts
^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.type.annotation.ts string.quoted.single.ts punctuation.definition.string.begin.ts
^^^^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.type.annotation.ts string.quoted.single.ts
^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.type.annotation.ts string.quoted.single.ts punctuation.definition.string.end.ts
^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.type.annotation.ts
^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.type.annotation.ts keyword.operator.type.ts
^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.type.annotation.ts
^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.type.annotation.ts string.quoted.single.ts punctuation.definition.string.begin.ts
^^^^^^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.type.annotation.ts string.quoted.single.ts
^
source.ts meta.declaration.object.ts meta.object.body.ts meta.field.declaration.ts meta.type.annotation.ts string.quoted.single.ts punctuation.definition.string.end.ts
^^^
source.ts meta.declaration.object.ts meta.object.body.ts
>}
^
source.ts meta.declaration.object.ts meta.object.body.ts punctuation.definition.block.ts

4
tests/cases/Issue114.ts Normal file
Просмотреть файл

@ -0,0 +1,4 @@
export type BreakpointType = 'line' | 'call' | 'return' | 'exception' | 'conditional' | 'watch'
interface Test {
type: 'line' | 'call' | 'return';
}