From a86b476e5f8e1a40f8ba843ecb3f40e9e5c8fcc8 Mon Sep 17 00:00:00 2001 From: David Majnemer Date: Mon, 21 Jun 2010 16:08:12 -0700 Subject: [PATCH] noweb should treat h files as c++ --- vim/syntax/noweb.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vim/syntax/noweb.vim b/vim/syntax/noweb.vim index e169fef..3b42205 100644 --- a/vim/syntax/noweb.vim +++ b/vim/syntax/noweb.vim @@ -71,9 +71,9 @@ syn region nowebName start="<<" end=">>" oneline contains=nowebTT " NOWEB code chunks are defined by <>= " and ended by the next "@" (not a "@@"!) in the first column of a line. syntax region nowebCode start=/<<.>>=\|<<[^ ].*[^ ]>>=/ end=/^@ \|^@$/me=e-3 contains=@nowebIncludedConf, nowebName containedin=tex.*Zone -syntax region nowebCode start=/<<[^ ].*\.\(c\|h\)>>=/ end=/^@ \|^@$/me=e-3 contains=@nowebIncludedC, nowebName containedin=tex.*Zone +syntax region nowebCode start=/<<[^ ].*\.c>>=/ end=/^@ \|^@$/me=e-3 contains=@nowebIncludedC, nowebName containedin=tex.*Zone syntax region nowebCode start=/<<[^ ].*\.\(ml\|mli\)>>=/ end=/^@ \|^@$/me=e-3 contains=@nowebIncludedOcaml, nowebName containedin=tex.*Zone -syntax region nowebCode start=/<<[^ ].*\.\(cc\|cpp\|C\)>>=/ end=/^@ \|^@$/me=e-3 contains=@nowebIncludedCpp, nowebName containedin=tex.*Zone +syntax region nowebCode start=/<<[^ ].*\.\(cc\|cpp\|C\|h\)>>=/ end=/^@ \|^@$/me=e-3 contains=@nowebIncludedCpp, nowebName containedin=tex.*Zone syntax region nowebCode start=/<>=/ end=/^@ \|^@$/me=e-3 contains=@nowebIncludedMakefile, nowebName containedin=tex.*Zone " Here, we mark the beginning of a new text chunk.