Permalink
Browse files

Apply cpo path from vim mailing list

  • Loading branch information...
1 parent 433905b commit 7ad58c7bcde5ebf6ba375bea81551c1cf19f84da @lefticus lefticus committed May 21, 2012
Showing with 8 additions and 3 deletions.
  1. +8 −3 contrib/vim/syntax/chaiscript.vim
@@ -7,6 +7,9 @@ if exists("b:current_syntax")
finish
end
+let s:cpo_save = &cpo
+set cpo&vim
+
syn case match
" syncing method
@@ -16,11 +19,11 @@ syn sync fromstart
syn region chaiscriptString start=+"+ end=+"+ skip=+\\\\\|\\"+ contains=chaiscriptSpecial,chaiscriptEval,@Spell
" Escape characters
-syn match chaiscriptSpecial contained "\\[\\abfnrtv\'\"]\|\\\d\{,3}"
+syn match chaiscriptSpecial contained "\\[\\abfnrtv\'\"]\|\\\d\{,3}"
" String evals
-syn region chaiscriptEval contained start="${" end="}"
-
+syn region chaiscriptEval contained start="${" end="}"
+
" integer number
syn match chaiscriptNumber "\<\d\+\>"
@@ -91,4 +94,6 @@ hi def link chaiscriptEval Special
let b:current_syntax = "chaiscript"
+let &cpo = s:cpo_save
+unlet s:cpo_save
" vim: nowrap sw=2 sts=2 ts=8 noet

0 comments on commit 7ad58c7

Please sign in to comment.