1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-02-09 13:23:51 +02:00
chroma/lexers/testdata/nim.expected

46 lines
1.5 KiB
Nim

[
{"type":"Comment","value":"# -*- nim -*-"},
{"type":"Text","value":"\n"},
{"type":"KeywordNamespace","value":"import"},
{"type":"Text","value":" "},
{"type":"Name","value":"random"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"proc "},
{"type":"NameFunction","value":"randBool"},
{"type":"Punctuation","value":"():"},
{"type":"Text","value":" "},
{"type":"KeywordType","value":"bool"},
{"type":"Text","value":" "},
{"type":"Operator","value":"="},
{"type":"Text","value":"\n "},
{"type":"Name","value":"randomize"},
{"type":"Punctuation","value":"()"},
{"type":"Text","value":"\n "},
{"type":"Name","value":"result"},
{"type":"Text","value":" "},
{"type":"Operator","value":"="},
{"type":"Text","value":" "},
{"type":"Name","value":"rand"},
{"type":"Punctuation","value":"("},
{"type":"LiteralNumberInteger","value":"1"},
{"type":"Punctuation","value":")."},
{"type":"KeywordType","value":"bool"},
{"type":"Text","value":"\n"},
{"type":"Keyword","value":"for"},
{"type":"Text","value":" "},
{"type":"Name","value":"_"},
{"type":"Text","value":" "},
{"type":"OperatorWord","value":"in"},
{"type":"Text","value":" "},
{"type":"LiteralNumberFloat","value":"0"},
{"type":"Punctuation","value":".."},
{"type":"LiteralNumberInteger","value":"5"},
{"type":"Punctuation","value":":"},
{"type":"Text","value":"\n "},
{"type":"Name","value":"echo"},
{"type":"Text","value":" "},
{"type":"Name","value":"randBool"},
{"type":"Punctuation","value":"()"},
{"type":"Text","value":"\n"}
]