Fix line number matching bug

This commit is contained in:
Krzosa Karol
2024-08-05 07:19:38 +02:00
parent d3b89d22fb
commit 4d22995ea3
4 changed files with 7 additions and 6 deletions

View File

@@ -225,7 +225,7 @@ function ExtractLineAndColumn(s)
s = s:sub(1, lci - 1)
return line, col, s
else
local li, lj = s:find("(%d+):$")
local li, lj = s:find("%(%d+%):$")
if li then
local line_string = s:sub(li, lj)
line = line_string:sub(2, -3)
@@ -244,7 +244,7 @@ function ExtractLineAndColumn(s)
s = s:sub(1, lci - 1)
return line, col, s
else
local li, lj = s:find("(%d+)$")
local li, lj = s:find("%(%d+%)$")
if li then
local line_string = s:sub(li, lj)
line = line_string:sub(2, -2)