Родитель
ccdbd2ec06
Коммит
91294ab634
|
@ -2900,6 +2900,11 @@ repository:
|
|||
captures:
|
||||
'1': { name: punctuation.definition.block.tag.jsdoc }
|
||||
- include: '#inline-tags'
|
||||
# any tag
|
||||
- match: ((@)(?:{{identifier}}))(?=\s+)
|
||||
captures:
|
||||
'1': { name: storage.type.class.jsdoc }
|
||||
'2': { name: punctuation.definition.block.tag.jsdoc }
|
||||
|
||||
brackets:
|
||||
# Balanced brackets (square or curly)
|
||||
|
|
|
@ -8448,6 +8448,23 @@
|
|||
<key>include</key>
|
||||
<string>#inline-tags</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>((@)(?:[_$[:alpha:]][_$[:alnum:]]*))(?=\s+)</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.type.class.jsdoc</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.block.tag.jsdoc</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>brackets</key>
|
||||
|
|
|
@ -8394,6 +8394,23 @@
|
|||
<key>include</key>
|
||||
<string>#inline-tags</string>
|
||||
</dict>
|
||||
<dict>
|
||||
<key>match</key>
|
||||
<string>((@)(?:[_$[:alpha:]][_$[:alnum:]]*))(?=\s+)</string>
|
||||
<key>captures</key>
|
||||
<dict>
|
||||
<key>1</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>storage.type.class.jsdoc</string>
|
||||
</dict>
|
||||
<key>2</key>
|
||||
<dict>
|
||||
<key>name</key>
|
||||
<string>punctuation.definition.block.tag.jsdoc</string>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
</array>
|
||||
</dict>
|
||||
<key>brackets</key>
|
||||
|
|
|
@ -0,0 +1,46 @@
|
|||
original file
|
||||
-----------------------------------
|
||||
/**
|
||||
* @privateRemarks
|
||||
* Bla bla bla.
|
||||
*/
|
||||
const foo = 1
|
||||
-----------------------------------
|
||||
|
||||
Grammar: TypeScript.tmLanguage
|
||||
-----------------------------------
|
||||
>/**
|
||||
^^^
|
||||
source.ts comment.block.documentation.ts punctuation.definition.comment.ts
|
||||
> * @privateRemarks
|
||||
^^^
|
||||
source.ts comment.block.documentation.ts
|
||||
^
|
||||
source.ts comment.block.documentation.ts storage.type.class.jsdoc punctuation.definition.block.tag.jsdoc
|
||||
^^^^^^^^^^^^^^
|
||||
source.ts comment.block.documentation.ts storage.type.class.jsdoc
|
||||
^^
|
||||
source.ts comment.block.documentation.ts
|
||||
> * Bla bla bla.
|
||||
^^^^^^^^^^^^^^^^
|
||||
source.ts comment.block.documentation.ts
|
||||
> */
|
||||
^
|
||||
source.ts comment.block.documentation.ts
|
||||
^^
|
||||
source.ts comment.block.documentation.ts punctuation.definition.comment.ts
|
||||
>const foo = 1
|
||||
^^^^^
|
||||
source.ts meta.var.expr.ts storage.type.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts
|
||||
^^^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.definition.variable.ts variable.other.constant.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts keyword.operator.assignment.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts
|
||||
^
|
||||
source.ts meta.var.expr.ts constant.numeric.decimal.ts
|
|
@ -0,0 +1,5 @@
|
|||
/**
|
||||
* @privateRemarks
|
||||
* Bla bla bla.
|
||||
*/
|
||||
const foo = 1
|
Загрузка…
Ссылка в новой задаче