| Re: [Dltk-dev] heredoc scanner help |
actually, i just went and re-read the wiki page, shouldn't this be simple for D?
you'd just need multiple multi-line rules that look something like this (not sure if there is an escape char):
new MultiLineRule("q(", ")\n", token, (char) 0, true);
new MultiLineRule("q{", "}\n", token, (char) 0, true);
no?
int main() { string list = q"IDENT 1. Item One 2. Item Two 3. Item Three IDENT"; writef( list ); }which is more like the Ruby and Perl heredoc.