...

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

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

     1[
     2  {"type":"KeywordNamespace","value":"package"},
     3  {"type":"Text","value":" "},
     4  {"type":"NameOther","value":"main"},
     5  {"type":"Text","value":"\n\n"},
     6  {"type":"KeywordNamespace","value":"import"},
     7  {"type":"Text","value":" "},
     8  {"type":"LiteralString","value":"\"fmt\""},
     9  {"type":"Text","value":"\n\n"},
    10  {"type":"KeywordDeclaration","value":"func"},
    11  {"type":"Text","value":" "},
    12  {"type":"NameFunction","value":"main"},
    13  {"type":"Punctuation","value":"()"},
    14  {"type":"Text","value":" "},
    15  {"type":"Punctuation","value":"{"},
    16  {"type":"Text","value":"\n    "},
    17  {"type":"NameOther","value":"fmt"},
    18  {"type":"Punctuation","value":"."},
    19  {"type":"NameFunction","value":"Println"},
    20  {"type":"Punctuation","value":"("},
    21  {"type":"LiteralString","value":"\"Hello World!\""},
    22  {"type":"Punctuation","value":")"},
    23  {"type":"Text","value":"\n"},
    24  {"type":"Punctuation","value":"}"},
    25  {"type":"Text","value":"\n\n"},
    26  {"type":"KeywordDeclaration","value":"var"},
    27  {"type":"Text","value":" "},
    28  {"type":"NameOther","value":"n"},
    29  {"type":"Text","value":" "},
    30  {"type":"KeywordType","value":"int"},
    31  {"type":"Text","value":" "},
    32  {"type":"Punctuation","value":"="},
    33  {"type":"Text","value":" "},
    34  {"type":"LiteralNumberHex","value":"0x21"},
    35  {"type":"Text","value":" "},
    36  {"type":"Operator","value":"+"},
    37  {"type":"Text","value":" "},
    38  {"type":"LiteralNumberInteger","value":"1_000"},
    39  {"type":"Text","value":"\n"},
    40  {"type":"KeywordDeclaration","value":"var"},
    41  {"type":"Text","value":" "},
    42  {"type":"NameOther","value":"n2"},
    43  {"type":"Text","value":" "},
    44  {"type":"KeywordType","value":"float64"},
    45  {"type":"Text","value":" "},
    46  {"type":"Punctuation","value":"="},
    47  {"type":"Text","value":" "},
    48  {"type":"LiteralNumberFloat","value":"1e3"},
    49  {"type":"Text","value":"\n\n"},
    50  {"type":"KeywordDeclaration","value":"func"},
    51  {"type":"Text","value":" "},
    52  {"type":"NameFunction","value":"hello"},
    53  {"type":"Punctuation","value":"("},
    54  {"type":"NameOther","value":"a"},
    55  {"type":"Text","value":" "},
    56  {"type":"KeywordType","value":"int"},
    57  {"type":"Punctuation","value":")"},
    58  {"type":"Text","value":" "},
    59  {"type":"Punctuation","value":"{"},
    60  {"type":"Text","value":"\n\t"},
    61  {"type":"NameOther","value":"fmt"},
    62  {"type":"Punctuation","value":"."},
    63  {"type":"NameFunction","value":"Println"},
    64  {"type":"Punctuation","value":"("},
    65  {"type":"LiteralString","value":"\"Hello World!\""},
    66  {"type":"Punctuation","value":")."},
    67  {"type":"NameFunction","value":"Hello"},
    68  {"type":"Punctuation","value":"()"},
    69  {"type":"Text","value":"\n\n    "},
    70  {"type":"Keyword","value":"return"},
    71  {"type":"Text","value":" "},
    72  {"type":"KeywordDeclaration","value":"func"},
    73  {"type":"Punctuation","value":"()"},
    74  {"type":"Text","value":" "},
    75  {"type":"KeywordType","value":"int"},
    76  {"type":"Text","value":" "},
    77  {"type":"Punctuation","value":"{"},
    78  {"type":"Text","value":"\n        "},
    79  {"type":"Keyword","value":"return"},
    80  {"type":"Text","value":" "},
    81  {"type":"NameOther","value":"i"},
    82  {"type":"Text","value":"\n    "},
    83  {"type":"Punctuation","value":"}"},
    84  {"type":"Text","value":"\n"},
    85  {"type":"Punctuation","value":"}"},
    86  {"type":"Text","value":" "},
    87  {"type":"CommentSingle","value":"// One last thing\n"}
    88]

View as plain text