|
14 | 14 | { |
15 | 15 | "include": "#directives" |
16 | 16 | }, |
| 17 | + { |
| 18 | + "include": "#generic-params" |
| 19 | + }, |
17 | 20 | { |
18 | 21 | "include": "#keywords" |
19 | 22 | }, |
|
264 | 267 | }, |
265 | 268 | { |
266 | 269 | "name": "keyword.operator.usecode", |
267 | | - "match": "(?:!|&|\\-|\\+|<|>|\\*|/|%|=|\\.|,|;|:|\\(|\\)|\\[|\\]|\\{|\\}|@)" |
| 270 | + "match": "(?:!|&|\\-|\\+|\\*|/|%|=|\\.|,|;|:|@)" |
| 271 | + }, |
| 272 | + { |
| 273 | + "name": "punctuation.section.parens.begin.bracket.round.usecode", |
| 274 | + "match": "\\(" |
| 275 | + }, |
| 276 | + { |
| 277 | + "name": "punctuation.section.parens.end.bracket.round.usecode", |
| 278 | + "match": "\\)" |
| 279 | + }, |
| 280 | + { |
| 281 | + "name": "punctuation.section.block.begin.bracket.square.usecode", |
| 282 | + "match": "\\[" |
| 283 | + }, |
| 284 | + { |
| 285 | + "name": "punctuation.section.block.end.bracket.square.usecode", |
| 286 | + "match": "\\]" |
| 287 | + }, |
| 288 | + { |
| 289 | + "name": "punctuation.section.block.begin.bracket.curly.usecode", |
| 290 | + "match": "\\{" |
| 291 | + }, |
| 292 | + { |
| 293 | + "name": "punctuation.section.block.end.bracket.curly.usecode", |
| 294 | + "match": "\\}" |
268 | 295 | }, |
269 | 296 | { |
270 | 297 | "name": "keyword.operator.usecode", |
|
324 | 351 | } |
325 | 352 | ] |
326 | 353 | }, |
| 354 | + "generic-params": { |
| 355 | + "name": "meta.generic-parameters.usecode", |
| 356 | + "begin": "(\\b(?:class|struct)\\b)(\\s*)(<)", |
| 357 | + "beginCaptures": { |
| 358 | + "1": { "name": "storage.type.usecode" }, |
| 359 | + "3": { "name": "punctuation.section.angle-brackets.begin.template.definition.usecode" } |
| 360 | + }, |
| 361 | + "end": ">", |
| 362 | + "endCaptures": { |
| 363 | + "0": { "name": "punctuation.section.angle-brackets.end.template.definition.usecode" } |
| 364 | + }, |
| 365 | + "patterns": [ |
| 366 | + { |
| 367 | + "name": "entity.name.type.generic.usecode", |
| 368 | + "match": "\\s*([A-Za-z_][A-Za-z0-9_]*)\\s*" |
| 369 | + }, |
| 370 | + { "include": "#comments" } |
| 371 | + ] |
| 372 | + }, |
327 | 373 | "idents": { |
328 | 374 | "patterns": [ |
329 | 375 | { |
|
0 commit comments