All Downloads are FREE. Search and download functionalities are using the official Maven repository.

personthecat.catlib.linting.HjsonLinter Maven / Gradle / Ivy

Go to download

Utilities for serialization, commands, noise generation, IO, and some new data types.

The newest version!
package personthecat.catlib.linting;

import net.minecraft.class_124;

/**
 * Legacy highlighters provided for Hjson support. These are presently unused
 * by the library and may be removed at some point.
 */
public class HjsonLinter extends SyntaxLinter {

    public static final Highlighter[] HIGHLIGHTERS = {
        new RegexHighlighter(MULTILINE_DOC, color(class_124.field_1077).method_10978(true)),
        new RegexHighlighter(LINE_TODO, color(class_124.field_1054)),
        new RegexHighlighter(LINE_DOC, color(class_124.field_1077).method_10978(true)),
        new RegexHighlighter(MULTILINE_COMMENT, color(class_124.field_1080)),
        new RegexHighlighter(LINE_COMMENT, color(class_124.field_1080)),
        new RegexHighlighter(KEY, color(class_124.field_1075)),
        new RegexHighlighter(BOOLEAN_VALUE, color(class_124.field_1065)),
        new RegexHighlighter(NUMERIC_VALUE, color(class_124.field_1076)),
        new RegexHighlighter(NULL_VALUE, color(class_124.field_1061)),
        new RegexHighlighter(BAD_CLOSER, BAD_CLOSER_ERROR),
        UnbalancedTokenHighlighter.INSTANCE
    };

    public HjsonLinter() {
        super(HIGHLIGHTERS);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy