mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Scanner: Generate error on inbalanced RLO/LRO/PDF override markers.
This commit is contained in:
committed by
chriseth
parent
67b7267735
commit
381c63ec99
@@ -89,6 +89,9 @@ enum class ScannerError
|
||||
IllegalExponent,
|
||||
IllegalNumberEnd,
|
||||
|
||||
DirectionalOverrideUnderflow,
|
||||
DirectionalOverrideMismatch,
|
||||
|
||||
OctalNotAllowed,
|
||||
};
|
||||
|
||||
@@ -183,6 +186,7 @@ public:
|
||||
///@}
|
||||
|
||||
private:
|
||||
|
||||
inline Token setError(ScannerError _error) noexcept
|
||||
{
|
||||
m_tokens[NextNext].error = _error;
|
||||
|
||||
Reference in New Issue
Block a user