@@ -57,12 +57,12 @@ function hljsDefineSolidity(hljs) {
57
57
'enum struct mapping address ' +
58
58
59
59
'new delete ' +
60
- 'if else for while continue break return throw emit try catch ' +
60
+ 'if else for while continue break return throw emit try catch revert ' +
61
61
'unchecked ' +
62
62
//NOTE: doesn't always act as a keyword, but seems fine to include
63
63
'_ ' +
64
64
65
- 'function modifier event constructor fallback receive ' +
65
+ 'function modifier event constructor fallback receive error ' +
66
66
'virtual override ' +
67
67
'constant immutable anonymous indexed ' +
68
68
'storage memory calldata ' +
@@ -82,7 +82,7 @@ function hljsDefineSolidity(hljs) {
82
82
'msg block tx abi ' +
83
83
'type ' +
84
84
'blockhash gasleft ' +
85
- 'assert revert require ' +
85
+ 'assert require ' +
86
86
'Error Panic ' +
87
87
'sha3 sha256 keccak256 ripemd160 ecrecover addmod mulmod ' +
88
88
'log0 log1 log2 log3 log4' +
@@ -291,6 +291,7 @@ function hljsDefineSolidity(hljs) {
291
291
makeBuiltinProps ( 'block' , 'blockhash coinbase difficulty gaslimit number timestamp chainid' ) ,
292
292
makeBuiltinProps ( 'tx' , 'gasprice origin' ) ,
293
293
makeBuiltinProps ( 'abi' , 'decode encode encodePacked encodeWithSelector encodeWithSignature' ) ,
294
+ makeBuiltinProps ( 'bytes' , 'concat' ) ,
294
295
SOL_RESERVED_MEMBERS ,
295
296
{ // contracts & libraries & interfaces
296
297
className : 'class' ,
0 commit comments