comparison runtime/ftplugin/dosbatch.vim @ 32004:a9b5ffbc0428

Update runtime files. Commit: https://github.com/vim/vim/commit/938ae280c79b8cdb0fca60336ec4c090ecd8bb5a Author: Bram Moolenaar <Bram@vim.org> Date: Mon Feb 20 20:44:55 2023 +0000 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Mon, 20 Feb 2023 22:00:05 +0100
parents 2334bf788e8a
children 8ae680be2a51
comparison
equal deleted inserted replaced
32003:aa9c0f0ebfd0 32004:a9b5ffbc0428
1 " Vim filetype plugin file 1 " Vim filetype plugin file
2 " Language: MS-DOS .bat files 2 " Language: MS-DOS/Windows .bat files
3 " Maintainer: Mike Williams <mrw@eandem.co.uk> 3 " Maintainer: Mike Williams <mrmrdubya@gmail.com>
4 " Last Change: 7th May 2020 4 " Last Change: 12th February 2023
5 "
6 " Options Flags:
7 " dosbatch_colons_comment - any value to treat :: as comment line
5 8
6 " Only do this when not done yet for this buffer 9 " Only do this when not done yet for this buffer
7 if exists("b:did_ftplugin") 10 if exists("b:did_ftplugin")
8 finish 11 finish
9 endif 12 endif
13 16
14 let s:cpo_save = &cpo 17 let s:cpo_save = &cpo
15 set cpo&vim 18 set cpo&vim
16 19
17 " BAT comment formatting 20 " BAT comment formatting
18 setlocal comments=b:rem,b:@rem,b:REM,b:@REM,::: 21 setlocal comments=b:rem,b:@rem,b:REM,b:@REM
19 setlocal commentstring=::\ %s 22 if exists("dosbatch_colons_comment")
23 setlocal comments+=:::
24 setlocal commentstring=::\ %s
25 else
26 setlocal commentstring=REM\ %s
27 endif
20 setlocal formatoptions-=t formatoptions+=rol 28 setlocal formatoptions-=t formatoptions+=rol
21 29
22 " Lookup DOS keywords using Windows command help. 30 " Lookup DOS keywords using Windows command help.
23 if executable('help.exe') 31 if executable('help.exe')
24 if has('terminal') 32 if has('terminal')