summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNico Weber <nicolasweber@gmx.de>2013-04-16 19:20:49 (GMT)
committerNico Weber <nicolasweber@gmx.de>2013-04-16 19:20:49 (GMT)
commit7bf53c69741052e93a8096b1654fbebfc6983fad (patch)
tree6e573167ccda717e2cd3c6724d9150dbe7ec830d
parent96cc21d1ed14938852249718705ca536daa32817 (diff)
parent1b9c7bb51a97e6d3738cdad2d5520295b667ef31 (diff)
downloadNinja-7bf53c69741052e93a8096b1654fbebfc6983fad.zip
Ninja-7bf53c69741052e93a8096b1654fbebfc6983fad.tar.gz
Ninja-7bf53c69741052e93a8096b1654fbebfc6983fad.tar.bz2
Merge pull request #547 from nico/vim_cpo
Note that version 1.3 of the vim syntax file has been sent upstream.
-rw-r--r--misc/ninja.vim10
1 files changed, 8 insertions, 2 deletions
diff --git a/misc/ninja.vim b/misc/ninja.vim
index ec120d8..d813267 100644
--- a/misc/ninja.vim
+++ b/misc/ninja.vim
@@ -2,9 +2,9 @@
" Language: ninja build file as described at
" http://martine.github.com/ninja/manual.html
" Version: 1.3
-" Last Change: 2013/04/09
+" Last Change: 2013/04/16
" Maintainer: Nicolas Weber <nicolasweber@gmx.de>
-" Version 1.2 of this script is in the upstream vim repository and will be
+" Version 1.3 of this script is in the upstream vim repository and will be
" included in the next vim release. If you change this, please send your change
" upstream.
@@ -16,6 +16,9 @@ if exists("b:current_syntax")
finish
endif
+let s:cpo_save = &cpo
+set cpo&vim
+
syn case match
syn match ninjaComment /#.*/ contains=@Spell
@@ -73,3 +76,6 @@ hi def link ninjaSimpleVar ninjaVar
hi def link ninjaVar Identifier
let b:current_syntax = "ninja"
+
+let &cpo = s:cpo_save
+unlet s:cpo_save