Skip to content

Commit 829b120

Browse files
committed
semantic tokens
1 parent 0bcf81c commit 829b120

1 file changed

Lines changed: 76 additions & 0 deletions

File tree

package.json

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,82 @@
4949
}
5050
},
5151
"contributes": {
52+
"semanticTokenTypes": [
53+
{
54+
"id": "atom",
55+
"superType": "enumMember",
56+
"description": "Elixir atom literal"
57+
},
58+
{
59+
"id": "attribute",
60+
"superType": "property",
61+
"description": "Elixir module attribute name"
62+
},
63+
{
64+
"id": "typespec",
65+
"superType": "function",
66+
"description": "Function name inside an Elixir @spec/@callback"
67+
},
68+
{
69+
"id": "sigil",
70+
"superType": "macro",
71+
"description": "Elixir sigil head (~r, ~w, ~FOO)"
72+
},
73+
{
74+
"id": "capture",
75+
"superType": "variable",
76+
"description": "Elixir capture argument or function capture"
77+
}
78+
],
79+
"semanticTokenScopes": [
80+
{
81+
"language": "elixir",
82+
"scopes": {
83+
"atom": [
84+
"constant.language.symbol.elixir",
85+
"constant.language.symbol.single-quoted.elixir",
86+
"constant.language.symbol.double-quoted.elixir"
87+
],
88+
"attribute": [
89+
"variable.other.constant.elixir"
90+
],
91+
"sigil": [
92+
"punctuation.definition.string.begin.elixir",
93+
"punctuation.section.regexp.begin.elixir"
94+
],
95+
"capture": [
96+
"variable.other.anonymous.elixir",
97+
"entity.name.function.call.capture.elixir"
98+
],
99+
"typespec": [
100+
"entity.name.function.typespec.elixir"
101+
],
102+
"type": [
103+
"entity.name.function.typespec.elixir"
104+
],
105+
"function": [
106+
"entity.name.function.elixir",
107+
"entity.name.function.call.local.elixir",
108+
"entity.name.function.call.local.pipe.elixir"
109+
],
110+
"method": [
111+
"entity.name.function.call.dot.elixir"
112+
],
113+
"class": [
114+
"entity.name.type.module.elixir"
115+
],
116+
"namespace": [
117+
"entity.name.type.module.elixir"
118+
],
119+
"property": [
120+
"constant.language.symbol.elixir"
121+
],
122+
"number": [
123+
"constant.numeric.elixir"
124+
]
125+
}
126+
}
127+
],
52128
"mcpServerDefinitionProviders": [
53129
{
54130
"id": "elixirLS.mcp",

0 commit comments

Comments
 (0)