diff options
author | Zoe Roux <zoe.roux-stg@nickel.eu> | 2022-05-02 10:29:31 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-05-02 10:29:31 +0100 |
commit | 2096a5f128029b1156a035a27c988995db240cea (patch) | |
tree | 11e36f296567a089ff5c994ef637558a2eeb770c | |
parent | 2f7e00a8aeceaf1d682d9e797149c1c51654ff68 (diff) | |
download | vim-git-2096a5f128029b1156a035a27c988995db240cea.tar.gz |
patch 8.2.4855: robot files are not recognizedv8.2.4855
Problem: Robot files are not recognized.
Solution: Add patterns for robot files. (Zoe Roux, closes #10339)
-rw-r--r-- | runtime/filetype.vim | 3 | ||||
-rw-r--r-- | src/testdir/test_filetype.vim | 1 | ||||
-rw-r--r-- | src/version.c | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/runtime/filetype.vim b/runtime/filetype.vim index c61fd0d70..4f998f93d 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -1592,6 +1592,9 @@ au BufNewFile,BufRead *.rng setf rng " RPL/2 au BufNewFile,BufRead *.rpl setf rpl +" Robot Framework +au BufNewFile,BufRead *.robot,*.resource setf robot + " Robots.txt au BufNewFile,BufRead robots.txt setf robots diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index f4bc02f08..15a4a7b1e 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -457,6 +457,7 @@ let s:filename_checks = { \ 'rib': ['file.rib'], \ 'rnc': ['file.rnc'], \ 'rng': ['file.rng'], + \ 'robot': ['file.robot', 'file.resource'], \ 'robots': ['robots.txt'], \ 'routeros': ['file.rsc'], \ 'rpcgen': ['file.x'], diff --git a/src/version.c b/src/version.c index 94c3470d8..b10da4566 100644 --- a/src/version.c +++ b/src/version.c @@ -747,6 +747,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 4855, +/**/ 4854, /**/ 4853, |