]> granicus.if.org Git - vim/commitdiff
patch 8.2.4855: robot files are not recognized v8.2.4855
authorZoe Roux <zoe.roux-stg@nickel.eu>
Mon, 2 May 2022 09:29:31 +0000 (10:29 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 2 May 2022 09:29:31 +0000 (10:29 +0100)
Problem:    Robot files are not recognized.
Solution:   Add patterns for robot files. (Zoe Roux, closes #10339)

runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index c61fd0d7085c197f06b72592bdea9acdf9baabba..4f998f93d8d0f6280724d209162e63adfde80e53 100644 (file)
@@ -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
 
index f4bc02f082c72c2d162bd1a8ceae50754e5bee02..15a4a7b1e7e4cac1f3dd22f965971f33e6ddcf1b 100644 (file)
@@ -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'],
index 94c3470d85c399f96958b64383e69fd28e1495ed..b10da4566eb6e4aa95a14a092816271a2f5feda6 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    4855,
 /**/
     4854,
 /**/