diff options
author | Undecidable Robot <undecidabot@gmail.com> | 2016-05-21 22:43:10 +0800 |
---|---|---|
committer | Undecidable Robot <undecidabot@gmail.com> | 2016-05-21 23:44:22 +0800 |
commit | 89649e1023b7ef2edc316f904fdc2273de31da0c (patch) | |
tree | 5c94ff71342597335518fe8da16a924875c43a1c | |
parent | 6ef1c042cc18fb3f19e09ab7d13c6c384f740b0e (diff) | |
download | lpeglabel-89649e1023b7ef2edc316f904fdc2273de31da0c.tar.gz lpeglabel-89649e1023b7ef2edc316f904fdc2273de31da0c.tar.bz2 lpeglabel-89649e1023b7ef2edc316f904fdc2273de31da0c.zip |
Shortening the position in error messages
-rw-r--r-- | relabel.lua | 2 |
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 |