From 2096a5f128029b1156a035a27c988995db240cea Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Mon, 2 May 2022 10:29:31 +0100 Subject: [PATCH] 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) --- runtime/filetype.vim | 3 +++ src/testdir/test_filetype.vim | 1 + src/version.c | 2 ++ 3 files changed, 6 insertions(+) diff --git a/runtime/filetype.vim b/runtime/filetype.vim index c61fd0d708..4f998f93d8 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 f4bc02f082..15a4a7b1e7 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 94c3470d85..b10da4566e 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, /**/