Skip to content

Commit 965bff2

Browse files
authored
Merge pull request #66 from highlightjs/prevrandao
Add highlighting for prevrandao for Solidity 0.8.18
2 parents 3639fbc + 32d0aca commit 965bff2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ var SOL_ASSEMBLY_KEYWORDS = {
5959
'calldataload calldatasize calldatacopy codesize codecopy extcodesize extcodecopy returndatasize returndatacopy extcodehash ' +
6060
'create create2 call callcode delegatecall staticcall ' +
6161
'log0 log1 log2 log3 log4 ' +
62-
'chainid origin gasprice basefee blockhash coinbase timestamp number difficulty gaslimit',
62+
'chainid origin gasprice basefee blockhash coinbase timestamp number difficulty prevrandao gaslimit',
6363
literal:
6464
'true false'
6565
};

src/languages/solidity.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ function hljsDefineSolidity(hljs) {
237237
},
238238
// built-in members
239239
makeBuiltinProps('msg', 'gas value data sender sig'),
240-
makeBuiltinProps('block', 'blockhash coinbase difficulty gaslimit basefee number timestamp chainid'),
240+
makeBuiltinProps('block', 'blockhash coinbase difficulty prevrandao gaslimit basefee number timestamp chainid'),
241241
makeBuiltinProps('tx', 'gasprice origin'),
242242
makeBuiltinProps('abi', 'decode encode encodePacked encodeWithSelector encodeWithSignature encodeCall'),
243243
makeBuiltinProps('bytes', 'concat'),

0 commit comments

Comments
 (0)