From: Zoe Roux Date: Mon, 2 May 2022 09:29:31 +0000 (+0100) Subject: patch 8.2.4855: robot files are not recognized X-Git-Tag: v8.2.4855 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2096a5f128029b1156a035a27c988995db240cea;p=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) --- 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 @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 4855, /**/ 4854, /**/