Mercurial > vim
annotate runtime/ftplugin/ant.vim @ 32357:5e2f81645b10 v9.0.1510
patch 9.0.1510: misleading variable name for error message
Commit: https://github.com/vim/vim/commit/70e8028a4d63c83f67bc3314d064613e2041e462
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri May 5 22:58:34 2023 +0100
patch 9.0.1510: misleading variable name for error message
Problem: Misleading variable name for error message.
Solution: Change "name" to "number". (closes https://github.com/vim/vim/issues/12345)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 06 May 2023 00:00:03 +0200 |
parents | c968191a8557 |
children | 8ae680be2a51 |
rev | line source |
---|---|
7 | 1 " Vim filetype plugin file |
2 " Language: ant | |
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 = "XML Files (*.xml)\t*.xml\n" . | |
19 \ "All Files (*.*)\t*.*\n" | |
20 | |
21 runtime! ftplugin/xml.vim ftplugin/xml_*.vim ftplugin/xml/*.vim | |
22 let b:did_ftplugin = 1 | |
23 | |
24 " Override our defaults if these were set by an included ftplugin. | |
25 if exists("b:undo_ftplugin") | |
26 let s:undo_ftplugin = b:undo_ftplugin | |
27 endif | |
28 if exists("b:browsefilter") | |
29 let s:browsefilter = b:browsefilter | |
30 endif | |
31 | |
32 " Change the :browse e filter to primarily show Ant-related files. | |
33 if has("gui_win32") | |
34 let b:browsefilter = "Build Files (build.xml)\tbuild.xml\n" . | |
35 \ "Java Files (*.java)\t*.java\n" . | |
36 \ "Properties Files (*.prop*)\t*.prop*\n" . | |
37 \ "Manifest Files (*.mf)\t*.mf\n" . | |
38 \ s:browsefilter | |
39 endif | |
40 | |
41 " Undo the stuff we changed. | |
42 let b:undo_ftplugin = "unlet! b:browsefilter | " . s:undo_ftplugin | |
43 | |
44 " Restore the saved compatibility options. | |
45 let &cpo = s:save_cpo | |
3410
94601b379f38
Updated runtime files. Add Dutch translations.
Bram Moolenaar <bram@vim.org>
parents:
2034
diff
changeset
|
46 unlet s:save_cpo |