Mercurial > projects > dwt-addons
diff dwtx/jface/text/rules/WordPatternRule.d @ 134:51e6e63f930e
Regex fix for casts
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 01:46:20 +0200 |
parents | 7d818bd32d63 |
children | 1a5b8f8129df |
line wrap: on
line diff
--- a/dwtx/jface/text/rules/WordPatternRule.d Sun Aug 24 01:29:22 2008 +0200 +++ b/dwtx/jface/text/rules/WordPatternRule.d Sun Aug 24 01:46:20 2008 +0200 @@ -69,7 +69,7 @@ * @param token the token to be returned on success */ public this(IWordDetector detector, String startSequence, String endSequence, IToken token) { - this(detector, startSequence, endSequence, token, (char)0); + this(detector, startSequence, endSequence, token, cast(wchar)0); } /** @@ -103,8 +103,8 @@ protected bool endSequenceDetected(ICharacterScanner scanner) { fBuffer.setLength(0); int c= scanner.read(); - while (fDetector.isWordPart((char) c)) { - fBuffer.append((char) c); + while (fDetector.isWordPart(cast(wchar) c)) { + fBuffer.append(cast(wchar) c); c= scanner.read(); } scanner.unread();