patch 8.2.3598: RouterOS filetype is not recognized
Problem: RouterOS filetype is not recognized. Solution: Add file and script patterns. (closes #9097)
This commit is contained in:
@ -1493,6 +1493,9 @@ au BufNewFile,BufRead robots.txt setf robots
|
|||||||
" Rpcgen
|
" Rpcgen
|
||||||
au BufNewFile,BufRead *.x setf rpcgen
|
au BufNewFile,BufRead *.x setf rpcgen
|
||||||
|
|
||||||
|
" MikroTik RouterOS script
|
||||||
|
au BufRead,BufNewFile *.rsc setf routeros
|
||||||
|
|
||||||
" reStructuredText Documentation Format
|
" reStructuredText Documentation Format
|
||||||
au BufNewFile,BufRead *.rst setf rst
|
au BufNewFile,BufRead *.rst setf rst
|
||||||
|
|
||||||
|
|||||||
@ -420,6 +420,7 @@ let s:filename_checks = {
|
|||||||
\ 'rnc': ['file.rnc'],
|
\ 'rnc': ['file.rnc'],
|
||||||
\ 'rng': ['file.rng'],
|
\ 'rng': ['file.rng'],
|
||||||
\ 'robots': ['robots.txt'],
|
\ 'robots': ['robots.txt'],
|
||||||
|
\ 'routeros': ['file.rsc'],
|
||||||
\ 'rpcgen': ['file.x'],
|
\ 'rpcgen': ['file.x'],
|
||||||
\ 'rpl': ['file.rpl'],
|
\ 'rpl': ['file.rpl'],
|
||||||
\ 'rst': ['file.rst'],
|
\ 'rst': ['file.rst'],
|
||||||
@ -660,6 +661,7 @@ let s:script_checks = {
|
|||||||
\ 'yaml': [['%YAML 1.2']],
|
\ 'yaml': [['%YAML 1.2']],
|
||||||
\ 'pascal': [['#!/path/instantfpc']],
|
\ 'pascal': [['#!/path/instantfpc']],
|
||||||
\ 'fennel': [['#!/path/fennel']],
|
\ 'fennel': [['#!/path/fennel']],
|
||||||
|
\ 'routeros': [['#!/path/rsc']],
|
||||||
\ }
|
\ }
|
||||||
|
|
||||||
" Various forms of "env" optional arguments.
|
" Various forms of "env" optional arguments.
|
||||||
|
|||||||
@ -757,6 +757,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
3598,
|
||||||
/**/
|
/**/
|
||||||
3597,
|
3597,
|
||||||
/**/
|
/**/
|
||||||
|
|||||||
Reference in New Issue
Block a user