|
167 | 167 | "match": "(mod)\\s+((?:r#(?!crate|[Ss]elf|super))?[a-z][A-Za-z0-9_]*)",
|
168 | 168 | "captures": {
|
169 | 169 | "1": {
|
170 |
| - "name": "keyword.control.rust" |
| 170 | + "name": "storage.type.rust" |
171 | 171 | },
|
172 | 172 | "2": {
|
173 | 173 | "name": "entity.name.module.rust"
|
|
180 | 180 | "begin": "\\b(extern)\\s+(crate)",
|
181 | 181 | "beginCaptures": {
|
182 | 182 | "1": {
|
183 |
| - "name": "keyword.control.rust" |
| 183 | + "name": "storage.type.rust" |
184 | 184 | },
|
185 | 185 | "2": {
|
186 | 186 | "name": "keyword.other.crate.rust"
|
|
213 | 213 | "begin": "\\b(use)\\s",
|
214 | 214 | "beginCaptures": {
|
215 | 215 | "1": {
|
216 |
| - "name": "keyword.control.rust" |
| 216 | + "name": "keyword.other.rust" |
217 | 217 | }
|
218 | 218 | },
|
219 | 219 | "end": ";",
|
|
342 | 342 | "match": "\\b(const)\\s+([A-Z][A-Za-z0-9_]*)\\b",
|
343 | 343 | "captures": {
|
344 | 344 | "1": {
|
345 |
| - "name": "keyword.control.rust" |
| 345 | + "name": "storage.type.rust" |
346 | 346 | },
|
347 | 347 | "2": {
|
348 | 348 | "name": "constant.other.caps.rust"
|
|
450 | 450 | "begin": "\\b(fn)\\s+((?:r#(?!crate|[Ss]elf|super))?[A-Za-z0-9_]+)((\\()|(<))",
|
451 | 451 | "beginCaptures": {
|
452 | 452 | "1": {
|
453 |
| - "name": "keyword.control.fn.rust" |
| 453 | + "name": "keyword.other.fn.rust" |
454 | 454 | },
|
455 | 455 | "2": {
|
456 | 456 | "name": "entity.name.function.rust"
|
|
643 | 643 | {
|
644 | 644 | "comment": "control flow keywords",
|
645 | 645 | "name": "keyword.control.rust",
|
646 |
| - "match": "\\b(async|await|break|continue|do|else|for|if|loop|match|move|return|try|where|while|yield)\\b" |
| 646 | + "match": "\\b(await|break|continue|do|else|for|if|loop|match|return|try|while|yield)\\b" |
647 | 647 | },
|
648 | 648 | {
|
649 | 649 | "comment": "storage keywords",
|
|
658 | 658 | {
|
659 | 659 | "comment": "other keywords",
|
660 | 660 | "name": "keyword.other.rust",
|
661 |
| - "match": "\\b(as|become|box|dyn|final|impl|in|override|priv|pub|ref|typeof|union|unsafe|unsized|use|virtual)\\b" |
| 661 | + "match": "\\b(as|async|become|box|dyn|move|final|impl|in|override|priv|pub|ref|typeof|union|unsafe|unsized|use|virtual|where)\\b" |
662 | 662 | },
|
663 | 663 | {
|
664 | 664 | "comment": "fn",
|
|
0 commit comments