mirror of
https://github.com/alecthomas/chroma.git
synced 2025-02-13 13:28:27 +02:00
103 lines
3.7 KiB
Plaintext
103 lines
3.7 KiB
Plaintext
[
|
|
{"type":"Keyword","value":"pragma solidity"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"^"},
|
|
{"type":"LiteralNumberInteger","value":"0"},
|
|
{"type":"Punctuation","value":"."},
|
|
{"type":"LiteralNumberInteger","value":"4"},
|
|
{"type":"Punctuation","value":"."},
|
|
{"type":"LiteralNumberInteger","value":"11"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n\n"},
|
|
{"type":"KeywordDeclaration","value":"contract"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameClass","value":"ReactExample"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"KeywordType","value":"address"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"private"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"owner"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"KeywordType","value":"string"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"public"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Name","value":"you_awesome"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n \n "},
|
|
{"type":"KeywordDeclaration","value":"function"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"ReactExample"},
|
|
{"type":"Punctuation","value":"()"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"public"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Name","value":"owner"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameBuiltin","value":"msg"},
|
|
{"type":"Punctuation","value":"."},
|
|
{"type":"NameBuiltin","value":"sender"},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Name","value":"you_awesome"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Operator","value":"="},
|
|
{"type":"Text","value":" "},
|
|
{"type":"LiteralString","value":"\"You're awesome\""},
|
|
{"type":"Punctuation","value":";"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n \n "},
|
|
{"type":"KeywordDeclaration","value":"function"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"NameFunction","value":"kill"},
|
|
{"type":"Punctuation","value":"()"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"public"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameBuiltin","value":"require"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"NameBuiltin","value":"msg"},
|
|
{"type":"Punctuation","value":"."},
|
|
{"type":"NameBuiltin","value":"sender"},
|
|
{"type":"Operator","value":"=="},
|
|
{"type":"Name","value":"owner"},
|
|
{"type":"Punctuation","value":");"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameBuiltin","value":"selfdestruct"},
|
|
{"type":"Punctuation","value":"("},
|
|
{"type":"Name","value":"owner"},
|
|
{"type":"Punctuation","value":");"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n \n "},
|
|
{"type":"KeywordDeclaration","value":"function"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"()"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"public"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Keyword","value":"payable"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"{"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"NameBuiltin","value":"revert"},
|
|
{"type":"Text","value":" "},
|
|
{"type":"Punctuation","value":"();"},
|
|
{"type":"Text","value":"\n "},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n"},
|
|
{"type":"Punctuation","value":"}"},
|
|
{"type":"Text","value":"\n"}
|
|
]
|