Skip to content

Commit 263ca4f

Browse files
committed
add semanticTokenScopes
1 parent 000e984 commit 263ca4f

File tree

1 file changed

+124
-4
lines changed

1 file changed

+124
-4
lines changed

package.json

Lines changed: 124 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -278,14 +278,13 @@
278278
},
279279
"emmylua.ls.start_parameters": {
280280
"type": "array",
281-
"default": [
282-
]
281+
"default": []
283282
},
284283
"emmylua.autoInsertTripleDash": {
285284
"type": "boolean",
286285
"default": true,
287286
"description": "%config.autoInsertTripleDash.description%"
288-
}
287+
}
289288
}
290289
},
291290
"configurationDefaults": {
@@ -303,7 +302,128 @@
303302
"url": "./syntaxes/schema.json"
304303
}
305304
],
306-
"colors": []
305+
"colors": [],
306+
"semanticTokenScopes": [
307+
{
308+
"language": "lua",
309+
"scopes": {
310+
"class": [
311+
"support.class.lua"
312+
],
313+
"class.declaration": [
314+
"support.class.lua"
315+
],
316+
"comment.documentation": [
317+
"storage.type.annotation.lua"
318+
],
319+
"event.static": [
320+
"support.class.lua"
321+
],
322+
"function": [
323+
"support.function.any-method.lua"
324+
],
325+
"function.declaration": [
326+
"entity.name.function.lua"
327+
],
328+
"function.defaultLibrary": [
329+
"support.function.lua"
330+
],
331+
"function.static": [
332+
"entity.name.function.lua"
333+
],
334+
"keyword": [
335+
"keyword.control.lua"
336+
],
337+
"keyword.async": [
338+
"entity.name.tag.lua"
339+
],
340+
"keyword.declaration": [
341+
"keyword.local.lua"
342+
],
343+
"keyword.documentation": [
344+
"storage.type.annotation.lua"
345+
],
346+
"keyword.readonly": [
347+
"constant.language.lua"
348+
],
349+
"macro": [
350+
"variable.lua"
351+
],
352+
"method": [
353+
"entity.name.function.lua"
354+
],
355+
"method.declaration": [
356+
"entity.name.function.lua"
357+
],
358+
"number": [
359+
"constant.numeric.float.lua"
360+
],
361+
"number.static": [
362+
"constant.numeric.integer.lua"
363+
],
364+
"operator": [
365+
"keyword.operator.lua"
366+
],
367+
"parameter.declaration": [
368+
"variable.parameter.lua"
369+
],
370+
"property": [
371+
"entity.other.attribute.lua"
372+
],
373+
"property.declaration": [
374+
"entity.other.property.lua"
375+
],
376+
"string": [
377+
"string.lua"
378+
],
379+
"string.deprecated": [
380+
"invalid.illegal.character.escape.lua"
381+
],
382+
"string.modification": [
383+
"constant.character.escape.lua"
384+
],
385+
"struct": [
386+
"string.tag.lua"
387+
],
388+
"struct.declaration": [
389+
"string.tag.lua"
390+
],
391+
"type": [
392+
"support.type.lua"
393+
],
394+
"type.modification": [
395+
"storage.type.generic.lua"
396+
],
397+
"type.readonly": [
398+
"storage.type.self.lua"
399+
],
400+
"typeParameter": [
401+
"string.tag.lua"
402+
],
403+
"variable": [
404+
"variable.other.lua"
405+
],
406+
"variable.abstract": [
407+
"variable.other.constant.lua"
408+
],
409+
"variable.declaration": [
410+
"variable.other.lua"
411+
],
412+
"variable.defaultLibrary": [
413+
"support.constant.lua"
414+
],
415+
"variable.definition": [
416+
"variable.language.self.lua"
417+
],
418+
"variable.global": [
419+
"variable.global.lua"
420+
],
421+
"variable.readonly": [
422+
"variable.other.constant.lua"
423+
]
424+
}
425+
}
426+
]
307427
},
308428
"scripts": {
309429
"vscode:prepublish": "npm run compile",

0 commit comments

Comments
 (0)