aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUndecidable Robot <undecidabot@gmail.com>2016-05-21 22:43:10 +0800
committerUndecidable Robot <undecidabot@gmail.com>2016-05-21 23:44:22 +0800
commit89649e1023b7ef2edc316f904fdc2273de31da0c (patch)
tree5c94ff71342597335518fe8da16a924875c43a1c
parent6ef1c042cc18fb3f19e09ab7d13c6c384f740b0e (diff)
downloadlpeglabel-89649e1023b7ef2edc316f904fdc2273de31da0c.tar.gz
lpeglabel-89649e1023b7ef2edc316f904fdc2273de31da0c.tar.bz2
lpeglabel-89649e1023b7ef2edc316f904fdc2273de31da0c.zip
Shortening the position in error messages
-rw-r--r--relabel.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/relabel.lua b/relabel.lua
index 775789b..ead1f10 100644
--- a/relabel.lua
+++ b/relabel.lua
@@ -339,7 +339,7 @@ local function compile (p, defs)
339 tinsert(errors, err[1]) 339 tinsert(errors, err[1])
340 else 340 else
341 local line, col = lineno(p, err[2]) 341 local line, col = lineno(p, err[2])
342 tinsert(errors, "Line" .. line .. ", Col " .. col .. ": " .. errmsgs[err[1]]) 342 tinsert(errors, "L" .. line .. ":C" .. col .. ": " .. errmsgs[err[1]])
343 tinsert(errors, lines[line]) 343 tinsert(errors, lines[line])
344 tinsert(errors, rep(" ", col-1) .. "^") 344 tinsert(errors, rep(" ", col-1) .. "^")
345 end 345 end