C# verbatim strings spanning multiple lines was missed by the csVerbatimString region. This issue was first reported to me by Stefan Dobrovolny.
A patch fixing this issue was then sent in by Ilya Bobir fixing this issue as well as changing the syntax include search behavior for xml.vim inclusion. Simon Olofsson forwarded the following as well: https://bugs.launchpad.net/ubuntu/+source/vim/+bug/383791 This prevented spell checking in /// comments. -- Anduin Withers --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
diff --git a/vim72/runtime/syntax/cs.vim b/vim72/runtime/syntax/cs.vim index 7e4a572..2ba629f 100644 --- a/vim72/runtime/syntax/cs.vim +++ b/vim72/runtime/syntax/cs.vim @@ -2,7 +2,7 @@ " Language: C# " Maintainer: Anduin Withers <[email protected]> " Former Maintainer: Johannes Zellner <[email protected]> -" Last Change: Sun Apr 30 19:26:18 PDT 2006 +" Last Change: Fri Aug 14 13:56:37 PDT 2009 " Filenames: *.cs " $Id: cs.vim,v 1.4 2006/05/03 21:20:02 vimboss Exp $ " @@ -78,8 +78,8 @@ syn keyword csXmlTag contained list listheader item term description altcomplia syn cluster xmlTagHook add=csXmlTag syn match csXmlCommentLeader +\/\/\/+ contained -syn match csXmlComment +\/\/\/.*$+ contains=csXmlCommentLeader,@csXml -syntax include @csXml <sfile>:p:h/xml.vim +syn match csXmlComment +\/\/\/.*$+ contains=csXmlCommentLeader,@csXml,@Spell +syntax include @csXml syntax/xml.vim hi def link xmlRegion Comment @@ -100,7 +100,7 @@ syn match csSpecialChar contained +\\["\\'0abfnrtvx]+ " unicode characters syn match csUnicodeNumber +\\\(u\x\{4}\|U\x\{8}\)+ contained contains=csUnicodeSpecifier syn match csUnicodeSpecifier +\\[uU]+ contained -syn region csVerbatimString start=+@"+ end=+"+ end=+$+ skip=+""+ contains=csVerbatimSpec,@Spell +syn region csVerbatimString start=+@"+ end=+"+ skip=+""+ contains=csVerbatimSpec,@Spell syn match csVerbatimSpec +@"+he=s+1 contained syn region csString start=+"+ end=+"+ end=+$+ contains=csSpecialChar,csSpecialError,csUnicodeNumber,@Spell syn match csCharacter "'[^']*'" contains=csSpecialChar,csSpecialCharError
