On May 21, 2013 12:25 AM, "Jesse Phillips" <jessekphillip...@gmail.com> wrote: > > On Monday, 20 May 2013 at 23:08:26 UTC, Iain Buclaw wrote: >> >> Thanks. >> >> I've fixed cgdb syntax highlighting for various literals here. >> >> https://github.com/cgdb/cgdb/pull/22 >> >> Wonder if anyone has any ideas for q"( strings )" >> >> Regards > > > In case you don't know (guessing you might not based on the comment): > > q{ Token string here } > > q"( custom wysiwyg string delimiter )" > > The first should probably highlight as normal code (Vim is doing that). The second is a normal string. > > The token string is interesting since it can be used to house non-D language making D not necessarily the proper highlighting scheme.... hmm I wonder if I could make vim.d identify the language (probably needs specific indicator though).
The bit causing trouble is knowing the token that shall end the string. Regards -- Iain Buclaw *(p < e ? p++ : p) = (c & 0x0f) + '0';