Mercurial > vim
comparison runtime/ftplugin/ishd.vim @ 33051:02939ae3aaca
runtime: Set b:undo_ftplugin where missing (#12943)
Commit: https://github.com/vim/vim/commit/f937ab32a1ac3a560f217ca4ce8305ab2d5b0b74
Author: dkearns <dougkearns@gmail.com>
Date: Tue Aug 29 05:32:27 2023 +1000
runtime: Set b:undo_ftplugin where missing (https://github.com/vim/vim/issues/12943)
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Mon, 28 Aug 2023 21:45:06 +0200 |
parents | dd6c2497c997 |
children | 8ae680be2a51 |
comparison
equal
deleted
inserted
replaced
33050:6a839ee3ab4b | 33051:02939ae3aaca |
---|---|
1 " Vim filetype plugin file | 1 " Vim filetype plugin file |
2 " Language: InstallShield (ft=ishd) | 2 " Language: InstallShield (ft=ishd) |
3 " Maintainer: Johannes Zellner <johannes@zellner.org> | 3 " Maintainer: Doug Kearns <dougkearns@gmail.com> |
4 " Last Change: Sat, 24 May 2003 11:55:36 CEST | 4 " Previous Maintainer: Johannes Zellner <johannes@zellner.org> |
5 " Last Change: 2023 Aug 28 | |
5 | 6 |
6 if exists("b:did_ftplugin") | finish | endif | 7 if exists("b:did_ftplugin") | finish | endif |
7 let b:did_ftplugin = 1 | 8 let b:did_ftplugin = 1 |
8 | |
9 setlocal foldmethod=syntax | |
10 | 9 |
11 " Using line continuation here. | 10 " Using line continuation here. |
12 let s:cpo_save = &cpo | 11 let s:cpo_save = &cpo |
13 set cpo-=C | 12 set cpo-=C |
14 | 13 |
14 setlocal foldmethod=syntax | |
15 | |
16 let b:undo_ftplugin = "setl fdm<" | |
17 | |
15 " matchit support | 18 " matchit support |
16 if exists("loaded_matchit") | 19 if exists("loaded_matchit") |
17 let b:match_ignorecase=0 | 20 let b:match_ignorecase = 0 |
18 let b:match_words= | 21 let b:match_words = |
19 \ '\%(^\s*\)\@<=\<function\>\s\+[^()]\+\s*(:\%(^\s*\)\@<=\<begin\>\s*$:\%(^\s*\)\@<=\<return\>:\%(^\s*\)\@<=\<end\>\s*;\s*$,' . | 22 \ '\%(^\s*\)\@<=\<function\>\s\+[^()]\+\s*(:\%(^\s*\)\@<=\<begin\>\s*$:\%(^\s*\)\@<=\<return\>:\%(^\s*\)\@<=\<end\>\s*;\s*$,' . |
20 \ '\%(^\s*\)\@<=\<repeat\>\s*$:\%(^\s*\)\@<=\<until\>\s\+.\{-}\s*;\s*$,' . | 23 \ '\%(^\s*\)\@<=\<repeat\>\s*$:\%(^\s*\)\@<=\<until\>\s\+.\{-}\s*;\s*$,' . |
21 \ '\%(^\s*\)\@<=\<switch\>\s*(.\{-}):\%(^\s*\)\@<=\<\%(case\|default\)\>:\%(^\s*\)\@<=\<endswitch\>\s*;\s*$,' . | 24 \ '\%(^\s*\)\@<=\<switch\>\s*(.\{-}):\%(^\s*\)\@<=\<\%(case\|default\)\>:\%(^\s*\)\@<=\<endswitch\>\s*;\s*$,' . |
22 \ '\%(^\s*\)\@<=\<while\>\s*(.\{-}):\%(^\s*\)\@<=\<endwhile\>\s*;\s*$,' . | 25 \ '\%(^\s*\)\@<=\<while\>\s*(.\{-}):\%(^\s*\)\@<=\<endwhile\>\s*;\s*$,' . |
23 \ '\%(^\s*\)\@<=\<for\>.\{-}\<\%(to\|downto\)\>:\%(^\s*\)\@<=\<endfor\>\s*;\s*$,' . | 26 \ '\%(^\s*\)\@<=\<for\>.\{-}\<\%(to\|downto\)\>:\%(^\s*\)\@<=\<endfor\>\s*;\s*$,' . |
24 \ '\%(^\s*\)\@<=\<if\>\s*(.\{-})\s*then:\%(^\s*\)\@<=\<else\s*if\>\s*([^)]*)\s*then:\%(^\s*\)\@<=\<else\>:\%(^\s*\)\@<=\<endif\>\s*;\s*$' | 27 \ '\%(^\s*\)\@<=\<if\>\s*(.\{-})\s*then:\%(^\s*\)\@<=\<else\s*if\>\s*([^)]*)\s*then:\%(^\s*\)\@<=\<else\>:\%(^\s*\)\@<=\<endif\>\s*;\s*$' |
28 let b:undo_ftplugin .= " | unlet! b:match_ignorecase b:match_words" | |
25 endif | 29 endif |
26 | 30 |
27 if has("gui_win32") && !exists("b:browsefilter") | 31 if (has("gui_win32") || has("gui_gtk")) && !exists("b:browsefilter") |
28 let b:browsefilter = "InstallShield Files (*.rul)\t*.rul\n" . | 32 let b:browsefilter = "InstallShield Files (*.rul)\t*.rul\n" . |
29 \ "All Files (*.*)\t*.*\n" | 33 \ "All Files (*.*)\t*\n" |
34 let b:undo_ftplugin .= " | unlet! b:browsefilter" | |
30 endif | 35 endif |
31 | 36 |
32 let &cpo = s:cpo_save | 37 let &cpo = s:cpo_save |
33 unlet s:cpo_save | 38 unlet s:cpo_save |