File tree 3 files changed +75
-0
lines changed
3 files changed +75
-0
lines changed Original file line number Diff line number Diff line change @@ -3028,6 +3028,17 @@ repository:
3028
3028
# patterns:
3029
3029
# - name: punctuation.delimiter.object.comma.jsdoc
3030
3030
# match: ','
3031
+ # @template {Constraint} Foo
3032
+ - begin : (?x)((@)template)\s+(?={)
3033
+ beginCaptures :
3034
+ ' 1 ' : { name: storage.type.class.jsdoc }
3035
+ ' 2 ' : { name: punctuation.definition.block.tag.jsdoc }
3036
+ end : (?=\s|\*/|[^{}\[\]A-Za-z_$])
3037
+ patterns :
3038
+ - include : ' #jsdoctype'
3039
+ - name : variable.other.jsdoc
3040
+ # One valid identifier
3041
+ match : ([A-Za-z_$][\w$.\[\]]*)
3031
3042
# Tags followed by an identifier token
3032
3043
# - @<tag> identifier
3033
3044
- match : |-
Original file line number Diff line number Diff line change 9096
9096
</dict >
9097
9097
</dict >
9098
9098
</dict >
9099
+ <dict >
9100
+ <key >begin </key >
9101
+ <string >(?x)((@)template)\s+(?={) </string >
9102
+ <key >beginCaptures </key >
9103
+ <dict >
9104
+ <key >1 </key >
9105
+ <dict >
9106
+ <key >name </key >
9107
+ <string >storage.type.class.jsdoc </string >
9108
+ </dict >
9109
+ <key >2 </key >
9110
+ <dict >
9111
+ <key >name </key >
9112
+ <string >punctuation.definition.block.tag.jsdoc </string >
9113
+ </dict >
9114
+ </dict >
9115
+ <key >end </key >
9116
+ <string >(?=\s|\*/|[^{}\[\]A-Za-z_$]) </string >
9117
+ <key >patterns </key >
9118
+ <array >
9119
+ <dict >
9120
+ <key >include </key >
9121
+ <string >#jsdoctype </string >
9122
+ </dict >
9123
+ <dict >
9124
+ <key >name </key >
9125
+ <string >variable.other.jsdoc </string >
9126
+ <key >match </key >
9127
+ <string >([A-Za-z_$][\w$.\[\]]*) </string >
9128
+ </dict >
9129
+ </array >
9130
+ </dict >
9099
9131
<dict >
9100
9132
<key >match </key >
9101
9133
<string >(?x)
Original file line number Diff line number Diff line change 9044
9044
</dict >
9045
9045
</dict >
9046
9046
</dict >
9047
+ <dict >
9048
+ <key >begin </key >
9049
+ <string >(?x)((@)template)\s+(?={) </string >
9050
+ <key >beginCaptures </key >
9051
+ <dict >
9052
+ <key >1 </key >
9053
+ <dict >
9054
+ <key >name </key >
9055
+ <string >storage.type.class.jsdoc </string >
9056
+ </dict >
9057
+ <key >2 </key >
9058
+ <dict >
9059
+ <key >name </key >
9060
+ <string >punctuation.definition.block.tag.jsdoc </string >
9061
+ </dict >
9062
+ </dict >
9063
+ <key >end </key >
9064
+ <string >(?=\s|\*/|[^{}\[\]A-Za-z_$]) </string >
9065
+ <key >patterns </key >
9066
+ <array >
9067
+ <dict >
9068
+ <key >include </key >
9069
+ <string >#jsdoctype </string >
9070
+ </dict >
9071
+ <dict >
9072
+ <key >name </key >
9073
+ <string >variable.other.jsdoc </string >
9074
+ <key >match </key >
9075
+ <string >([A-Za-z_$][\w$.\[\]]*) </string >
9076
+ </dict >
9077
+ </array >
9078
+ </dict >
9047
9079
<dict >
9048
9080
<key >match </key >
9049
9081
<string >(?x)
You can’t perform that action at this time.
0 commit comments