Skip to content

Commit b30fb9e

Browse files
Merge #4436
4436: Use .rust suffix on scopes r=matklad a=georgewfraser This PR should have no effect on people using any of the default themes, but it is possible there are people with custom themes that rely on the .rust suffix on textmate scopes, which I neglected to use consistently in #4397. Co-authored-by: George Fraser <[email protected]>
2 parents 93eae65 + 57c52bd commit b30fb9e

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

editors/code/package.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -595,34 +595,34 @@
595595
"language": "rust",
596596
"scopes": {
597597
"attribute": [
598-
"meta.attribute"
598+
"meta.attribute.rust"
599599
],
600600
"builtinType": [
601-
"support.type.primitive"
601+
"support.type.primitive.rust"
602602
],
603603
"lifetime": [
604604
"storage.modifier.lifetime.rust"
605605
],
606606
"typeAlias": [
607-
"entity.name.type.typeAlias"
607+
"entity.name.type.typeAlias.rust"
608608
],
609609
"union": [
610-
"entity.name.type.union"
610+
"entity.name.type.union.rust"
611611
],
612612
"struct": [
613-
"entity.name.type.struct"
613+
"entity.name.type.struct.rust"
614614
],
615615
"keyword": [
616-
"keyword.other"
616+
"keyword.other.rust"
617617
],
618618
"keyword.controlFlow": [
619-
"keyword.control"
619+
"keyword.control.rust"
620620
],
621621
"variable.constant": [
622-
"variable.other.constant"
622+
"variable.other.constant.rust"
623623
],
624624
"formatSpecifier": [
625-
"punctuation.section.embedded"
625+
"punctuation.section.embedded.rust"
626626
]
627627
}
628628
}

editors/code/rust.tmGrammar.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -597,7 +597,7 @@
597597
},
598598
"core_types": {
599599
"comment": "Built-in/core type",
600-
"name": "support.type.primitive",
600+
"name": "support.type.primitive.rust",
601601
"match": "\\b(bool|char|usize|isize|u8|u16|u32|u64|u128|i8|i16|i32|i64|i128|f32|f64|str|Self)\\b"
602602
},
603603
"core_vars": {

0 commit comments

Comments
 (0)