Mercurial > vim
annotate runtime/ftplugin/ishd.vim @ 22081:2b9a2bc77b42 v8.2.1590
patch 8.2.1590: Vim9: bufnr() doesn't take "true" argument
Commit: https://github.com/vim/vim/commit/fe136c9a85412f4bdb5de70ef8416af5fa382b28
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 4 18:35:26 2020 +0200
patch 8.2.1590: Vim9: bufnr() doesn't take "true" argument
Problem: Vim9: bufnr() doesn't take "true" argument.
Solution: use tv_get_bool_chk(). (closes https://github.com/vim/vim/issues/6863)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 04 Sep 2020 18:45:04 +0200 |
parents | dd6c2497c997 |
children | 02939ae3aaca |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
2 " Language: InstallShield (ft=ishd) | |
3 " Maintainer: Johannes Zellner <johannes@zellner.org> | |
4 " Last Change: Sat, 24 May 2003 11:55:36 CEST | |
5 | |
6 if exists("b:did_ftplugin") | finish | endif | |
7 let b:did_ftplugin = 1 | |
8 | |
9 setlocal foldmethod=syntax | |
10 | |
3526
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
233
diff
changeset
|
11 " Using line continuation here. |
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
233
diff
changeset
|
12 let s:cpo_save = &cpo |
7 | 13 set cpo-=C |
14 | |
15 " matchit support | |
16 if exists("loaded_matchit") | |
17 let b:match_ignorecase=0 | |
18 let b:match_words= | |
19 \ '\%(^\s*\)\@<=\<function\>\s\+[^()]\+\s*(:\%(^\s*\)\@<=\<begin\>\s*$:\%(^\s*\)\@<=\<return\>:\%(^\s*\)\@<=\<end\>\s*;\s*$,' . | |
20 \ '\%(^\s*\)\@<=\<repeat\>\s*$:\%(^\s*\)\@<=\<until\>\s\+.\{-}\s*;\s*$,' . | |
21 \ '\%(^\s*\)\@<=\<switch\>\s*(.\{-}):\%(^\s*\)\@<=\<\%(case\|default\)\>:\%(^\s*\)\@<=\<endswitch\>\s*;\s*$,' . | |
22 \ '\%(^\s*\)\@<=\<while\>\s*(.\{-}):\%(^\s*\)\@<=\<endwhile\>\s*;\s*$,' . | |
23 \ '\%(^\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*$' | |
25 endif | |
26 | |
27 if has("gui_win32") && !exists("b:browsefilter") | |
28 let b:browsefilter = "InstallShield Files (*.rul)\t*.rul\n" . | |
29 \ "All Files (*.*)\t*.*\n" | |
30 endif | |
3526
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
233
diff
changeset
|
31 |
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
233
diff
changeset
|
32 let &cpo = s:cpo_save |
dd6c2497c997
Fix more 'cpo' issues in runtime files.
Bram Moolenaar <bram@vim.org>
parents:
233
diff
changeset
|
33 unlet s:cpo_save |