Родитель
82022168af
Коммит
23b94ac95d
|
@ -910,7 +910,7 @@ repository:
|
|||
beginCaptures:
|
||||
'1': { name: keyword.control.export.ts }
|
||||
'2': { name: keyword.control.import.ts }
|
||||
end: (?=;|$|^)
|
||||
end: (?<!{{lookBehindImport}})(?=;|$|^)
|
||||
patterns:
|
||||
- include: '#comment'
|
||||
- include: '#string'
|
||||
|
|
|
@ -2875,7 +2875,7 @@
|
|||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>(?=;|$|^)</string>
|
||||
<string>(?<!^import|[^\._$[:alnum:]]import)(?=;|$|^)</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
|
|
|
@ -2879,7 +2879,7 @@
|
|||
</dict>
|
||||
</dict>
|
||||
<key>end</key>
|
||||
<string>(?=;|$|^)</string>
|
||||
<string>(?<!^import|[^\._$[:alnum:]]import)(?=;|$|^)</string>
|
||||
<key>patterns</key>
|
||||
<array>
|
||||
<dict>
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
original file
|
||||
-----------------------------------
|
||||
import
|
||||
{
|
||||
Foo
|
||||
}
|
||||
from "foo"
|
||||
-----------------------------------
|
||||
|
||||
Grammar: TypeScript.tmLanguage
|
||||
-----------------------------------
|
||||
>import
|
||||
^^^^^^
|
||||
source.ts meta.import.ts keyword.control.import.ts
|
||||
>{
|
||||
^
|
||||
source.ts meta.import.ts meta.block.ts punctuation.definition.block.ts
|
||||
> Foo
|
||||
^^^^
|
||||
source.ts meta.import.ts meta.block.ts
|
||||
^^^
|
||||
source.ts meta.import.ts meta.block.ts variable.other.readwrite.alias.ts
|
||||
>}
|
||||
^
|
||||
source.ts meta.import.ts meta.block.ts punctuation.definition.block.ts
|
||||
>from "foo"
|
||||
^^^^
|
||||
source.ts meta.import.ts keyword.control.from.ts
|
||||
^
|
||||
source.ts meta.import.ts
|
||||
^
|
||||
source.ts meta.import.ts string.quoted.double.ts punctuation.definition.string.begin.ts
|
||||
^^^
|
||||
source.ts meta.import.ts string.quoted.double.ts
|
||||
^
|
||||
source.ts meta.import.ts string.quoted.double.ts punctuation.definition.string.end.ts
|
|
@ -0,0 +1,5 @@
|
|||
import
|
||||
{
|
||||
Foo
|
||||
}
|
||||
from "foo"
|
Загрузка…
Ссылка в новой задаче