Software / code / prosody
Comparison
tools/tb2err @ 13063:414952def2d3
tools/tb2err: Drop use of lua-any since it should run fine on any Lua
Dependencies--; \o/
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 08 Apr 2023 12:53:19 +0200 |
| parent | 11191:13e2ac7b5798 |
| child | 13064:b172db27ffed |
comparison
equal
deleted
inserted
replaced
| 13062:da51c36ed1e7 | 13063:414952def2d3 |
|---|---|
| 1 #!/usr/bin/env lua-any | 1 #!/usr/bin/env lua |
| 2 -- Lua-Versions: 5.3 5.2 5.1 | |
| 3 -- traceback to errors.err for vim -q | 2 -- traceback to errors.err for vim -q |
| 4 local path_sep = package.config:sub(1,1); | 3 local path_sep = package.config:sub(1,1); |
| 5 for line in io.lines() do | 4 for line in io.lines() do |
| 6 local src, err = line:match("%s*(%S+)(:%d+: .*)") | 5 local src, err = line:match("%s*(%S+)(:%d+: .*)") |
| 7 if src then | 6 if src then |