1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-11-29 01:24:52 +03:00

Change lint.kak column display to put it at the end

This commit is contained in:
Maxime Coste 2017-03-10 12:41:01 +00:00
parent e888dae787
commit b9317ba38c

View File

@ -41,10 +41,10 @@ def lint -docstring 'Parse the current buffer with a linter' %{
}
}
/:[0-9]+:[0-9]+:/ {
errors = errors $2 "," $3 ",c" $3 " " substr($4,2) ":"
errors = errors $2 "," $3 "," substr($4,2) ":"
# fix case where $5 is not the last field because of extra :s in the message
for (i=5; i<=NF; i++) errors = errors $i ":"
errors = substr(errors, 1, length(errors)-1) "\n"
errors = substr(errors, 1, length(errors)-1) " (col " $3 ")\n"
}
END {
print "set \"buffer=" file "\" lint_flags %{" stamp ":" substr(flags, 1, length(flags)-1) "}"