...

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

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

     1[
     2  {"type":"Keyword","value":"pragma solidity"},
     3  {"type":"Text","value":" "},
     4  {"type":"Operator","value":"^"},
     5  {"type":"LiteralNumberInteger","value":"0"},
     6  {"type":"Punctuation","value":"."},
     7  {"type":"LiteralNumberInteger","value":"4"},
     8  {"type":"Punctuation","value":"."},
     9  {"type":"LiteralNumberInteger","value":"11"},
    10  {"type":"Punctuation","value":";"},
    11  {"type":"Text","value":"\n\n"},
    12  {"type":"KeywordDeclaration","value":"contract"},
    13  {"type":"Text","value":" "},
    14  {"type":"NameClass","value":"ReactExample"},
    15  {"type":"Text","value":" "},
    16  {"type":"Punctuation","value":"{"},
    17  {"type":"Text","value":"\n    "},
    18  {"type":"KeywordType","value":"address"},
    19  {"type":"Text","value":" "},
    20  {"type":"Keyword","value":"private"},
    21  {"type":"Text","value":" "},
    22  {"type":"Name","value":"owner"},
    23  {"type":"Punctuation","value":";"},
    24  {"type":"Text","value":"\n    "},
    25  {"type":"KeywordType","value":"string"},
    26  {"type":"Text","value":" "},
    27  {"type":"Keyword","value":"public"},
    28  {"type":"Text","value":" "},
    29  {"type":"Name","value":"you_awesome"},
    30  {"type":"Punctuation","value":";"},
    31  {"type":"Text","value":"\n    \n    "},
    32  {"type":"KeywordDeclaration","value":"function"},
    33  {"type":"Text","value":" "},
    34  {"type":"NameFunction","value":"ReactExample"},
    35  {"type":"Punctuation","value":"()"},
    36  {"type":"Text","value":" "},
    37  {"type":"Keyword","value":"public"},
    38  {"type":"Text","value":" "},
    39  {"type":"Punctuation","value":"{"},
    40  {"type":"Text","value":"\n        "},
    41  {"type":"Name","value":"owner"},
    42  {"type":"Text","value":" "},
    43  {"type":"Operator","value":"="},
    44  {"type":"Text","value":" "},
    45  {"type":"NameBuiltin","value":"msg"},
    46  {"type":"Punctuation","value":"."},
    47  {"type":"NameBuiltin","value":"sender"},
    48  {"type":"Punctuation","value":";"},
    49  {"type":"Text","value":"\n        "},
    50  {"type":"Name","value":"you_awesome"},
    51  {"type":"Text","value":" "},
    52  {"type":"Operator","value":"="},
    53  {"type":"Text","value":" "},
    54  {"type":"LiteralString","value":"\"You're awesome\""},
    55  {"type":"Punctuation","value":";"},
    56  {"type":"Text","value":"\n    "},
    57  {"type":"Punctuation","value":"}"},
    58  {"type":"Text","value":"\n    \n    "},
    59  {"type":"KeywordDeclaration","value":"function"},
    60  {"type":"Text","value":" "},
    61  {"type":"NameFunction","value":"kill"},
    62  {"type":"Punctuation","value":"()"},
    63  {"type":"Text","value":" "},
    64  {"type":"Keyword","value":"public"},
    65  {"type":"Text","value":" "},
    66  {"type":"Punctuation","value":"{"},
    67  {"type":"Text","value":"\n        "},
    68  {"type":"NameBuiltin","value":"require"},
    69  {"type":"Punctuation","value":"("},
    70  {"type":"NameBuiltin","value":"msg"},
    71  {"type":"Punctuation","value":"."},
    72  {"type":"NameBuiltin","value":"sender"},
    73  {"type":"Operator","value":"=="},
    74  {"type":"Name","value":"owner"},
    75  {"type":"Punctuation","value":");"},
    76  {"type":"Text","value":"\n        "},
    77  {"type":"NameBuiltin","value":"selfdestruct"},
    78  {"type":"Punctuation","value":"("},
    79  {"type":"Name","value":"owner"},
    80  {"type":"Punctuation","value":");"},
    81  {"type":"Text","value":"\n    "},
    82  {"type":"Punctuation","value":"}"},
    83  {"type":"Text","value":"\n    \n    "},
    84  {"type":"KeywordDeclaration","value":"function"},
    85  {"type":"Text","value":" "},
    86  {"type":"Punctuation","value":"()"},
    87  {"type":"Text","value":" "},
    88  {"type":"Keyword","value":"public"},
    89  {"type":"Text","value":" "},
    90  {"type":"Keyword","value":"payable"},
    91  {"type":"Text","value":" "},
    92  {"type":"Punctuation","value":"{"},
    93  {"type":"Text","value":"\n        "},
    94  {"type":"NameBuiltin","value":"revert"},
    95  {"type":"Text","value":" "},
    96  {"type":"Punctuation","value":"();"},
    97  {"type":"Text","value":"\n    "},
    98  {"type":"Punctuation","value":"}"},
    99  {"type":"Text","value":"\n"},
   100  {"type":"Punctuation","value":"}"},
   101  {"type":"Text","value":"\n"}
   102]

View as plain text