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.
CTokenMarker()
Creates a new instance using default keywords.
byte lookup(final Segment text, final int offset, final int length)
Looks up a key.
void add(final CharSequence keyword, final byte id)
Adds a key-value mapping.
static final byte LITERAL2
Literal 2 token id.
final KeywordMap keywords
The keywords to mark.
static final byte COMMENT2
Comment 2 token id.
CTokenMarker(final boolean cpp, @NotNull final KeywordMap keywords)
Creates a new instance.
final boolean cpp
Whether preprocessor tokens should be marked.
static final byte INVALID
Invalid token id.
static final byte KEYWORD2
Keyword 2 token id.
static KeywordMap cKeywords
Default keywords for C.
byte markTokensImpl(final byte token, final @NotNull Segment line)
An abstract method that splits a line up into tokens.
static final byte KEYWORD1
Keyword 1 token id.
static final byte KEYWORD3
Keyword 3 token id.
Maps (parts of) Segments to.
static final byte LITERAL1
Literal 1 token id.
void doKeyword(@NotNull final Segment line, final int i)
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 getCKeywords()
Returns the default keywords for C.