static final byte INTERNAL_FIRST
The first id that can be used for internal state in a token marker.
This package contains the other part of the script editor.
void addToken(final int length, final byte id)
Adds a token to the token list.
byte lookup(final Segment text, final int offset, final int length)
Looks up a key.
static boolean regionMatches(final boolean ignoreCase, final Segment text, final int offset, @NotNull final CharSequence match)
Checks if a sub-region of a.
void add(final CharSequence keyword, final byte id)
Adds a key-value mapping.
byte markTokensImpl(final byte token, @NotNull final Segment line)
An abstract method that splits a line up into tokens.
static final byte LITERAL2
Literal 2 token id.
static final byte INTERNAL_LAST
The last id that can be used for internal state in a token marker.
static final byte OPERATOR
Operator token id.
void doKeyword(@NotNull final Segment line, final int i)
static final byte KEYWORD1
Keyword 1 token id.
Maps (parts of) Segments to.
Class with several utility functions used by jEdit's syntax colorizing subsystem.
static final byte LITERAL1
Literal 1 token id.
A token marker that splits lines of text into tokens.
static final byte COMMENT1
Comment 1 token id.
int length
The number of lines in the model being tokenized.
static KeywordMap getLuaKeywords()