Mercurial > vim
annotate runtime/ftplugin/aspvbs.vim @ 28582:278a14b00896 v8.2.4815
patch 8.2.4815: cannot build with older GTK version
Commit: https://github.com/vim/vim/commit/d42b83942e6741de2bb630ee17a2e9fcc03d6b43
Author: Ernie Rael <errael@raelity.com>
Date: Sat Apr 23 19:52:23 2022 +0100
patch 8.2.4815: cannot build with older GTK version
Problem: Cannot build with older GTK version.
Solution: Use gtk_window_get_size() instead of gdk_window_get_width() and
gdk_window_get_height(). (Ernie Rael, closes #10257)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 23 Apr 2022 21:00:03 +0200 |
parents | c968191a8557 |
children | 8ae680be2a51 |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
2 " Language: aspvbs | |
28010 | 3 " |
4 " This runtime file is looking for a new maintainer. | |
5 " | |
6 " Former maintainer: Dan Sharp | |
2034 | 7 " Last Changed: 20 Jan 2009 |
7 | 8 |
9 if exists("b:did_ftplugin") | finish | endif | |
10 | |
11 " Make sure the continuation lines below do not cause problems in | |
12 " compatibility mode. | |
13 let s:save_cpo = &cpo | |
14 set cpo-=C | |
15 | |
16 " Define some defaults in case the included ftplugins don't set them. | |
17 let s:undo_ftplugin = "" | |
18 let s:browsefilter = "HTML Files (*.html, *.htm)\t*.htm*\n" . | |
19 \ "All Files (*.*)\t*.*\n" | |
20 let s:match_words = "" | |
21 | |
22 runtime! ftplugin/html.vim ftplugin/html_*.vim ftplugin/html/*.vim | |
23 let b:did_ftplugin = 1 | |
24 | |
25 " Override our defaults if these were set by an included ftplugin. | |
26 if exists("b:undo_ftplugin") | |
27 let s:undo_ftplugin = b:undo_ftplugin | |
28 endif | |
29 if exists("b:browsefilter") | |
30 let s:browsefilter = b:browsefilter | |
31 endif | |
32 if exists("b:match_words") | |
33 let s:match_words = b:match_words | |
34 endif | |
35 | |
36 " ASP: Active Server Pages (with Visual Basic Script) | |
37 " thanks to Gontran BAERTS | |
38 if exists("loaded_matchit") | |
39 let s:notend = '\%(\<end\s\+\)\@<!' | |
11 | 40 let b:match_ignorecase = 1 |
7 | 41 let b:match_words = |
11 | 42 \ s:notend . '\<if\>\%(.\{-}then\s\+\w\)\@!:\<elseif\>:^\s*\<else\>:\<end\s\+\<if\>,' . |
43 \ s:notend . '\<select\s\+case\>:\<case\>:\<case\s\+else\>:\<end\s\+select\>,' . | |
44 \ '^\s*\<sub\>:\<end\s\+sub\>,' . | |
45 \ '^\s*\<function\>:\<end\s\+function\>,' . | |
46 \ '\<class\>:\<end\s\+class\>,' . | |
47 \ '^\s*\<do\>:\<loop\>,' . | |
48 \ '^\s*\<for\>:\<next\>,' . | |
49 \ '\<while\>:\<wend\>,' . | |
7 | 50 \ s:match_words |
51 endif | |
52 | |
53 " Change the :browse e filter to primarily show ASP-related files. | |
54 if has("gui_win32") | |
55 let b:browsefilter="ASP Files (*.asp)\t*.asp\n" . s:browsefilter | |
56 endif | |
57 | |
11 | 58 let b:undo_ftplugin = "unlet! b:match_words b:match_ignorecase b:browsefilter | " . s:undo_ftplugin |
7 | 59 |
60 " Restore the saved compatibility options. | |
61 let &cpo = s:save_cpo | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
62 unlet s:save_cpo |