Add some more semantic token to textmate grammar mapping

This commit is contained in:
Lukas Wirth 2021-12-03 22:16:57 +01:00
parent 90e9a49cb9
commit d74894abe2

View File

@ -1318,26 +1318,26 @@
"attribute": [
"meta.attribute.rust"
],
"function.attribute": [
"entity.name.function.attribute.rust"
],
"boolean": [
"constant.language.boolean.rust"
],
"builtinType": [
"support.type.primitive.rust"
],
"lifetime": [
"storage.modifier.lifetime.rust"
"constParameter": [
"constant.other.caps.rust"
],
"typeAlias": [
"entity.name.type.typeAlias.rust"
"enum": [
"entity.name.type.enum.rust"
],
"union": [
"entity.name.type.union.rust"
"formatSpecifier": [
"punctuation.section.embedded.rust"
],
"struct": [
"entity.name.type.struct.rust"
"function": [
"entity.name.function.rust"
],
"interface": [
"entity.name.type.trait.rust"
],
"keyword": [
"keyword.other.rust"
@ -1345,12 +1345,27 @@
"keyword.controlFlow": [
"keyword.control.rust"
],
"lifetime": [
"storage.modifier.lifetime.rust"
],
"method": [
"entity.name.function.rust"
],
"struct": [
"entity.name.type.struct.rust"
],
"typeAlias": [
"entity.name.type.declaration.rust"
],
"union": [
"entity.name.type.union.rust"
],
"variable": [
"variable.other.rust"
],
"variable.constant": [
"variable.other.constant.rust"
],
"formatSpecifier": [
"punctuation.section.embedded.rust"
],
"*.mutable": [
"markup.underline"
]