enum

Crystal::SyntaxHighlighter::TokenType

Inherits Enum / Comparable / Value / Object

Describes the type of a highlighter token.

Constants

NEWLINE = 0
SPACE = 1
COMMENT = 2
NUMBER = 3
CHAR = 4
SYMBOL = 5
CONST = 6
STRING = 7
IDENT = 8
KEYWORD = 9
SELF = 10
PRIMITIVE_LITERAL = 11
OPERATOR = 12
DELIMITER_START = 13
DELIMITED_TOKEN = 14
DELIMITER_END = 15
INTERPOLATION = 16
STRING_ARRAY_START = 17
STRING_ARRAY_TOKEN = 18
STRING_ARRAY_END = 19
UNDERSCORE = 20
UNKNOWN = 21

Instance methods

char?

Returns true if this enum value equals CHAR

Source
comment?

Returns true if this enum value equals COMMENT

Source
const?

Returns true if this enum value equals CONST

Source
delimited_token?

Returns true if this enum value equals DELIMITED_TOKEN

Source
delimiter_end?

Returns true if this enum value equals DELIMITER_END

Source
delimiter_start?

Returns true if this enum value equals DELIMITER_START

Source
ident?

Returns true if this enum value equals IDENT

Source
interpolation?

Returns true if this enum value equals INTERPOLATION

Source
keyword?

Returns true if this enum value equals KEYWORD

Source
newline?

Returns true if this enum value equals NEWLINE

Source
number?

Returns true if this enum value equals NUMBER

Source
operator?

Returns true if this enum value equals OPERATOR

Source
primitive_literal?

Returns true if this enum value equals PRIMITIVE_LITERAL

Source
self?

Returns true if this enum value equals SELF

Source
space?

Returns true if this enum value equals SPACE

Source
string?

Returns true if this enum value equals STRING

Source
string_array_end?

Returns true if this enum value equals STRING_ARRAY_END

Source
string_array_start?

Returns true if this enum value equals STRING_ARRAY_START

Source
string_array_token?

Returns true if this enum value equals STRING_ARRAY_TOKEN

Source
symbol?

Returns true if this enum value equals SYMBOL

Source
underscore?

Returns true if this enum value equals UNDERSCORE

Source
unknown?

Returns true if this enum value equals UNKNOWN

Source