From c7be4dcb387af640aa226969486e556058361319 Mon Sep 17 00:00:00 2001 From: leaf corcoran Date: Fri, 4 Nov 2022 13:25:24 -0700 Subject: [PATCH] use name here --- moonscript/compile/value.lua | 4 ++-- moonscript/compile/value.moon | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/moonscript/compile/value.lua b/moonscript/compile/value.lua index 913f965..068035d 100644 --- a/moonscript/compile/value.lua +++ b/moonscript/compile/value.lua @@ -305,7 +305,7 @@ return { { "string", '"', - node[2] + self:name(node[2]) } } }) @@ -327,7 +327,7 @@ return { { "string", '"', - node[2] + self:name(node[2]) } } }) diff --git a/moonscript/compile/value.moon b/moonscript/compile/value.moon index 0c07898..677c08c 100644 --- a/moonscript/compile/value.moon +++ b/moonscript/compile/value.moon @@ -185,7 +185,7 @@ string_chars = { self: (node) => if data.lua_keywords[node[2]] @value {"chain", "self", {"index", { - "string", '"', node[2] + "string", '"', @name node[2] }}} else "self."..@name node[2] @@ -193,7 +193,7 @@ string_chars = { self_class: (node) => if data.lua_keywords[node[2]] @value {"chain", "self", {"dot", "__class"}, {"index", { - "string", '"', node[2] + "string", '"', @name node[2] }}} else "self.__class."..@name node[2]