diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-06-09 19:44:55 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-06-09 19:44:55 +0200 |
commit | f2571c61d5aa05682ae4d358e625348b61adc861 (patch) | |
tree | aae56b60e5a0fe20ea3c106539c63926380b4178 /runtime/syntax/po.vim | |
parent | d0d0fe09cf95bf88f643ec07d07939cbd41f8e63 (diff) | |
download | vim-git-f2571c61d5aa05682ae4d358e625348b61adc861.tar.gz |
Updated runtime files.
Diffstat (limited to 'runtime/syntax/po.vim')
-rw-r--r-- | runtime/syntax/po.vim | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/runtime/syntax/po.vim b/runtime/syntax/po.vim index c09b96035..2ab13ac0b 100644 --- a/runtime/syntax/po.vim +++ b/runtime/syntax/po.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: po (gettext) " Maintainer: Dwayne Bailey <dwayne@translate.org.za> -" Last Change: 2012 Apr 30 +" Last Change: 2015 Jun 07 " Contributors: Dwayne Bailey (Most advanced syntax highlighting) " Leonardo Fontenelle (Spell checking) " Nam SungHyun <namsh@kldp.org> (Original maintainer) @@ -52,6 +52,9 @@ syn match poCommentTranslator "^# .*$" contains=poCopyrightUnset syn match poCommentAutomatic "^#\..*$" syn match poCommentSources "^#:.*$" syn match poCommentFlags "^#,.*$" contains=poFlagFuzzy +syn match poDiffOld '\(^#| "[^{]*+}\|{+[^}]*+}\|{+[^}]*\|"$\)' contained +syn match poDiffNew '\(^#| "[^{]*-}\|{-[^}]*-}\|{-[^}]*\|"$\)' contained +syn match poCommentDiff "^#|.*$" contains=poDiffOld,poDiffNew " Translations (also includes header fields as they appear in a translation msgstr) syn region poCommentKDE start=+"_: +ms=s+1 end="\\n" end="\"\n^msgstr"me=s-1 contained @@ -94,8 +97,11 @@ if version >= 508 || !exists("did_po_syn_inits") HiLink poCommentAutomatic Comment HiLink poCommentTranslator Comment HiLink poCommentFlags Special + HiLink poCommentDiff Comment HiLink poCopyrightUnset Todo HiLink poFlagFuzzy Todo + HiLink poDiffOld Todo + HiLink poDiffNew Special HiLink poObsolete Comment HiLink poStatementMsgid Statement |