Родитель
578dd5db70
Коммит
a733ed4c65
|
@ -7,6 +7,10 @@ uuid: ef98eb90-bf9b-11e4-bb52-0800200c9a66
|
|||
|
||||
patterns:
|
||||
- include: '#statements'
|
||||
- name: comment.line.shebang.ts
|
||||
match: \A(#!).*(?=$)
|
||||
captures:
|
||||
'1': { name: punctuation.definition.comment.ts }
|
||||
|
||||
repository:
|
||||
statements:
|
||||
|
|
|
@ -18,6 +18,20 @@
|
|||
<key>include</key>
|
||||
<string>#statements</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>comment.line.shebang.ts</string>
|
||||
<key>match</key>
|
||||
<string>\A(#!).*(?=$)</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.comment.ts</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</array>
|
||||
<key>repository</key>
|
||||
<dict>
|
||||
|
|
|
@ -18,6 +18,20 @@
|
|||
<key>include</key>
|
||||
<string>#statements</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>comment.line.shebang.ts</string>
|
||||
<key>match</key>
|
||||
<string>\A(#!).*(?=$)</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.comment.ts</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</array>
|
||||
<key>repository</key>
|
||||
<dict>
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
original file
|
||||
-----------------------------------
|
||||
#!/usr/bin/env node -r babel-register
|
||||
-----------------------------------
|
||||
|
||||
Grammar: TypeScript.tmLanguage
|
||||
-----------------------------------
|
||||
>#!/usr/bin/env node -r babel-register
|
||||
^^
|
||||
source.ts comment.line.shebang.ts punctuation.definition.comment.ts
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
source.ts comment.line.shebang.ts
|
|
@ -0,0 +1 @@
|
|||
#!/usr/bin/env node -r babel-register
|
Загрузка…
Ссылка в новой задаче