Fixing Issues with object-heritage clause: Made tests more comprehensive, Replaced space characters with word breaks.

This commit is contained in:
Anubha Mathur 2016-02-24 16:17:07 -08:00
Родитель a6fa1093b2
Коммит 44cc86b2e8
5 изменённых файлов: 29 добавлений и 9 удалений

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

@ -100,7 +100,7 @@ repository:
object-heritage-type:
name: meta.object.heritage.parent.ts
match: '(?:\b([a-zA-Z_$][\w$]*)\b)'
match: '(?:\s*([a-zA-Z_$][\w$]*)\b)'
captures:
'1': { name: storage.type.ts }

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

@ -1050,7 +1050,7 @@
</dict>
</dict>
<key>match</key>
<string>(?:\b([a-zA-Z_$][\w$]*)\b)</string>
<string>(?:\s*([a-zA-Z_$][\w$]*)\b)</string>
<key>name</key>
<string>meta.object.heritage.parent.ts</string>
</dict>

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

@ -102,7 +102,7 @@ repository:
object-heritage-type:
name: meta.object.heritage.parent.tsx
match: '(?:\b([a-zA-Z_$][\w$]*)\b)'
match: '(?:\s*([a-zA-Z_$][\w$]*)\b)'
captures:
'1': { name: storage.type.tsx }

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

@ -1416,7 +1416,7 @@
</dict>
</dict>
<key>match</key>
<string>(?:\b([a-zA-Z_$][\w$]*)\b)</string>
<string>(?:\s*([a-zA-Z_$][\w$]*)\b)</string>
<key>name</key>
<string>meta.object.heritage.parent.tsx</string>
</dict>

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

@ -1,7 +1,27 @@
[1, 8]: source.ts meta.declaration.object.ts storage.type.ts
[1, 14]: source.ts meta.declaration.object.ts meta.object.name.ts entity.name.class.ts
[1, 25]: source.ts meta.declaration.object.ts meta.object.heritage.ts keyword.other.ts
[1, 37]: source.ts meta.declaration.object.ts meta.object.heritage.ts meta.object.heritage.parent.ts storage.type.ts
[1, 41]: source.ts meta.declaration.object.ts meta.object.heritage.ts meta.object.heritage.ts keyword.other.ts
[1, 56]: source.ts meta.declaration.object.ts meta.object.heritage.ts meta.object.heritage.ts meta.object.heritage.parent.ts storage.type.ts
[1, 16]: source.ts meta.declaration.object.ts meta.object.heritage.ts keyword.other.ts
[1, 27]: source.ts meta.declaration.object.ts meta.object.heritage.ts comment.block.ts
[1, 30]: source.ts meta.declaration.object.ts meta.object.heritage.ts meta.object.heritage.parent.ts storage.type.ts
[1, 32]: source.ts meta.declaration.object.ts meta.object.heritage.ts meta.object.heritage.parent.ts storage.type.ts
[1, 47]: source.ts meta.declaration.object.ts meta.object.heritage.ts meta.object.heritage.parent.ts storage.type.ts
[2, 2]: source.ts meta.declaration.object.ts meta.object.body.ts
[4, 1]: source.ts
[4, 1]: source.ts
[7, 14]: source.ts meta.declaration.object.ts meta.object.name.ts entity.name.class.ts
[7, 16]: source.ts meta.declaration.object.ts meta.object.heritage.ts keyword.other.ts
[7, 31]: source.ts meta.declaration.object.ts meta.object.heritage.ts meta.object.heritage.parent.ts
[7, 34]: source.ts meta.declaration.object.ts meta.object.heritage.ts meta.object.heritage.parent.ts storage.type.ts
[7, 46]: source.ts meta.declaration.object.ts meta.object.heritage.ts meta.object.heritage.parent.ts storage.type.ts
[7, 48]: source.ts meta.declaration.object.ts meta.object.heritage.ts
[8, 2]: source.ts meta.declaration.object.ts meta.object.body.ts
[10, 1]: source.ts
[12, 14]: source.ts meta.declaration.object.ts meta.object.name.ts entity.name.class.ts
[12, 16]: source.ts meta.declaration.object.ts meta.object.heritage.ts keyword.other.ts
[12, 28]: source.ts meta.declaration.object.ts meta.object.heritage.ts meta.object.heritage.parent.ts storage.type.ts
[12, 30]: source.ts meta.declaration.object.ts meta.object.heritage.ts meta.object.heritage.parent.ts
[12, 43]: source.ts meta.declaration.object.ts meta.object.heritage.ts comment.block.ts
[12, 46]: source.ts meta.declaration.object.ts meta.object.heritage.ts meta.object.heritage.parent.ts storage.type.ts
[12, 51]: source.ts meta.declaration.object.ts meta.object.heritage.ts meta.object.heritage.parent.ts storage.type.ts
[12, 56]: source.ts meta.declaration.object.ts meta.object.heritage.ts meta.object.heritage.parent.ts storage.type.ts
[13, 2]: source.ts meta.declaration.object.ts meta.object.body.ts
[15, 1]: source.ts