...

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

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

     1[
     2  {"type":"Keyword","value":"const"},
     3  {"type":"TextWhitespace","value":" "},
     4  {"type":"NameConstant","value":"IM_A_CONST"},
     5  {"type":"Text","value":": "},
     6  {"type":"Punctuation","value":"()"},
     7  {"type":"TextWhitespace","value":" "},
     8  {"type":"Operator","value":"="},
     9  {"type":"TextWhitespace","value":" "},
    10  {"type":"Punctuation","value":"();"},
    11  {"type":"TextWhitespace","value":"\n\n"},
    12  {"type":"Keyword","value":"fn"},
    13  {"type":"Text","value":" "},
    14  {"type":"NameFunction","value":"main"},
    15  {"type":"Punctuation","value":"()"},
    16  {"type":"TextWhitespace","value":" "},
    17  {"type":"Punctuation","value":"{"},
    18  {"type":"TextWhitespace","value":"\n    "},
    19  {"type":"NameFunctionMagic","value":"dbg!"},
    20  {"type":"Punctuation","value":"("},
    21  {"type":"NameConstant","value":"IM_A_CONST"},
    22  {"type":"Punctuation","value":");"},
    23  {"type":"TextWhitespace","value":"\n"},
    24  {"type":"Punctuation","value":"}"},
    25  {"type":"TextWhitespace","value":"\n\n"},
    26  {"type":"CommentSingle","value":"// None of this should be considered const\n"},
    27  {"type":"Keyword","value":"fn"},
    28  {"type":"Text","value":" "},
    29  {"type":"NameFunction","value":"foo"},
    30  {"type":"Operator","value":"\u003c"},
    31  {"type":"Name","value":"T0"},
    32  {"type":"Punctuation","value":","},
    33  {"type":"TextWhitespace","value":" "},
    34  {"type":"Name","value":"T1"},
    35  {"type":"Punctuation","value":","},
    36  {"type":"TextWhitespace","value":" "},
    37  {"type":"Name","value":"U"},
    38  {"type":"Operator","value":"\u003e"},
    39  {"type":"Punctuation","value":"("},
    40  {"type":"Name","value":"_"},
    41  {"type":"Text","value":": "},
    42  {"type":"Punctuation","value":"("},
    43  {"type":"Name","value":"T0"},
    44  {"type":"Punctuation","value":","},
    45  {"type":"TextWhitespace","value":" "},
    46  {"type":"Name","value":"T1"},
    47  {"type":"Punctuation","value":","},
    48  {"type":"TextWhitespace","value":" "},
    49  {"type":"Name","value":"U"},
    50  {"type":"Punctuation","value":"))"},
    51  {"type":"TextWhitespace","value":" "},
    52  {"type":"Punctuation","value":"{"},
    53  {"type":"TextWhitespace","value":"\n    "},
    54  {"type":"KeywordDeclaration","value":"let"},
    55  {"type":"TextWhitespace","value":" "},
    56  {"type":"Name","value":"_"},
    57  {"type":"Text","value":": "},
    58  {"type":"NameClass","value":"std"},
    59  {"type":"Text","value":"::"},
    60  {"type":"Name","value":"collections"},
    61  {"type":"Text","value":"::"},
    62  {"type":"Name","value":"BTreeSet"},
    63  {"type":"Operator","value":"\u003c"},
    64  {"type":"Punctuation","value":"()"},
    65  {"type":"Operator","value":"\u003e"},
    66  {"type":"TextWhitespace","value":" "},
    67  {"type":"Operator","value":"="},
    68  {"type":"TextWhitespace","value":" "},
    69  {"type":"NameFunctionMagic","value":"todo!"},
    70  {"type":"Punctuation","value":"();"},
    71  {"type":"TextWhitespace","value":"\n"},
    72  {"type":"Punctuation","value":"}"},
    73  {"type":"TextWhitespace","value":"\n"}
    74]

View as plain text