personthecat.catlib.linting.GenericArrayLinter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of catlib-quilt Show documentation
Show all versions of catlib-quilt Show documentation
Utilities for serialization, commands, noise generation, IO, and some new data types.
The newest version!
package personthecat.catlib.linting;
import java.util.regex.Pattern;
public class GenericArrayLinter extends SyntaxLinter {
private static final Pattern ELEMENT_PATTERN = Pattern.compile("[^\\[\\],]+");
private static final Highlighter[] HIGHLIGHTERS = {
new RegexHighlighter(ELEMENT_PATTERN, RANDOM_COLOR)
};
public GenericArrayLinter() {
super(HIGHLIGHTERS);
}
}