...

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

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

     1[
     2  {"type":"Punctuation","value":"{"},
     3  {"type":"Text","value":"\n\t"},
     4  {"type":"NameTag","value":"\"list\""},
     5  {"type":"Punctuation","value":":"},
     6  {"type":"Text","value":" "},
     7  {"type":"Punctuation","value":"["},
     8  {"type":"LiteralNumberInteger","value":"1"},
     9  {"type":"Punctuation","value":","},
    10  {"type":"Text","value":" "},
    11  {"type":"LiteralNumberInteger","value":"2"},
    12  {"type":"Punctuation","value":","},
    13  {"type":"Text","value":" "},
    14  {"type":"LiteralNumberInteger","value":"3"},
    15  {"type":"Punctuation","value":"],"},
    16  {"type":"Text","value":"\n\t"},
    17  {"type":"NameTag","value":"\"map\""},
    18  {"type":"Punctuation","value":":"},
    19  {"type":"Text","value":" "},
    20  {"type":"Punctuation","value":"{"},
    21  {"type":"Text","value":"\n\t\t"},
    22  {"type":"NameTag","value":"\"key\""},
    23  {"type":"Punctuation","value":":"},
    24  {"type":"Text","value":" "},
    25  {"type":"LiteralStringDouble","value":"\"value\""},
    26  {"type":"Punctuation","value":","},
    27  {"type":"Text","value":"\n\t"},
    28  {"type":"Punctuation","value":"},"},
    29  {"type":"Text","value":"\n\t"},
    30  {"type":"CommentSingle","value":"// A comment\n"},
    31  {"type":"Text","value":"\t"},
    32  {"type":"NameTag","value":"\"number\""},
    33  {"type":"Punctuation","value":":"},
    34  {"type":"Text","value":" "},
    35  {"type":"LiteralNumberFloat","value":"1.23"},
    36  {"type":"Punctuation","value":","},
    37  {"type":"Text","value":"\n\t"},
    38  {"type":"NameTag","value":"\"string\""},
    39  {"type":"Punctuation","value":":"},
    40  {"type":"Text","value":" "},
    41  {"type":"LiteralStringDouble","value":"\"string\""},
    42  {"type":"Punctuation","value":","},
    43  {"type":"Text","value":"\n\t"},
    44  {"type":"NameTag","value":"\"positive\""},
    45  {"type":"Punctuation","value":":"},
    46  {"type":"Text","value":" "},
    47  {"type":"KeywordConstant","value":"true"},
    48  {"type":"Punctuation","value":","},
    49  {"type":"Text","value":"\n\t"},
    50  {"type":"NameTag","value":"\"negative\""},
    51  {"type":"Punctuation","value":":"},
    52  {"type":"Text","value":" "},
    53  {"type":"KeywordConstant","value":"false"},
    54  {"type":"Text","value":"\n"},
    55  {"type":"Punctuation","value":"}"}
    56]

View as plain text