aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2017-05-30 15:06:01 +0200
committerMarc André Tanner <mat@brain-dump.org>2017-05-30 15:07:19 +0200
commit61ff2920bad08c10a4c53e3d93fa152721b348fc (patch)
tree90b42f5e441373da72454f86751d5ab21fee3108 /lua/plugins
parent554d6b887d1d56de330f63bf735ef96ab10cacd2 (diff)
downloadvis-61ff2920bad08c10a4c53e3d93fa152721b348fc.tar.gz
vis-61ff2920bad08c10a4c53e3d93fa152721b348fc.tar.xz
lexer: add simple strace(1) output lexer
Diffstat (limited to 'lua/plugins')
-rw-r--r--lua/plugins/filetype.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua
index 5a6259a..9d44391 100644
--- a/lua/plugins/filetype.lua
+++ b/lua/plugins/filetype.lua
@@ -349,6 +349,11 @@ vis.ftdetect.filetypes = {
sql= {
ext = { "%.ddl$", "%.sql$" },
},
+ strace = {
+ detect = function(file, data)
+ return data:match("^execve%(")
+ end
+ },
systemd = {
ext = {
"%.automount$", "%.device$", "%.mount$", "%.path$",