annotate runtime/ftplugin/verilog.vim @ 9842:f8396c6e5709 v7.4.2196

commit https://github.com/vim/vim/commit/91c5262b19fd2e558fe87b78c7767c7c5a270be8 Author: Bram Moolenaar <Bram@vim.org> Date: Wed Aug 10 23:02:45 2016 +0200 patch 7.4.2196 Problem: glob2regpat test doesn't test everything on MS-Windows. Solution: Add patterns with backslash handling.
author Christian Brabandt <cb@256bit.org>
date Wed, 10 Aug 2016 23:15:06 +0200
parents 7bc41231fbc7
children 8d76a56861ec
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: Verilog HDL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3 " Maintainer: Chih-Tsun Huang <cthuang@larc.ee.nthu.edu.tw>
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 857
diff changeset
4 " Last Change: Wed Sep 3 15:24:49 CST 2008
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5 " URL: http://larc.ee.nthu.edu.tw/~cthuang/vim/ftplugin/verilog.vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 " Only do this when not done yet for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 if exists("b:did_ftplugin")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 finish
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 " Don't load another plugin for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 let b:did_ftplugin = 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 857
diff changeset
15 " Set 'cpoptions' to allow line continuations
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 857
diff changeset
16 let s:cpo_save = &cpo
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 857
diff changeset
17 set cpo&vim
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 857
diff changeset
18
504
35cde31bdcbd updated for version 7.0141
vimboss
parents: 7
diff changeset
19 " Undo the plugin effect
35cde31bdcbd updated for version 7.0141
vimboss
parents: 7
diff changeset
20 let b:undo_ftplugin = "setlocal fo< com< tw<"
857
b933657f7c9d updated for version 7.0g01
vimboss
parents: 504
diff changeset
21 \ . "| unlet! b:browsefilter b:match_ignorecase b:match_words"
504
35cde31bdcbd updated for version 7.0141
vimboss
parents: 7
diff changeset
22
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 " Set 'formatoptions' to break comment lines but not other lines,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 " and insert the comment leader when hitting <CR> or using "o".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 setlocal fo-=t fo+=croqlm1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 " Set 'comments' to format dashed lists in comments.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 setlocal comments=sO:*\ -,mO:*\ \ ,exO:*/,s1:/*,mb:*,ex:*/,://
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 " Format comments to be up to 78 characters long
504
35cde31bdcbd updated for version 7.0141
vimboss
parents: 7
diff changeset
31 if &textwidth == 0
35cde31bdcbd updated for version 7.0141
vimboss
parents: 7
diff changeset
32 setlocal tw=78
35cde31bdcbd updated for version 7.0141
vimboss
parents: 7
diff changeset
33 endif
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 " Win32 can filter files in the browse dialog
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 if has("gui_win32") && !exists("b:browsefilter")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 let b:browsefilter = "Verilog Source Files (*.v)\t*.v\n" .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 \ "All Files (*.*)\t*.*\n"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 endif
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 " Let the matchit plugin know what items can be matched.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 if exists("loaded_matchit")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 let b:match_ignorecase=0
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 let b:match_words=
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 \ '\<begin\>:\<end\>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 \ '\<case\>\|\<casex\>\|\<casez\>:\<endcase\>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 \ '\<module\>:\<endmodule\>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 \ '\<if\>:\<else\>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49 \ '\<function\>:\<endfunction\>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 \ '`ifdef\>:`else\>:`endif\>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 \ '\<task\>:\<endtask\>,' .
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52 \ '\<specify\>:\<endspecify\>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
53 endif
2034
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 857
diff changeset
54
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 857
diff changeset
55 " Reset 'cpoptions' back to the user's setting
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 857
diff changeset
56 let &cpo = s:cpo_save
7bc41231fbc7 Update runtime files.
Bram Moolenaar <bram@zimbu.org>
parents: 857
diff changeset
57 unlet s:cpo_save