public JsPartitionScanner() {
IToken jsDocToken= new Token(JSDOC);
IToken multilineCommentToken= new Token(MULTILINE_COMMENT);
setPredicateRules(new IPredicateRule[] {
new EndOfLineRule("//", Token.UNDEFINED), //$NON-NLS-1$
new SingleLineRule("\"", "\"", Token.UNDEFINED, '\\'), //$NON-NLS-2$ //$NON-NLS-1$
new SingleLineRule("'", "'", Token.UNDEFINED, '\\'), //$NON-NLS-2$ //$NON-NLS-1$
new EmptyCommentPredicateRule(multilineCommentToken),
new MultiLineRule("/**", "*/", jsDocToken, (char) 0, true), //$NON-NLS-1$ //$NON-NLS-2$
new MultiLineRule("/*", "*/", multilineCommentToken, (char) 0, true) //$NON-NLS-1$ //$NON-NLS-2$