42 lines
607 B
Plaintext
42 lines
607 B
Plaintext
enum Color {
|
|
RED
|
|
GREEN
|
|
BLUE
|
|
}
|
|
|
|
{
|
|
foo(bar: RED) {
|
|
baz
|
|
}
|
|
}
|
|
|
|
----------------------------------------------------
|
|
|
|
[
|
|
["keyword", "enum"], ["class-name", "Color"], ["punctuation", "{"],
|
|
["constant", "RED"],
|
|
["constant", "GREEN"],
|
|
["constant", "BLUE"],
|
|
["punctuation", "}"],
|
|
|
|
["punctuation", "{"],
|
|
|
|
"\r\n\tfoo",
|
|
["punctuation", "("],
|
|
["attr-name", "bar"],
|
|
["punctuation", ":"],
|
|
["constant", "RED"],
|
|
["punctuation", ")"],
|
|
["punctuation", "{"],
|
|
|
|
"\r\n\t\tbaz\r\n\t",
|
|
|
|
["punctuation", "}"],
|
|
|
|
["punctuation", "}"]
|
|
]
|
|
|
|
----------------------------------------------------
|
|
|
|
Checks for constants.
|