aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nomsu_compiler.lua1
-rw-r--r--nomsu_compiler.moon2
2 files changed, 2 insertions, 1 deletions
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