New regex for StringLiteral

This commit is contained in:
Nicolai 2016-07-23 02:35:20 +02:00
parent 5512b85594
commit 28c4a0a3ab

View File

@ -73,7 +73,8 @@ BooleanLiteral = 'true' | 'false'
NumberLiteral = '0x'? [0-9]+ NumberUnit? NumberLiteral = '0x'? [0-9]+ NumberUnit?
NumberUnit = 'wei' | 'szabo' | 'finney' | 'ether' NumberUnit = 'wei' | 'szabo' | 'finney' | 'ether'
| 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'years' | 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'years'
StringLiteral = '"' (~('"' | '\\' | '\r' | '\n') | '\\' ('"' | '\\'))* '"' StringLiteral = '"' ([^"\r\n\\] | '\\' .)* '"'
Identifier = [a-zA-Z_] [a-zA-Z_0-9]* Identifier = [a-zA-Z_] [a-zA-Z_0-9]*
ElementaryTypeName = 'address' | 'bool' | 'string' | 'var' ElementaryTypeName = 'address' | 'bool' | 'string' | 'var'