...

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

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

     1[
     2  {"type":"CommentPreproc","value":"#include"},
     3  {"type":"Text","value":" "},
     4  {"type":"CommentPreprocFile","value":"\"a\""},
     5  {"type":"CommentPreproc","value":"\n#include"},
     6  {"type":"Text","value":" "},
     7  {"type":"CommentPreprocFile","value":"\u003cb\u003e"},
     8  {"type":"CommentPreproc","value":"\n"},
     9  {"type":"Text","value":"\n"},
    10  {"type":"NameAttribute","value":"[[nodiscard]]"},
    11  {"type":"Text","value":" "},
    12  {"type":"KeywordType","value":"void"},
    13  {"type":"Text","value":" "},
    14  {"type":"Name","value":"foo"},
    15  {"type":"Punctuation","value":"()"},
    16  {"type":"Text","value":" "},
    17  {"type":"Keyword","value":"noexcept"},
    18  {"type":"Punctuation","value":";"},
    19  {"type":"Text","value":"\n"},
    20  {"type":"KeywordType","value":"void"},
    21  {"type":"Text","value":" "},
    22  {"type":"NameFunction","value":"foo"},
    23  {"type":"Punctuation","value":"();"},
    24  {"type":"Text","value":"\n\n"},
    25  {"type":"Keyword","value":"constexpr"},
    26  {"type":"Text","value":" "},
    27  {"type":"Keyword","value":"class"},
    28  {"type":"Text","value":" "},
    29  {"type":"Punctuation","value":"{}"},
    30  {"type":"Text","value":" "},
    31  {"type":"Name","value":"a"},
    32  {"type":"Punctuation","value":";"},
    33  {"type":"Text","value":"\n\n"},
    34  {"type":"Keyword","value":"enum"},
    35  {"type":"Text","value":" "},
    36  {"type":"Keyword","value":"class"},
    37  {"type":"Text","value":" "},
    38  {"type":"NameClass","value":"E"},
    39  {"type":"Text","value":" "},
    40  {"type":"Punctuation","value":"{"},
    41  {"type":"Text","value":" "},
    42  {"type":"Name","value":"A"},
    43  {"type":"Punctuation","value":","},
    44  {"type":"Text","value":" "},
    45  {"type":"Name","value":"B"},
    46  {"type":"Text","value":" "},
    47  {"type":"Punctuation","value":"};"},
    48  {"type":"Text","value":"\n"},
    49  {"type":"Keyword","value":"enum"},
    50  {"type":"Text","value":" "},
    51  {"type":"Keyword","value":"class"},
    52  {"type":"Text","value":" "},
    53  {"type":"NameAttribute","value":"[[nodiscard]]"},
    54  {"type":"Text","value":" "},
    55  {"type":"NameClass","value":"E"},
    56  {"type":"Text","value":" "},
    57  {"type":"Punctuation","value":"{"},
    58  {"type":"Text","value":" "},
    59  {"type":"Name","value":"A"},
    60  {"type":"Punctuation","value":","},
    61  {"type":"Text","value":" "},
    62  {"type":"Name","value":"B"},
    63  {"type":"Text","value":" "},
    64  {"type":"Punctuation","value":"};"},
    65  {"type":"Text","value":"\n\n"},
    66  {"type":"Keyword","value":"enum"},
    67  {"type":"Text","value":" "},
    68  {"type":"Keyword","value":"class"},
    69  {"type":"Text","value":" "},
    70  {"type":"Punctuation","value":"{"},
    71  {"type":"Text","value":"\n  "},
    72  {"type":"Name","value":"a"},
    73  {"type":"Punctuation","value":","},
    74  {"type":"Text","value":" "},
    75  {"type":"Name","value":"b"},
    76  {"type":"Punctuation","value":","},
    77  {"type":"Text","value":"\n  "},
    78  {"type":"Name","value":"c"},
    79  {"type":"Punctuation","value":","},
    80  {"type":"Text","value":"\n"},
    81  {"type":"Punctuation","value":"}"},
    82  {"type":"Text","value":" "},
    83  {"type":"Name","value":"e"},
    84  {"type":"Punctuation","value":";"},
    85  {"type":"Text","value":"\n\n"},
    86  {"type":"Keyword","value":"enum"},
    87  {"type":"Text","value":" "},
    88  {"type":"NameClass","value":"E"},
    89  {"type":"Text","value":" "},
    90  {"type":"Punctuation","value":"{"},
    91  {"type":"Text","value":" "},
    92  {"type":"Name","value":"A"},
    93  {"type":"Punctuation","value":","},
    94  {"type":"Text","value":" "},
    95  {"type":"Name","value":"B"},
    96  {"type":"Text","value":" "},
    97  {"type":"Punctuation","value":"};"},
    98  {"type":"Text","value":"\n\n"},
    99  {"type":"Keyword","value":"class"},
   100  {"type":"Text","value":" "},
   101  {"type":"NameClass","value":"A"},
   102  {"type":"Text","value":" "},
   103  {"type":"Punctuation","value":"{"},
   104  {"type":"Text","value":"\n  "},
   105  {"type":"KeywordType","value":"void"},
   106  {"type":"Text","value":" "},
   107  {"type":"NameFunction","value":"foo"},
   108  {"type":"Punctuation","value":"();"},
   109  {"type":"Text","value":"\n  "},
   110  {"type":"KeywordType","value":"void"},
   111  {"type":"Text","value":" "},
   112  {"type":"NameFunction","value":"bar"},
   113  {"type":"Punctuation","value":"();"},
   114  {"type":"Text","value":"\n"},
   115  {"type":"Punctuation","value":"};"},
   116  {"type":"Text","value":"\n\n"},
   117  {"type":"KeywordType","value":"int"},
   118  {"type":"Text","value":" "},
   119  {"type":"NameFunction","value":"main"},
   120  {"type":"Punctuation","value":"()"},
   121  {"type":"Text","value":" "},
   122  {"type":"Punctuation","value":"{"},
   123  {"type":"Text","value":"\n    "},
   124  {"type":"Keyword","value":"return"},
   125  {"type":"Text","value":" "},
   126  {"type":"LiteralNumberInteger","value":"0"},
   127  {"type":"Text","value":" "},
   128  {"type":"Operator","value":"+"},
   129  {"type":"Text","value":" "},
   130  {"type":"LiteralNumberInteger","value":"1'3"},
   131  {"type":"Text","value":" "},
   132  {"type":"Operator","value":"+"},
   133  {"type":"Text","value":" "},
   134  {"type":"LiteralNumberFloat","value":"1.4"},
   135  {"type":"Punctuation","value":";"},
   136  {"type":"Text","value":"\n"},
   137  {"type":"Punctuation","value":"}"},
   138  {"type":"Text","value":"\n"}
   139]

View as plain text