summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/parser/compile.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/script/parser/compile.lua b/script/parser/compile.lua
index cc142dfa..9db46241 100644
--- a/script/parser/compile.lua
+++ b/script/parser/compile.lua
@@ -553,11 +553,12 @@ local function skipComment(isAction)
end
Index = Index + 2
end
+ local right = Tokens[Index] and (Tokens[Index] - 1) or #Lua
State.comms[#State.comms+1] = {
type = chead and 'comment.cshort' or 'comment.short',
start = left,
- finish = lastRightPosition(),
- text = ssub(Lua, start + 2, Tokens[Index] and (Tokens[Index] - 1) or #Lua),
+ finish = getPosition(right, 'right'),
+ text = ssub(Lua, start + 2, right),
}
return true
end