highlightjs / highlightjs-solidity

Do What The F*ck You Want To Public License
48 stars 17 forks source link

Add highlighting for prevrandao for Solidity 0.8.18 #66

Closed haltman-at closed 1 year ago

haltman-at commented 1 year ago

Solidity 0.8.18 just came out, and added block.prevrandao as well as a prevrandao instruction in assembly. This PR adds highlighting for them.

Note: 0.8.18 also addes the ability to name mapping parameters. These should likely be highlighted? It's not obvious to me at the moment what's a good way to do that though so I figured I'd just put up this first.