byte markTokensImpl(final byte token, @NotNull final Segment line)
An abstract method that splits a line up into tokens.
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.
static final byte LITERAL2
Literal 2 token id.
static final byte COMMENT2
Comment 2 token id.
HTMLTokenMarker(final boolean js)
static final byte INVALID
Invalid token id.
static final byte KEYWORD2
Keyword 2 token id.
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.
static KeywordMap getJavaScriptKeywords()
void doKeyword(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.