File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -208,6 +208,25 @@ describe("Attributes", () => {
208
208
Token . Punctuation . CloseBracket ] ) ;
209
209
} ) ;
210
210
211
+ it ( "Generic attributes should be highlighted multiple type parameters with regular arguments" , async ( ) => {
212
+
213
+ const input = `[Foo<T1, T2>(true)]` ;
214
+ const tokens = await tokenize ( input ) ;
215
+
216
+ tokens . should . deep . equal ( [
217
+ Token . Punctuation . OpenBracket ,
218
+ Token . Type ( "Foo" ) ,
219
+ Token . Punctuation . TypeParameter . Begin ,
220
+ Token . Type ( "T1" ) ,
221
+ Token . Punctuation . Comma ,
222
+ Token . Type ( "T2" ) ,
223
+ Token . Punctuation . TypeParameter . End ,
224
+ Token . Punctuation . OpenParen ,
225
+ Token . Literal . Boolean . True ,
226
+ Token . Punctuation . CloseParen ,
227
+ Token . Punctuation . CloseBracket ] ) ;
228
+ } ) ;
229
+
211
230
it ( "Generic attributes should be highlighted empty" , async ( ) => {
212
231
213
232
const input = `[Foo<>]` ;
You can’t perform that action at this time.
0 commit comments