summaryrefslogtreecommitdiff
path: root/runtime/syntax/cweb.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2011-12-30 13:11:27 +0100
committerBram Moolenaar <Bram@vim.org>2011-12-30 13:11:27 +0100
commitb6b046b281fac168a78b3eafdea9274bef06882f (patch)
tree8d50c58421278f30521e290a8cf18c6085b78168 /runtime/syntax/cweb.vim
parentdeaf7b739791095e2c98a7087dfe9b3c8dfd56f2 (diff)
downloadvim-git-b6b046b281fac168a78b3eafdea9274bef06882f.tar.gz
Updated runtime files.
Diffstat (limited to 'runtime/syntax/cweb.vim')
-rw-r--r--runtime/syntax/cweb.vim7
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/syntax/cweb.vim b/runtime/syntax/cweb.vim
index 4062b0a4e..39b593d2b 100644
--- a/runtime/syntax/cweb.vim
+++ b/runtime/syntax/cweb.vim
@@ -1,7 +1,7 @@
" Vim syntax file
" Language: CWEB
" Maintainer: Andreas Scherer <andreas.scherer@pobox.com>
-" Last Change: April 30, 2001
+" Last Change: 2011 Dec 25 by Thilo Six
" Details of the CWEB language can be found in the article by Donald E. Knuth
" and Silvio Levy, "The CWEB System of Structured Documentation", included as
@@ -36,6 +36,9 @@ endif
" C/C++ section of a CWEB chunk or in inner C/C++ context in "|...|" groups.
syntax include @webIncludedC <sfile>:p:h/cpp.vim
+let s:cpo_save = &cpo
+set cpo&vim
+
" Inner C/C++ context (ICC) should be quite simple as it's comprised of
" material in "|...|"; however the naive definition for this region would
" hickup at the innocious "\|" TeX macro. Note: For the time being we expect
@@ -77,4 +80,6 @@ endif
let b:current_syntax = "cweb"
+let &cpo = s:cpo_save
+unlet s:cpo_save
" vim: ts=8