From 26a6174f28191fe3364e30c76c1c7a5814e7c5ab Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Tue, 10 Jul 2018 17:13:48 -0700 Subject: [PATCH] Fixed dumb bug. --- nomsu_compiler.lua | 1 + nomsu_compiler.moon | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/nomsu_compiler.lua b/nomsu_compiler.lua index ca4b760..103a31e 100644 --- a/nomsu_compiler.lua +++ b/nomsu_compiler.lua @@ -493,6 +493,7 @@ do end end map_sources(lua) + map[lua_line] = map[lua_line] or nomsu_line map[0] = 0 SOURCE_MAP[source_key] = map end diff --git a/nomsu_compiler.moon b/nomsu_compiler.moon index 080e3d7..747ddc6 100644 --- a/nomsu_compiler.moon +++ b/nomsu_compiler.moon @@ -323,7 +323,7 @@ with NomsuCompiler nomsu_line = files.get_line_number(file, s.source.start) for b in *s.bits do map_sources(b) map_sources(lua) - --map[lua_line] or= nomsu_line + map[lua_line] or= nomsu_line map[0] = 0 -- Mapping from lua line number to nomsu line numbers SOURCE_MAP[source_key] = map