Mercurial > vim
changeset 26131:87d8f52d3821 v8.2.3598
patch 8.2.3598: RouterOS filetype is not recognized
Commit: https://github.com/vim/vim/commit/0818ab82e7058145366ebbe759f0b3f74724bdfd
Author: zainin <thexsinner@gmail.com>
Date: Mon Nov 15 21:44:11 2021 +0000
patch 8.2.3598: RouterOS filetype is not recognized
Problem: RouterOS filetype is not recognized.
Solution: Add file and script patterns. (closes https://github.com/vim/vim/issues/9097)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 15 Nov 2021 22:45:02 +0100 |
parents | 42600a15fce6 |
children | 24efeff065c1 |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1493,6 +1493,9 @@ au BufNewFile,BufRead robots.txt setf r " Rpcgen au BufNewFile,BufRead *.x setf rpcgen +" MikroTik RouterOS script +au BufRead,BufNewFile *.rsc setf routeros + " reStructuredText Documentation Format au BufNewFile,BufRead *.rst setf rst
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -420,6 +420,7 @@ let s:filename_checks = { \ 'rnc': ['file.rnc'], \ 'rng': ['file.rng'], \ 'robots': ['robots.txt'], + \ 'routeros': ['file.rsc'], \ 'rpcgen': ['file.x'], \ 'rpl': ['file.rpl'], \ 'rst': ['file.rst'], @@ -660,6 +661,7 @@ let s:script_checks = { \ 'yaml': [['%YAML 1.2']], \ 'pascal': [['#!/path/instantfpc']], \ 'fennel': [['#!/path/fennel']], + \ 'routeros': [['#!/path/rsc']], \ } " Various forms of "env" optional arguments.