From 5c060335faf835a8e4277a9a9b67d50e2849a51c Mon Sep 17 00:00:00 2001 From: deenuka <51393588+deenuka@users.noreply.github.com> Date: Sat, 21 Sep 2019 13:08:19 +0530 Subject: [PATCH] Fix version parse issue --- Solidity.g4 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Solidity.g4 b/Solidity.g4 index 95a098b..27f7a04 100644 --- a/Solidity.g4 +++ b/Solidity.g4 @@ -367,7 +367,7 @@ identifier : ('from' | 'calldata' | Identifier) ; VersionLiteral - : [0-9]+ '.' [0-9]+ '.' [0-9]+ ; + : [0-9]+ '.' [0-9]+ ('.' [0-9]+)? ; BooleanLiteral : 'true' | 'false' ;