mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 21:28:51 +00:00
Add some more semantic token to textmate grammar mapping
This commit is contained in:
parent
90e9a49cb9
commit
d74894abe2
1 changed files with 29 additions and 14 deletions
|
@ -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"
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in a new issue