File tree Expand file tree Collapse file tree 5 files changed +90
-0
lines changed Expand file tree Collapse file tree 5 files changed +90
-0
lines changed Original file line number Diff line number Diff line change @@ -2900,6 +2900,11 @@ repository:
2900
2900
captures :
2901
2901
' 1 ' : { name: punctuation.definition.block.tag.jsdoc }
2902
2902
- include : ' #inline-tags'
2903
+ # any tag
2904
+ - match : ((@)(?:{{identifier}}))(?=\s+)
2905
+ captures :
2906
+ ' 1 ' : { name: storage.type.class.jsdoc }
2907
+ ' 2 ' : { name: punctuation.definition.block.tag.jsdoc }
2903
2908
2904
2909
brackets :
2905
2910
# Balanced brackets (square or curly)
Original file line number Diff line number Diff line change 8448
8448
<key >include </key >
8449
8449
<string >#inline-tags </string >
8450
8450
</dict >
8451
+ <dict >
8452
+ <key >match </key >
8453
+ <string >((@)(?:[_$[:alpha:]][_$[:alnum:]]*))(?=\s+) </string >
8454
+ <key >captures </key >
8455
+ <dict >
8456
+ <key >1 </key >
8457
+ <dict >
8458
+ <key >name </key >
8459
+ <string >storage.type.class.jsdoc </string >
8460
+ </dict >
8461
+ <key >2 </key >
8462
+ <dict >
8463
+ <key >name </key >
8464
+ <string >punctuation.definition.block.tag.jsdoc </string >
8465
+ </dict >
8466
+ </dict >
8467
+ </dict >
8451
8468
</array >
8452
8469
</dict >
8453
8470
<key >brackets </key >
Original file line number Diff line number Diff line change 8394
8394
<key >include </key >
8395
8395
<string >#inline-tags </string >
8396
8396
</dict >
8397
+ <dict >
8398
+ <key >match </key >
8399
+ <string >((@)(?:[_$[:alpha:]][_$[:alnum:]]*))(?=\s+) </string >
8400
+ <key >captures </key >
8401
+ <dict >
8402
+ <key >1 </key >
8403
+ <dict >
8404
+ <key >name </key >
8405
+ <string >storage.type.class.jsdoc </string >
8406
+ </dict >
8407
+ <key >2 </key >
8408
+ <dict >
8409
+ <key >name </key >
8410
+ <string >punctuation.definition.block.tag.jsdoc </string >
8411
+ </dict >
8412
+ </dict >
8413
+ </dict >
8397
8414
</array >
8398
8415
</dict >
8399
8416
<key >brackets </key >
Original file line number Diff line number Diff line change
1
+ original file
2
+ -----------------------------------
3
+ /**
4
+ * @privateRemarks
5
+ * Bla bla bla.
6
+ */
7
+ const foo = 1
8
+ -----------------------------------
9
+
10
+ Grammar: TypeScript.tmLanguage
11
+ -----------------------------------
12
+ >/**
13
+ ^^^
14
+ source.ts comment.block.documentation.ts punctuation.definition.comment.ts
15
+ > * @privateRemarks
16
+ ^^^
17
+ source.ts comment.block.documentation.ts
18
+ ^
19
+ source.ts comment.block.documentation.ts storage.type.class.jsdoc punctuation.definition.block.tag.jsdoc
20
+ ^^^^^^^^^^^^^^
21
+ source.ts comment.block.documentation.ts storage.type.class.jsdoc
22
+ ^^
23
+ source.ts comment.block.documentation.ts
24
+ > * Bla bla bla.
25
+ ^^^^^^^^^^^^^^^^
26
+ source.ts comment.block.documentation.ts
27
+ > */
28
+ ^
29
+ source.ts comment.block.documentation.ts
30
+ ^^
31
+ source.ts comment.block.documentation.ts punctuation.definition.comment.ts
32
+ >const foo = 1
33
+ ^^^^^
34
+ source.ts meta.var.expr.ts storage.type.ts
35
+ ^
36
+ source.ts meta.var.expr.ts
37
+ ^^^
38
+ source.ts meta.var.expr.ts meta.var-single-variable.expr.ts meta.definition.variable.ts variable.other.constant.ts
39
+ ^
40
+ source.ts meta.var.expr.ts meta.var-single-variable.expr.ts
41
+ ^
42
+ source.ts meta.var.expr.ts keyword.operator.assignment.ts
43
+ ^
44
+ source.ts meta.var.expr.ts
45
+ ^
46
+ source.ts meta.var.expr.ts constant.numeric.decimal.ts
Original file line number Diff line number Diff line change
1
+ /**
2
+ * @privateRemarks
3
+ * Bla bla bla.
4
+ */
5
+ const foo = 1
You can’t perform that action at this time.
0 commit comments