Skip to content

Commit b01a216

Browse files
committed
update semantic tokens
1 parent 8ec4cae commit b01a216

File tree

2 files changed

+74
-2
lines changed

2 files changed

+74
-2
lines changed

package.json

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1538,6 +1538,18 @@
15381538
{
15391539
"language": "lua",
15401540
"scopes": {
1541+
"class": [
1542+
"support.class.lua"
1543+
],
1544+
"class.declaration": [
1545+
"support.class.lua"
1546+
],
1547+
"comment.documentation": [
1548+
"storage.type.annotation.lua"
1549+
],
1550+
"event.static": [
1551+
"support.class.lua"
1552+
],
15411553
"function": [
15421554
"variable.function.lua"
15431555
],
@@ -1550,12 +1562,36 @@
15501562
"function.static": [
15511563
"entity.name.function.lua"
15521564
],
1565+
"keyword": [
1566+
"keyword.control.lua"
1567+
],
1568+
"keyword.async": [
1569+
"entity.name.tag.lua"
1570+
],
1571+
"keyword.declaration": [
1572+
"keyword.local.lua"
1573+
],
1574+
"keyword.readonly": [
1575+
"constant.language.lua"
1576+
],
1577+
"macro": [
1578+
"variable.lua"
1579+
],
15531580
"method": [
15541581
"entity.name.function.lua"
15551582
],
15561583
"method.declaration": [
15571584
"entity.name.function.lua"
15581585
],
1586+
"number": [
1587+
"constant.numeric.float.lua"
1588+
],
1589+
"number.static": [
1590+
"constant.numeric.integer.lua"
1591+
],
1592+
"operator": [
1593+
"keyword.operator.lua"
1594+
],
15591595
"parameter.declaration": [
15601596
"variable.parameter.lua"
15611597
],
@@ -1565,6 +1601,30 @@
15651601
"property.declaration": [
15661602
"entity.other.property.lua"
15671603
],
1604+
"string": [
1605+
"string.lua"
1606+
],
1607+
"string.deprecated": [
1608+
"invalid.illegal.character.escape.lua"
1609+
],
1610+
"string.modification": [
1611+
"constant.character.escape.lua"
1612+
],
1613+
"struct": [
1614+
"string.tag.lua"
1615+
],
1616+
"struct.declaration": [
1617+
"string.tag.lua"
1618+
],
1619+
"type": [
1620+
"support.type.lua"
1621+
],
1622+
"type.modification": [
1623+
"storage.type.generic.lua"
1624+
],
1625+
"typeParameter": [
1626+
"string.tag.lua"
1627+
],
15681628
"variable": [
15691629
"variable.other.lua"
15701630
],
@@ -1577,8 +1637,8 @@
15771637
"variable.defaultLibrary": [
15781638
"support.constant.lua"
15791639
],
1580-
"variable.local": [
1581-
"variable.other.lua"
1640+
"variable.definition": [
1641+
"variable.language.self.lua"
15821642
],
15831643
"variable.readonly": [
15841644
"variable.other.constant.lua"

package/semanticTokenScope.lua

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,22 @@ return {
3434
['keyword'] = {'keyword.control.lua'},
3535
['keyword.declaration'] = {'keyword.local.lua'},
3636
['keyword.readonly'] = {'constant.language.lua'},
37+
['keyword.async'] = {'entity.name.tag.lua'},
3738
['operator'] = {'keyword.operator.lua'},
3839
['number'] = {'constant.numeric.float.lua'},
3940
['number.static'] = {'constant.numeric.integer.lua'},
4041
['string'] = {'string.lua'},
4142
['string.modification'] = {'constant.character.escape.lua'},
4243
['string.deprecated'] = {'invalid.illegal.character.escape.lua'},
44+
45+
["struct"] = {"string.tag.lua"},
46+
["struct.declaration"] = {"string.tag.lua"},
47+
["typeParameter"] = {"string.tag.lua"},
48+
["comment.documentation"] = {"storage.type.annotation.lua"},
49+
["class"] = {"support.class.lua"},
50+
["class.declaration"] = {"support.class.lua"},
51+
["type"] = {"support.type.lua"},
52+
["type.modification"] = {"storage.type.generic.lua"},
53+
["macro"] = {"variable.lua"},
54+
["event.static"] = {"support.class.lua"},
4355
}

0 commit comments

Comments
 (0)