From 92dff1827aa0a199bd26139982c485fe366a5727 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 11 Feb 2014 19:15:50 +0100 Subject: Update runtime files. Add support for systemverilog. --- runtime/ftplugin/debchangelog.vim | 4 ++-- runtime/ftplugin/python.vim | 4 ++-- runtime/ftplugin/systemverilog.vim | 11 +++++++++++ 3 files changed, 15 insertions(+), 4 deletions(-) create mode 100644 runtime/ftplugin/systemverilog.vim (limited to 'runtime/ftplugin') diff --git a/runtime/ftplugin/debchangelog.vim b/runtime/ftplugin/debchangelog.vim index c74284fd4..d2718db88 100644 --- a/runtime/ftplugin/debchangelog.vim +++ b/runtime/ftplugin/debchangelog.vim @@ -3,7 +3,7 @@ " Maintainer: Debian Vim Maintainers " Former Maintainers: Michael Piefel " Stefano Zacchiroli -" Last Change: 2012-01-31 +" Last Change: 2014-01-31 " License: Vim License " URL: http://hg.debian.org/hg/pkg-vim/vim/file/unstable/runtime/ftplugin/debchangelog.vim @@ -152,7 +152,7 @@ function CloseBug() endfunction function Distribution(dist) - call setline(1, substitute(getline(1), ") [[:lower:] ]*;", ") " . a:dist . ";", "")) + call setline(1, substitute(getline(1), ') *\%(UNRELEASED\|\l\+\);', ") " . a:dist . ";", "")) endfunction function Urgency(urg) diff --git a/runtime/ftplugin/python.vim b/runtime/ftplugin/python.vim index 59afdb556..75c7e8799 100644 --- a/runtime/ftplugin/python.vim +++ b/runtime/ftplugin/python.vim @@ -1,7 +1,7 @@ " Vim filetype plugin file " Language: python " Maintainer: Johannes Zellner -" Last Change: 2013 Nov 28 +" Last Change: 2014 Feb 09 " Last Change By Johannes: Wed, 21 Apr 2004 13:13:08 CEST if exists("b:did_ftplugin") | finish | endif @@ -11,7 +11,7 @@ set cpo&vim setlocal cinkeys-=0# setlocal indentkeys-=0# -setlocal include=\s*\\(from\\\|import\\) +setlocal include=^\\s*\\(from\\\|import\\) setlocal includeexpr=substitute(v:fname,'\\.','/','g') setlocal suffixesadd=.py setlocal comments=b:#,fb:- diff --git a/runtime/ftplugin/systemverilog.vim b/runtime/ftplugin/systemverilog.vim new file mode 100644 index 000000000..4d0f565fc --- /dev/null +++ b/runtime/ftplugin/systemverilog.vim @@ -0,0 +1,11 @@ +" Vim filetype plugin file +" Language: SystemVerilog +" Maintainer: kocha +" Last Change: 12-Aug-2013. + +if exists("b:did_ftplugin") + finish +endif + +" Behaves just like Verilog +runtime! ftplugin/verilog.vim -- cgit v1.2.1