Mercurial > vim
comparison runtime/indent/verilog.vim @ 3224:8b8ef1fed009
Update runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 14 Dec 2011 21:17:39 +0100 |
parents | 3fc0f57ecb91 |
children | 1218c5353e2b |
comparison
equal
deleted
inserted
replaced
3223:576648218cb5 | 3224:8b8ef1fed009 |
---|---|
1 " Language: Verilog HDL | 1 " Language: Verilog HDL |
2 " Maintainer: Chih-Tsun Huang <cthuang@larc.ee.nthu.edu.tw> | 2 " Maintainer: Chih-Tsun Huang <cthuang@larc.ee.nthu.edu.tw> |
3 " Last Change: Wed Oct 31 16:13:11 CST 2001 | 3 " Last Change: 2011 Dec 10 by Thilo Six |
4 " URL: http://larc.ee.nthu.edu.tw/~cthuang/vim/indent/verilog.vim | 4 " URL: http://larc.ee.nthu.edu.tw/~cthuang/vim/indent/verilog.vim |
5 " | 5 " |
6 " Credits: | 6 " Credits: |
7 " Suggestions for improvement, bug reports by | 7 " Suggestions for improvement, bug reports by |
8 " Leo Butlero <lbutler@brocade.com> | 8 " Leo Butlero <lbutler@brocade.com> |
28 " Only define the function once. | 28 " Only define the function once. |
29 if exists("*GetVerilogIndent") | 29 if exists("*GetVerilogIndent") |
30 finish | 30 finish |
31 endif | 31 endif |
32 | 32 |
33 set cpo-=C | 33 let s:cpo_save = &cpo |
34 set cpo&vim | |
34 | 35 |
35 function GetVerilogIndent() | 36 function GetVerilogIndent() |
36 | 37 |
37 if exists('b:verilog_indent_width') | 38 if exists('b:verilog_indent_width') |
38 let offset = b:verilog_indent_width | 39 let offset = b:verilog_indent_width |
214 | 215 |
215 " Return the indention | 216 " Return the indention |
216 return ind | 217 return ind |
217 endfunction | 218 endfunction |
218 | 219 |
220 let &cpo = s:cpo_save | |
221 unlet s:cpo_save | |
222 | |
219 " vim:sw=2 | 223 " vim:sw=2 |