diff options
| author | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-10 17:13:48 -0700 |
|---|---|---|
| committer | Bruce Hill <bitbucket@bruce-hill.com> | 2018-07-10 17:13:53 -0700 |
| commit | 26a6174f28191fe3364e30c76c1c7a5814e7c5ab (patch) | |
| tree | 15b5cdd02958d449021228d2afb239e11e4dbe1b | |
| parent | 3fd5687370c3ef28c1878a79f0b4173e7212795f (diff) | |
Fixed dumb bug.
| -rw-r--r-- | nomsu_compiler.lua | 1 | ||||
| -rw-r--r-- | nomsu_compiler.moon | 2 |
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 |
