Package org.fife.ui.rsyntaxtextarea
Interface TokenTypes
- All Known Subinterfaces:
Token
- All Known Implementing Classes:
SyntaxScheme
,TokenImpl
public interface TokenTypes
All token types supported by RSyntaxTextArea.
If you're creating your own TokenMaker
for a new language, it's
important to note that while most of these token types are used purely
for styling information, that TokenTypes.SEPARATOR
is given special
treatment in this library. Specifically, many utility methods assume that
tokens such as curly braces and square brackets are identified as type
SEPARATOR
. For example,
RSyntaxTextArea.setPaintMatchedBracketPair
makes this assumption.
Note that all valid token types are >= 0, so extensions of the TokenMaker class are free to internally use all ints < 0 ONLY for "end-of-line" style markers; they are ignored by painting implementations.
- Version:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
Tokens of typeNULL
mark the end of lines with no multi-line token at the end being continued to the next line, for example, being in the middle of a block comment in Java.static final int
static final int
static final int
static final int
static final int
static final int
Separators are typically single-character tokens such as parens brackets and braces ([
,]
,{
,}
, etc.).static final int
static final int
-
Field Details
-
NULL
static final int NULLTokens of typeNULL
mark the end of lines with no multi-line token at the end being continued to the next line, for example, being in the middle of a block comment in Java.- See Also:
-
COMMENT_EOL
static final int COMMENT_EOL- See Also:
-
COMMENT_MULTILINE
static final int COMMENT_MULTILINE- See Also:
-
COMMENT_DOCUMENTATION
static final int COMMENT_DOCUMENTATION- See Also:
-
COMMENT_KEYWORD
static final int COMMENT_KEYWORD- See Also:
-
COMMENT_MARKUP
static final int COMMENT_MARKUP- See Also:
-
RESERVED_WORD
static final int RESERVED_WORD- See Also:
-
RESERVED_WORD_2
static final int RESERVED_WORD_2- See Also:
-
FUNCTION
static final int FUNCTION- See Also:
-
LITERAL_BOOLEAN
static final int LITERAL_BOOLEAN- See Also:
-
LITERAL_NUMBER_DECIMAL_INT
static final int LITERAL_NUMBER_DECIMAL_INT- See Also:
-
LITERAL_NUMBER_FLOAT
static final int LITERAL_NUMBER_FLOAT- See Also:
-
LITERAL_NUMBER_HEXADECIMAL
static final int LITERAL_NUMBER_HEXADECIMAL- See Also:
-
LITERAL_STRING_DOUBLE_QUOTE
static final int LITERAL_STRING_DOUBLE_QUOTE- See Also:
-
LITERAL_CHAR
static final int LITERAL_CHAR- See Also:
-
LITERAL_BACKQUOTE
static final int LITERAL_BACKQUOTE- See Also:
-
DATA_TYPE
static final int DATA_TYPE- See Also:
-
VARIABLE
static final int VARIABLE- See Also:
-
REGEX
static final int REGEX- See Also:
-
ANNOTATION
static final int ANNOTATION- See Also:
-
IDENTIFIER
static final int IDENTIFIER- See Also:
-
WHITESPACE
static final int WHITESPACE- See Also:
-
SEPARATOR
static final int SEPARATORSeparators are typically single-character tokens such as parens brackets and braces ([
,]
,{
,}
, etc.). In particular, brackets and braces must be of this token type for bracket matching to work.- See Also:
-
OPERATOR
static final int OPERATOR- See Also:
-
PREPROCESSOR
static final int PREPROCESSOR- See Also:
-
MARKUP_TAG_DELIMITER
static final int MARKUP_TAG_DELIMITER- See Also:
-
MARKUP_TAG_NAME
static final int MARKUP_TAG_NAME- See Also:
-
MARKUP_TAG_ATTRIBUTE
static final int MARKUP_TAG_ATTRIBUTE- See Also:
-
MARKUP_TAG_ATTRIBUTE_VALUE
static final int MARKUP_TAG_ATTRIBUTE_VALUE- See Also:
-
MARKUP_COMMENT
static final int MARKUP_COMMENT- See Also:
-
MARKUP_DTD
static final int MARKUP_DTD- See Also:
-
MARKUP_PROCESSING_INSTRUCTION
static final int MARKUP_PROCESSING_INSTRUCTION- See Also:
-
MARKUP_CDATA_DELIMITER
static final int MARKUP_CDATA_DELIMITER- See Also:
-
MARKUP_CDATA
static final int MARKUP_CDATA- See Also:
-
MARKUP_ENTITY_REFERENCE
static final int MARKUP_ENTITY_REFERENCE- See Also:
-
ERROR_IDENTIFIER
static final int ERROR_IDENTIFIER- See Also:
-
ERROR_NUMBER_FORMAT
static final int ERROR_NUMBER_FORMAT- See Also:
-
ERROR_STRING_DOUBLE
static final int ERROR_STRING_DOUBLE- See Also:
-
ERROR_CHAR
static final int ERROR_CHAR- See Also:
-
DEFAULT_NUM_TOKEN_TYPES
static final int DEFAULT_NUM_TOKEN_TYPES- See Also:
-