package flow.netbeans.markdown.highlighter;

import java.util.Collection;
import java.util.EnumSet;
import org.netbeans.spi.lexer.LanguageHierarchy;
import org.netbeans.spi.lexer.Lexer;
import org.netbeans.spi.lexer.LexerRestartInfo;

public class MarkdownLanguageHierarchy extends LanguageHierarchy<MarkdownTokenId> {

    @Override
    protected synchronized Collection<MarkdownTokenId> createTokenIds () {
        return EnumSet.allOf (MarkdownTokenId.class);
    }

    @Override
    protected Lexer<MarkdownTokenId> createLexer (LexerRestartInfo<MarkdownTokenId> info) {
        return new MarkdownLexer(info);
    }

    @Override
    protected String mimeType () {
        return "text/x-markdown";
    }

}

@@ -40,16 +40,75 @@
 ter;%0D%0A%0D%0A
+import flow.netbeans.markdown.csl.MarkdownLanguageConfig;%0D%0A
 import j
@@ -765,25 +765,40 @@
 urn 
-%22text/x-markdown%22
+MarkdownLanguageConfig.MIME_TYPE
 ;%0D%0A 

Make use of MarkdownLanguageConfig constants