diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-11 01:09:26 -0800 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-01-11 01:09:26 -0800 |
| commit | 6f4b67632a544780438110bb11e5122448e24881 (patch) | |
| tree | 3549eb211df19ff6870d5cf63ad1c25d1880040b /nomsu.moon | |
| parent | c0333ca31532f14ec8ebd841a5f68b2f35e9cc80 (diff) | |
Renamed String -> Text
Diffstat (limited to 'nomsu.moon')
| -rwxr-xr-x | nomsu.moon | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -427,7 +427,7 @@ end]]\format(lua_code)) buff ..= nomsu return buff, inline - when "String" + when "Text" buff = "\"" longbuff = "\"..\"\n |" inline = true @@ -583,7 +583,7 @@ end]]\format(lua_code)) remove @compilestack return expr:@@comma_separated_items("nomsu.defs[#{repr tree.stub}].fn(", args, ")") - when "String" + when "Text" concat_parts = {} string_buffer = "" for bit in *tree.value @@ -653,7 +653,7 @@ end]]\format(lua_code)) if type(tree) != 'table' or not tree.type return switch tree.type - when "List", "File", "Block", "FunctionCall", "String" + when "List", "File", "Block", "FunctionCall", "Text" for v in *tree.value @walk_tree(v, depth+1) when "Dict" @@ -703,7 +703,7 @@ end]]\format(lua_code)) when "Var" if vars[tree.value] ~= nil tree = vars[tree.value] - when "File", "Nomsu", "Block", "List", "FunctionCall", "String" + when "File", "Nomsu", "Block", "List", "FunctionCall", "Text" new_value = @replaced_vars tree.value, vars if new_value != tree.value tree = {k,v for k,v in pairs(tree)} @@ -747,7 +747,7 @@ end]]\format(lua_code)) if type(x) != 'table' @error "Invalid type for getting stub: #{type(x)} for:\n#{repr x}" switch x.type - when "String" then return @get_stub(x.value) + when "Text" then return @get_stub(x.value) when "FunctionCall" then return @get_stub(x.src) else @error "Unsupported get stub type: #{x.type} for #{repr x}" |
