DMD 1.021 and 2.004 releases

Kirk McDonald kirklin.mcdonald at gmail.com
Mon Sep 10 12:28:23 PDT 2007


Walter Bright wrote:
> Stewart Gordon wrote:
> 
>> Maybe.  But still, nested comments are probably likely to be supported 
>> by more code editors than such an unusual feature as delimited strings.
> 
> 
> Delimited strings are standard practice in Perl. C++0x is getting 
> delimited strings. Code editors that can't handle them are going to 
> become rapidly obsolete.
> 
> The more unusual feature is the token delimited strings.

Which, since there's no nesting going on, are actually very easy to 
match. The Pygments lexer matches them with the following regex:

q"([a-zA-Z_]\w*)\n.*?\n\1"

-- 
Kirk McDonald
http://kirkmcdonald.blogspot.com
Pyd: Connecting D and Python
http://pyd.dsource.org



More information about the Digitalmars-d-announce mailing list