...

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

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

     1[
     2  {"type":"KeywordDeclaration","value":"config"},
     3  {"type":"TextWhitespace","value":" "},
     4  {"type":"KeywordDeclaration","value":"const"},
     5  {"type":"TextWhitespace","value":" "},
     6  {"type":"NameOther","value":"numMessages"},
     7  {"type":"TextWhitespace","value":" "},
     8  {"type":"Operator","value":"="},
     9  {"type":"TextWhitespace","value":" "},
    10  {"type":"LiteralNumberInteger","value":"100"},
    11  {"type":"Punctuation","value":";"},
    12  {"type":"TextWhitespace","value":"\n\n"},
    13  {"type":"Keyword","value":"forall"},
    14  {"type":"TextWhitespace","value":" "},
    15  {"type":"NameOther","value":"msg"},
    16  {"type":"TextWhitespace","value":" "},
    17  {"type":"KeywordDeclaration","value":"in"},
    18  {"type":"TextWhitespace","value":" "},
    19  {"type":"LiteralNumberInteger","value":"1"},
    20  {"type":"Operator","value":".."},
    21  {"type":"NameOther","value":"numMessages"},
    22  {"type":"TextWhitespace","value":" "},
    23  {"type":"Keyword","value":"do"},
    24  {"type":"TextWhitespace","value":"\n  "},
    25  {"type":"NameOther","value":"writeln"},
    26  {"type":"Punctuation","value":"("},
    27  {"type":"LiteralString","value":"\"Hello, world! (from iteration \""},
    28  {"type":"Punctuation","value":","},
    29  {"type":"TextWhitespace","value":" "},
    30  {"type":"NameOther","value":"msg"},
    31  {"type":"Punctuation","value":","},
    32  {"type":"TextWhitespace","value":" "},
    33  {"type":"LiteralString","value":"\" of \""},
    34  {"type":"Punctuation","value":","},
    35  {"type":"TextWhitespace","value":" "},
    36  {"type":"NameOther","value":"numMessages"},
    37  {"type":"Punctuation","value":","},
    38  {"type":"TextWhitespace","value":" "},
    39  {"type":"LiteralString","value":"\")\""},
    40  {"type":"Punctuation","value":");"},
    41  {"type":"TextWhitespace","value":"\n\n"},
    42  {"type":"CommentSingle","value":"// Oh, and a comment for good measure.\n"}
    43]

View as plain text