1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-02-21 19:06:18 +02:00
chroma/lexers/testdata/kotlin.expected
2018-01-03 18:52:55 +11:00

110 lines
3.8 KiB
Plaintext

[
{"type":"Keyword","value":"package"},
{"type":"Text","value":" "},
{"type":"NameNamespace","value":"X"},
{"type":"Text","value":"\n\n"},
{"type":"Keyword","value":"import"},
{"type":"Text","value":" "},
{"type":"NameNamespace","value":"A"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"import"},
{"type":"Text","value":" "},
{"type":"NameNamespace","value":"B.*"},
{"type":"Text","value":"\n\n"},
{"type":"Keyword","value":"fun"},
{"type":"Text","value":" "},
{"type":"NameFunction","value":"main"},
{"type":"Punctuation","value":"("},
{"type":"Name","value":"args"},
{"type":"Punctuation","value":":"},
{"type":"Text","value":" "},
{"type":"Name","value":"Array"},
{"type":"Punctuation","value":"\u003c"},
{"type":"Name","value":"String"},
{"type":"Punctuation","value":"\u003e)"},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"{"},
{"type":"Text","value":"\n "},
{"type":"Keyword","value":"val"},
{"type":"Text","value":" "},
{"type":"Error","value":"` + \""},
{"type":"NameProperty","value":"`with spaces`"},
{"type":"LiteralString","value":"\" + ` = \""},
{"type":"Name","value":"hello"},
{"type":"LiteralString","value":"\"\n"},
{"type":"Text","value":" "},
{"type":"Keyword","value":"val"},
{"type":"Text","value":" "},
{"type":"NameProperty","value":"multiline"},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"="},
{"type":"Text","value":" "},
{"type":"LiteralString","value":"\"\"\"1\n2\"\"\""},
{"type":"Text","value":"\n "},
{"type":"Name","value":"StringBuilder"},
{"type":"Punctuation","value":"()."},
{"type":"Name","value":"apply"},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"{"},
{"type":"Text","value":"\n "},
{"type":"Name","value":"append"},
{"type":"Punctuation","value":"("},
{"type":"Name","value":"multiline"},
{"type":"Punctuation","value":")"},
{"type":"Text","value":"\n "},
{"type":"Punctuation","value":"}"},
{"type":"Text","value":"\n"},
{"type":"Punctuation","value":"}"},
{"type":"Text","value":"\n"},
{"type":"CommentMultiline","value":"/*\n*/"},
{"type":"Text","value":"\n\n"},
{"type":"Keyword","value":"class"},
{"type":"Text","value":" "},
{"type":"NameClass","value":"X"},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"{"},
{"type":"Text","value":"\n "},
{"type":"Keyword","value":"companion"},
{"type":"Text","value":" "},
{"type":"Keyword","value":"object"},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"{"},
{"type":"Text","value":"\n "},
{"type":"Punctuation","value":"}"},
{"type":"Text","value":"\n "},
{"type":"Keyword","value":"suspend"},
{"type":"Text","value":" "},
{"type":"Keyword","value":"inline"},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"\u003c"},
{"type":"Keyword","value":"reified"},
{"type":"Text","value":" "},
{"type":"Name","value":"T"},
{"type":"Punctuation","value":"\u003e"},
{"type":"Text","value":" "},
{"type":"Name","value":"generic"},
{"type":"Punctuation","value":"("},
{"type":"Name","value":"t"},
{"type":"Punctuation","value":":"},
{"type":"Text","value":" "},
{"type":"Name","value":"T"},
{"type":"Punctuation","value":")"},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"{"},
{"type":"Text","value":" "},
{"type":"Name","value":"print"},
{"type":"Punctuation","value":"("},
{"type":"Name","value":"T"},
{"type":"Operator","value":"::"},
{"type":"Keyword","value":"class"},
{"type":"Punctuation","value":"."},
{"type":"Name","value":"name"},
{"type":"Punctuation","value":")"},
{"type":"Text","value":" "},
{"type":"Punctuation","value":"}"},
{"type":"Text","value":"\n"},
{"type":"Punctuation","value":"}"},
{"type":"Text","value":" "},
{"type":"CommentSingle","value":"// eof comment"}
]