diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-09-21 22:34:02 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-09-21 22:34:02 +0200 |
commit | 006590697c134891ddb6b618355510fcb50f85f3 (patch) | |
tree | 5d6b792660d21677f3ab10a1a40bccfc354eb91a /runtime/syntax | |
parent | 62b42181fbd76d684acb682fe69292164157555d (diff) | |
download | vim-git-006590697c134891ddb6b618355510fcb50f85f3.tar.gz |
Updated runtime files.
Diffstat (limited to 'runtime/syntax')
-rw-r--r-- | runtime/syntax/po.vim | 6 | ||||
-rw-r--r-- | runtime/syntax/python.vim | 10 |
2 files changed, 12 insertions, 4 deletions
diff --git a/runtime/syntax/po.vim b/runtime/syntax/po.vim index 4475417fd..45865b5e0 100644 --- a/runtime/syntax/po.vim +++ b/runtime/syntax/po.vim @@ -1,10 +1,10 @@ " Vim syntax file " Language: po (gettext) " Maintainer: Dwayne Bailey <dwayne@translate.org.za> -" Last Change: 2008 Sep 17 +" Last Change: 2010 Sep 21 " Contributors: Dwayne Bailey (Most advanced syntax highlighting) " Leonardo Fontenelle (Spell checking) -" SungHyun Nam <goweol@gmail.com> (Original maintainer) +" Nam SungHyun <namsh@kldp.org> (Original maintainer) " For version 5.x: Clear all syntax items " For version 6.x: Quit when a syntax file was already loaded @@ -39,7 +39,7 @@ syn region poStringSTR start=+"+ skip=+\\\\\|\\"+ end=+"+ contained \ contains=@Spell,poSpecial,poFormat,poHeaderItem,poCommentKDEError,poHeaderUndefined,poPluralKDEError,poMsguniqError,poKDEdesktopFile,poHtml,poAcceleratorStr,poHtmlNot,poVariable " Header and Copyright -syn match poHeaderItem "\(Project-Id-Version\|Report-Msgid-Bugs-To\|POT-Creation-Date\|PO-Revision-Date\|Last-Translator\|Language-Team\|MIME-Version\|Content-Type\|Content-Transfer-Encoding\|Plural-Forms\|X-Generator\): " contained +syn match poHeaderItem "\(Project-Id-Version\|Report-Msgid-Bugs-To\|POT-Creation-Date\|PO-Revision-Date\|Last-Translator\|Language-Team\|Language\|MIME-Version\|Content-Type\|Content-Transfer-Encoding\|Plural-Forms\|X-Generator\): " contained syn match poHeaderUndefined "\(PACKAGE VERSION\|YEAR-MO-DA HO:MI+ZONE\|FULL NAME <EMAIL@ADDRESS>\|LANGUAGE <LL@li.org>\|CHARSET\|ENCODING\|INTEGER\|EXPRESSION\)" contained syn match poCopyrightUnset "SOME DESCRIPTIVE TITLE\|FIRST AUTHOR <EMAIL@ADDRESS>, YEAR\|Copyright (C) YEAR Free Software Foundation, Inc\|YEAR THE PACKAGE\'S COPYRIGHT HOLDER\|PACKAGE" contained diff --git a/runtime/syntax/python.vim b/runtime/syntax/python.vim index d59074321..0cdf9c4e4 100644 --- a/runtime/syntax/python.vim +++ b/runtime/syntax/python.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: Python " Maintainer: Neil Schemenauer <nas@python.ca> -" Last Change: 2009-10-13 +" Last Change: 2010 Sep 21 " Credits: Zvezdan Petkovic <zpetkovic@acm.org> " Neil Schemenauer <nas@python.ca> " Dmitry Vasiliev @@ -45,6 +45,11 @@ elseif exists("b:current_syntax") finish endif +" We need nocompatible mode in order to continue lines with backslashes. +" Original setting will be restored. +let s:cpo_save = &cpo +set cpo&vim + " Keep Python keywords in alphabetical order inside groups for easy " comparison with the table in the 'Python Language Reference' " http://docs.python.org/reference/lexical_analysis.html#keywords. @@ -292,4 +297,7 @@ endif let b:current_syntax = "python" +let &cpo = s:cpo_save +unlet s:cpo_save + " vim:set sw=2 sts=2 ts=8 noet: |