annotate runtime/ftplugin/aspvbs.vim @ 21707:8e224527391e v8.2.1403

patch 8.2.1403: Vim9: Vim highlighting may fail in cmdline window Commit: https://github.com/vim/vim/commit/3896a105eb3697b1a399255ac31c742c8840bd69 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Aug 9 14:33:55 2020 +0200 patch 8.2.1403: Vim9: Vim highlighting may fail in cmdline window Problem: Vim9: Vim highlighting fails in cmdline window if it uses Vim9 commands. Solution: Allow using :vim9script, :import and :export while in the cmdline window. (closes #6656)
author Bram Moolenaar <Bram@vim.org>
date Sun, 09 Aug 2020 14:45:03 +0200
parents 94601b379f38
children c968191a8557
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
1 " Vim filetype plugin file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2 " Language: aspvbs
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 11
diff changeset
3 " Maintainer: Dan Sharp <dwsharp at users dot sourceforge dot net>
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 11
diff changeset
4 " Last Changed: 20 Jan 2009
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 11
diff changeset
5 " URL: http://dwsharp.users.sourceforge.net/vim/ftplugin
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 if exists("b:did_ftplugin") | finish | endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 " Make sure the continuation lines below do not cause problems in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 " compatibility mode.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 let s:save_cpo = &cpo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 set cpo-=C
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 " Define some defaults in case the included ftplugins don't set them.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 let s:undo_ftplugin = ""
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 let s:browsefilter = "HTML Files (*.html, *.htm)\t*.htm*\n" .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 \ "All Files (*.*)\t*.*\n"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 let s:match_words = ""
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " Override our defaults if these were set by an included ftplugin.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 if exists("b:undo_ftplugin")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 let s:undo_ftplugin = b:undo_ftplugin
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 if exists("b:browsefilter")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 let s:browsefilter = b:browsefilter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 if exists("b:match_words")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 let s:match_words = b:match_words
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 " ASP: Active Server Pages (with Visual Basic Script)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " thanks to Gontran BAERTS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 if exists("loaded_matchit")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 let s:notend = '\%(\<end\s\+\)\@<!'
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 7
diff changeset
38 let b:match_ignorecase = 1
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 let b:match_words =
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 7
diff changeset
40 \ s:notend . '\<if\>\%(.\{-}then\s\+\w\)\@!:\<elseif\>:^\s*\<else\>:\<end\s\+\<if\>,' .
4424b47a0797 updated for version 7.0003
vimboss
parents: 7
diff changeset
41 \ s:notend . '\<select\s\+case\>:\<case\>:\<case\s\+else\>:\<end\s\+select\>,' .
4424b47a0797 updated for version 7.0003
vimboss
parents: 7
diff changeset
42 \ '^\s*\<sub\>:\<end\s\+sub\>,' .
4424b47a0797 updated for version 7.0003
vimboss
parents: 7
diff changeset
43 \ '^\s*\<function\>:\<end\s\+function\>,' .
4424b47a0797 updated for version 7.0003
vimboss
parents: 7
diff changeset
44 \ '\<class\>:\<end\s\+class\>,' .
4424b47a0797 updated for version 7.0003
vimboss
parents: 7
diff changeset
45 \ '^\s*\<do\>:\<loop\>,' .
4424b47a0797 updated for version 7.0003
vimboss
parents: 7
diff changeset
46 \ '^\s*\<for\>:\<next\>,' .
4424b47a0797 updated for version 7.0003
vimboss
parents: 7
diff changeset
47 \ '\<while\>:\<wend\>,' .
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 \ s:match_words
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 " Change the :browse e filter to primarily show ASP-related files.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 if has("gui_win32")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 let b:browsefilter="ASP Files (*.asp)\t*.asp\n" . s:browsefilter
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
54 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
55
11
4424b47a0797 updated for version 7.0003
vimboss
parents: 7
diff changeset
56 let b:undo_ftplugin = "unlet! b:match_words b:match_ignorecase b:browsefilter | " . s:undo_ftplugin
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
57
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
58 " Restore the saved compatibility options.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59 let &cpo = s:save_cpo
3410
94601b379f38 Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents: 2034
diff changeset
60 unlet s:save_cpo