Mercurial > vim
changeset 28662:dfe200e3d315 v8.2.4855
patch 8.2.4855: robot files are not recognized
Commit: https://github.com/vim/vim/commit/2096a5f128029b1156a035a27c988995db240cea
Author: Zoe Roux <zoe.roux-stg@nickel.eu>
Date: Mon May 2 10:29:31 2022 +0100
patch 8.2.4855: robot files are not recognized
Problem: Robot files are not recognized.
Solution: Add patterns for robot files. (Zoe Roux, closes https://github.com/vim/vim/issues/10339)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 02 May 2022 11:30:04 +0200 |
parents | 8c8a1074fa23 |
children | 02ed0b0c5f5c |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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
--- 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'],