aboutsummaryrefslogtreecommitdiff
path: root/lua/plugins
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2020-09-20 17:59:17 +0200
committerMarc André Tanner <mat@brain-dump.org>2020-09-20 17:59:17 +0200
commit02970c7e7fe39c0f1a75ce888ac25813a4fa2ee0 (patch)
tree899942164cae8407621952978d2fa5cd915ec8d9 /lua/plugins
parent15c087f9a59a4ead606d4fafebe6fb37906e304f (diff)
parent69a916aa0c8afe9be0473028a3212a5d2aa481c9 (diff)
downloadvis-02970c7e7fe39c0f1a75ce888ac25813a4fa2ee0.tar.gz
vis-02970c7e7fe39c0f1a75ce888ac25813a4fa2ee0.tar.xz
Merge branch 'routeros' of https://github.com/eworm-de/vis into master
Diffstat (limited to 'lua/plugins')
-rw-r--r--lua/plugins/filetype.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua
index e52d722..1110e64 100644
--- a/lua/plugins/filetype.lua
+++ b/lua/plugins/filetype.lua
@@ -343,6 +343,12 @@ vis.ftdetect.filetypes = {
rhtml = {
ext = { "%.erb$", "%.rhtml$" },
},
+ routeros = {
+ ext = { "%.rsc" },
+ detect = function(file, data)
+ return data:match("^#.* by RouterOS")
+ end
+ },
rstats = {
ext = { "%.R$", "%.Rout$", "%.Rhistory$", "%.Rt$", "Rout.save", "Rout.fail" },
},