Addition to vim syntax highlighting for D

Jason Mills jmills at cs.mun.ca
Thu Dec 28 17:14:01 PST 2006


Tim Keating wrote:
> Found a bug with VIM syntax highlighting today. If you use VIM, you 
> might want update your d.vim file as follows:
> 
> After the line:
> 
> 	syn region dRawString	start=+`+ skip=+\\`+ end=+`[cwd]\=+ 
> contains=@Spell
> 
> Add this line:
> 
> 	syn match dRawString	+`\\`+
> 
> Without this, the literal raw string `\` will break the first raw 
> literal matcher, and highlight to the next backtick char as a giant 
> multiline string literal. Admittedly minor, but annoying.
> 
> On a related note, anyone know how to submit patches to the vim project?
> 
> TK


I have uploaded a new version (0.16) of d.vim incorporating your 
changes. I have also included a couple of other changes to account for 
some new keywords and such since my last update.

http://www.vim.org/scripts/script.php?script_id=379


Jason



More information about the Digitalmars-d mailing list