Mercurial > projects > dwt-addons
diff dwtx/jface/text/rules/DefaultDamagerRepairer.d @ 138:b6bad70d540a
Regex instanceof changes
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 24 Aug 2008 02:26:23 +0200 |
parents | 6dcb0baaa031 |
children | eb21d3dfc767 |
line wrap: on
line diff
--- a/dwtx/jface/text/rules/DefaultDamagerRepairer.d Sun Aug 24 02:22:48 2008 +0200 +++ b/dwtx/jface/text/rules/DefaultDamagerRepairer.d Sun Aug 24 02:26:23 2008 +0200 @@ -230,7 +230,7 @@ */ protected TextAttribute getTokenTextAttribute(IToken token) { Object data= token.getData(); - if (data instanceof TextAttribute) + if ( cast(TextAttribute)data ) return cast(TextAttribute) data; return fDefaultTextAttribute; }