mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Use builtin scopes more
This commit is contained in:
parent
f3fe6561c0
commit
fe435ffb27
2 changed files with 2 additions and 11 deletions
|
@ -40,7 +40,7 @@ macro_rules! define_semantic_token_types {
|
||||||
define_semantic_token_types![
|
define_semantic_token_types![
|
||||||
(ATTRIBUTE, "attribute"),
|
(ATTRIBUTE, "attribute"),
|
||||||
(BOOLEAN, "boolean"),
|
(BOOLEAN, "boolean"),
|
||||||
(BUILTIN_TYPE, "builtinType"),
|
(BUILTIN_TYPE, "type.defaultLibrary"),
|
||||||
(ESCAPE_SEQUENCE, "escapeSequence"),
|
(ESCAPE_SEQUENCE, "escapeSequence"),
|
||||||
(FORMAT_SPECIFIER, "formatSpecifier"),
|
(FORMAT_SPECIFIER, "formatSpecifier"),
|
||||||
(GENERIC, "generic"),
|
(GENERIC, "generic"),
|
||||||
|
@ -70,7 +70,7 @@ macro_rules! define_semantic_token_modifiers {
|
||||||
}
|
}
|
||||||
|
|
||||||
define_semantic_token_modifiers![
|
define_semantic_token_modifiers![
|
||||||
(CONSTANT, "constant"),
|
(CONSTANT, "readonly"),
|
||||||
(CONTROL_FLOW, "controlFlow"),
|
(CONTROL_FLOW, "controlFlow"),
|
||||||
(INJECTED, "injected"),
|
(INJECTED, "injected"),
|
||||||
(MUTABLE, "mutable"),
|
(MUTABLE, "mutable"),
|
||||||
|
|
|
@ -939,9 +939,6 @@
|
||||||
{
|
{
|
||||||
"language": "rust",
|
"language": "rust",
|
||||||
"scopes": {
|
"scopes": {
|
||||||
"macro": [
|
|
||||||
"entity.name.function.macro.rust"
|
|
||||||
],
|
|
||||||
"attribute": [
|
"attribute": [
|
||||||
"meta.attribute.rust"
|
"meta.attribute.rust"
|
||||||
],
|
],
|
||||||
|
@ -951,9 +948,6 @@
|
||||||
"boolean": [
|
"boolean": [
|
||||||
"constant.language.boolean.rust"
|
"constant.language.boolean.rust"
|
||||||
],
|
],
|
||||||
"builtinType": [
|
|
||||||
"support.type.primitive.rust"
|
|
||||||
],
|
|
||||||
"lifetime": [
|
"lifetime": [
|
||||||
"storage.modifier.lifetime.rust"
|
"storage.modifier.lifetime.rust"
|
||||||
],
|
],
|
||||||
|
@ -972,9 +966,6 @@
|
||||||
"keyword.controlFlow": [
|
"keyword.controlFlow": [
|
||||||
"keyword.control.rust"
|
"keyword.control.rust"
|
||||||
],
|
],
|
||||||
"variable.constant": [
|
|
||||||
"variable.other.constant.rust"
|
|
||||||
],
|
|
||||||
"formatSpecifier": [
|
"formatSpecifier": [
|
||||||
"punctuation.section.embedded.rust"
|
"punctuation.section.embedded.rust"
|
||||||
],
|
],
|
||||||
|
|
Loading…
Reference in a new issue