diff options
Diffstat (limited to 'script/parser/guide.lua')
-rw-r--r-- | script/parser/guide.lua | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/script/parser/guide.lua b/script/parser/guide.lua index 7a9cb875..969eb386 100644 --- a/script/parser/guide.lua +++ b/script/parser/guide.lua @@ -825,6 +825,8 @@ function m.positionToOffset(state, position) return m.positionToOffsetByLines(state.lines, position) end +---@param lines integer[] +---@param offset integer function m.offsetToPositionByLines(lines, offset) local left = 0 local right = #lines |