comparison dwtx/jface/text/rules/RuleBasedPartitioner.d @ 138:b6bad70d540a

Regex instanceof changes
author Frank Benoit <benoit@tionex.de>
date Sun, 24 Aug 2008 02:26:23 +0200
parents 51e6e63f930e
children 75302ef3f92f
comparison
equal deleted inserted replaced
137:25170b5a8951 138:b6bad70d540a
521 * @param token the token whose content type is to be determined 521 * @param token the token whose content type is to be determined
522 * @return the token's content type 522 * @return the token's content type
523 */ 523 */
524 protected String getTokenContentType(IToken token) { 524 protected String getTokenContentType(IToken token) {
525 Object data= token.getData(); 525 Object data= token.getData();
526 if (data instanceof String) 526 if ( cast(String)data )
527 return cast(String) data; 527 return cast(String) data;
528 return null; 528 return null;
529 } 529 }
530 530
531 /* zero-length partition support */ 531 /* zero-length partition support */