1
0
forked from aniani/vim

patch 8.2.4855: robot files are not recognized

Problem:    Robot files are not recognized.
Solution:   Add patterns for robot files. (Zoe Roux, closes #10339)
This commit is contained in:
Zoe Roux
2022-05-02 10:29:31 +01:00
committed by Bram Moolenaar
parent 2f7e00a8ae
commit 2096a5f128
3 changed files with 6 additions and 0 deletions

View File

@@ -1592,6 +1592,9 @@ au BufNewFile,BufRead *.rng setf rng
" RPL/2 " RPL/2
au BufNewFile,BufRead *.rpl setf rpl au BufNewFile,BufRead *.rpl setf rpl
" Robot Framework
au BufNewFile,BufRead *.robot,*.resource setf robot
" Robots.txt " Robots.txt
au BufNewFile,BufRead robots.txt setf robots au BufNewFile,BufRead robots.txt setf robots

View File

@@ -457,6 +457,7 @@ let s:filename_checks = {
\ 'rib': ['file.rib'], \ 'rib': ['file.rib'],
\ 'rnc': ['file.rnc'], \ 'rnc': ['file.rnc'],
\ 'rng': ['file.rng'], \ 'rng': ['file.rng'],
\ 'robot': ['file.robot', 'file.resource'],
\ 'robots': ['robots.txt'], \ 'robots': ['robots.txt'],
\ 'routeros': ['file.rsc'], \ 'routeros': ['file.rsc'],
\ 'rpcgen': ['file.x'], \ 'rpcgen': ['file.x'],

View File

@@ -746,6 +746,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 */
/**/
4855,
/**/ /**/
4854, 4854,
/**/ /**/