Added lexars
This commit is contained in:
parent
382b2ce94b
commit
f9f64b0558
820 changed files with 149371 additions and 0 deletions
lexers/testdata
20
lexers/testdata/solidity.actual
vendored
Normal file
20
lexers/testdata/solidity.actual
vendored
Normal file
|
@ -0,0 +1,20 @@
|
|||
pragma solidity ^0.4.11;
|
||||
|
||||
contract ReactExample {
|
||||
address private owner;
|
||||
string public you_awesome;
|
||||
|
||||
function ReactExample() public {
|
||||
owner = msg.sender;
|
||||
you_awesome = "You're awesome";
|
||||
}
|
||||
|
||||
function kill() public {
|
||||
require(msg.sender==owner);
|
||||
selfdestruct(owner);
|
||||
}
|
||||
|
||||
function () public payable {
|
||||
revert ();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue