diff options
| author | Christian Hesse <mail@eworm.de> | 2020-09-17 18:00:45 +0200 |
|---|---|---|
| committer | Christian Hesse <mail@eworm.de> | 2020-09-18 15:58:40 +0200 |
| commit | 69a916aa0c8afe9be0473028a3212a5d2aa481c9 (patch) | |
| tree | 24a469e5ed2cb992a851f595477970c4e25c92e6 /lua/plugins | |
| parent | 2290224c844775d446fc8aaf3a98c0149d935875 (diff) | |
| download | vis-69a916aa0c8afe9be0473028a3212a5d2aa481c9.tar.gz vis-69a916aa0c8afe9be0473028a3212a5d2aa481c9.tar.xz | |
lexers: add Mikrotik RouterOS script lexer
Add a lexer for Mikrotik RouterOS scripts.
https://wiki.mikrotik.com/wiki/Manual:Scripting
Diffstat (limited to 'lua/plugins')
| -rw-r--r-- | lua/plugins/filetype.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lua/plugins/filetype.lua b/lua/plugins/filetype.lua index 048b35d..fa1717e 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" }, }, |
