...

Text file src/github.com/alecthomas/chroma/lexers/testdata/nim.expected

Documentation: github.com/alecthomas/chroma/lexers/testdata

     1[
     2  {"type":"Comment","value":"# -*- nim -*-"},
     3  {"type":"Text","value":"\n"},
     4  {"type":"KeywordNamespace","value":"import"},
     5  {"type":"Text","value":" "},
     6  {"type":"Name","value":"random"},
     7  {"type":"Text","value":"\n"},
     8  {"type":"Keyword","value":"proc "},
     9  {"type":"NameFunction","value":"randBool"},
    10  {"type":"Punctuation","value":"():"},
    11  {"type":"Text","value":" "},
    12  {"type":"KeywordType","value":"bool"},
    13  {"type":"Text","value":" "},
    14  {"type":"Operator","value":"="},
    15  {"type":"Text","value":"\n  "},
    16  {"type":"Name","value":"randomize"},
    17  {"type":"Punctuation","value":"()"},
    18  {"type":"Text","value":"\n  "},
    19  {"type":"Name","value":"result"},
    20  {"type":"Text","value":" "},
    21  {"type":"Operator","value":"="},
    22  {"type":"Text","value":" "},
    23  {"type":"Name","value":"rand"},
    24  {"type":"Punctuation","value":"("},
    25  {"type":"LiteralNumberInteger","value":"1"},
    26  {"type":"Punctuation","value":")."},
    27  {"type":"KeywordType","value":"bool"},
    28  {"type":"Text","value":"\n"},
    29  {"type":"Keyword","value":"for"},
    30  {"type":"Text","value":" "},
    31  {"type":"Name","value":"_"},
    32  {"type":"Text","value":" "},
    33  {"type":"OperatorWord","value":"in"},
    34  {"type":"Text","value":" "},
    35  {"type":"LiteralNumberFloat","value":"0"},
    36  {"type":"Punctuation","value":".."},
    37  {"type":"LiteralNumberInteger","value":"5"},
    38  {"type":"Punctuation","value":":"},
    39  {"type":"Text","value":"\n  "},
    40  {"type":"Name","value":"echo"},
    41  {"type":"Text","value":" "},
    42  {"type":"Name","value":"randBool"},
    43  {"type":"Punctuation","value":"()"},
    44  {"type":"Text","value":"\n"}
    45]

View as plain text