Skip to content

Commit fbd061e

Browse files
committed
force emit whitespace when closing off code escape
fixes --[[type x=[]]] in code coverage
1 parent e4452f7 commit fbd061e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

nattlua/emitter/emitter.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1772,7 +1772,7 @@ do -- types
17721772

17731773
function META:StopEmittingInvalidLuaCode(emitted--[[#: boolean]])
17741774
if emitted then
1775-
if self:GetPrevChar() == B("]") then self:Whitespace(" ") end
1775+
if self:GetPrevChar() == B("]") then self:Emit(" ") end
17761776

17771777
local needs_escape = false
17781778

0 commit comments

Comments
 (0)