*/
public class CoffeeScriptHTMLParserTask extends ParserResultTask<Result> {
@Override
public void run(Result result, SchedulerEvent event) {
Snapshot snapshot = result.getSnapshot();
TokenHierarchy<Document> th = TokenHierarchy.get(snapshot.getSource().getDocument(true));
if (snapshot.getMimeType().equals("text/html")) {
TokenSequence<HTMLTokenId> ts = th.tokenSequence(HTMLTokenId.language());
if (ts == null) {
TokenSequence<?> ets = th.tokenSequence();
ets.moveStart();
ets.moveNext();