diff options
| author | orbitalquark <70453897+orbitalquark@users.noreply.github.com> | 2024-09-18 13:35:27 -0400 |
|---|---|---|
| committer | Randy Palamar <randy@rnpnr.xyz> | 2025-01-04 12:23:53 -0700 |
| commit | 01f013e851556065147f1f33463c70ff3d6194a8 (patch) | |
| tree | 1fe1c9aed4cb4d505cf44835eea5db95cf3da289 /lua/lexers/output.lua | |
| parent | e3d6bdac6d0e7010143c048bf885fb72f47f2b73 (diff) | |
| download | vis-01f013e851556065147f1f33463c70ff3d6194a8.tar.gz vis-01f013e851556065147f1f33463c70ff3d6194a8.tar.xz | |
Output lexer: match absolute program paths instead of just names
Diffstat (limited to 'lua/lexers/output.lua')
| -rw-r--r-- | lua/lexers/output.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lua/lexers/output.lua b/lua/lexers/output.lua index 0ff9f1c..da88a6c 100644 --- a/lua/lexers/output.lua +++ b/lua/lexers/output.lua @@ -52,8 +52,10 @@ lex:add_rule('common', starts_line(c_filename) * colon * line * colon * (column (warning + note + error)) -- prog: filename:line: message (awk, lua) -lex:add_rule('prog', starts_line(text(lexer.word)) * colon * c_filename * colon * line * colon * - (warning + error)) +-- /usr/bin/prog: filename:line: message +lex:add_rule('prog', + starts_line(text(lexer.word + '/' * (lexer.any - ':')^1)) * colon * c_filename * colon * line * + colon * (warning + error)) -- File "filename", line X (python) local py_filename = filename((lexer.nonnewline - '"')^1) |
