package com.welovecoding.nbeditorconfig.editor.parser;

import com.welovecoding.nbeditorconfig.config.Settings;
import java.util.Collection;
import java.util.Collections;
import org.netbeans.api.editor.mimelookup.MimeRegistration;
import org.netbeans.modules.parsing.api.Snapshot;
import org.netbeans.modules.parsing.spi.SchedulerTask;
import org.netbeans.modules.parsing.spi.TaskFactory;

/**
 *
 * @author junichi11
 */
@MimeRegistration(mimeType = Settings.MIME_TYPE, service = TaskFactory.class)
public class SyntaxErrorsTaskFactory extends TaskFactory {

  @Override
  public Collection<? extends SchedulerTask> create(Snapshot snapshot) {
    return Collections.singleton(new SyntaxErrorsTask());
  }

}
