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