solidity-parser / parser

A Solidity parser for JS built on top of a robust ANTLR4 grammar
MIT License
157 stars 44 forks source link

Nightly compiler not supported in pragma #42

Closed rmeissner closed 3 years ago

rmeissner commented 3 years ago

If the contract contains pragma solidity >=0.8.2-nightly <0.9.0; the parser returns for the pragma node { type: 'PragmaDirective', name: 'solidity', value: '>=0.8.2' }.

I would expect the value to be >=0.8.2-nightly <0.9.0

Version used: 0.11.1 via hardhat

rmeissner commented 3 years ago

never mind solidty doesn't allow that 😬