mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
New regex for StringLiteral
This commit is contained in:
parent
5512b85594
commit
28c4a0a3ab
@ -73,7 +73,8 @@ BooleanLiteral = 'true' | 'false'
|
||||
NumberLiteral = '0x'? [0-9]+ NumberUnit?
|
||||
NumberUnit = 'wei' | 'szabo' | 'finney' | 'ether'
|
||||
| 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'years'
|
||||
StringLiteral = '"' (~('"' | '\\' | '\r' | '\n') | '\\' ('"' | '\\'))* '"'
|
||||
StringLiteral = '"' ([^"\r\n\\] | '\\' .)* '"'
|
||||
|
||||
Identifier = [a-zA-Z_] [a-zA-Z_0-9]*
|
||||
|
||||
ElementaryTypeName = 'address' | 'bool' | 'string' | 'var'
|
||||
|
Loading…
Reference in New Issue
Block a user