use name here

This commit is contained in:
leaf corcoran 2022-11-04 13:25:24 -07:00
parent 791e015bbe
commit c7be4dcb38
2 changed files with 4 additions and 4 deletions

View File

@ -305,7 +305,7 @@ return {
{ {
"string", "string",
'"', '"',
node[2] self:name(node[2])
} }
} }
}) })
@ -327,7 +327,7 @@ return {
{ {
"string", "string",
'"', '"',
node[2] self:name(node[2])
} }
} }
}) })

View File

@ -185,7 +185,7 @@ string_chars = {
self: (node) => self: (node) =>
if data.lua_keywords[node[2]] if data.lua_keywords[node[2]]
@value {"chain", "self", {"index", { @value {"chain", "self", {"index", {
"string", '"', node[2] "string", '"', @name node[2]
}}} }}}
else else
"self."..@name node[2] "self."..@name node[2]
@ -193,7 +193,7 @@ string_chars = {
self_class: (node) => self_class: (node) =>
if data.lua_keywords[node[2]] if data.lua_keywords[node[2]]
@value {"chain", "self", {"dot", "__class"}, {"index", { @value {"chain", "self", {"dot", "__class"}, {"index", {
"string", '"', node[2] "string", '"', @name node[2]
}}} }}}
else else
"self.__class."..@name node[2] "self.__class."..@name node[2]