mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Correct identifier regex
This commit is contained in:
parent
12b002b3b8
commit
0b01678bc3
@ -114,7 +114,7 @@ NumberUnit = 'wei' | 'szabo' | 'finney' | 'ether'
|
|||||||
| 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'years'
|
| 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'years'
|
||||||
HexLiteral = 'hex' ('"' ([0-9a-fA-F]{2})* '"' | '\'' ([0-9a-fA-F]{2})* '\'')
|
HexLiteral = 'hex' ('"' ([0-9a-fA-F]{2})* '"' | '\'' ([0-9a-fA-F]{2})* '\'')
|
||||||
StringLiteral = '"' ([^"\r\n\\] | '\\' .)* '"'
|
StringLiteral = '"' ([^"\r\n\\] | '\\' .)* '"'
|
||||||
Identifier = [a-zA-Z_] [a-zA-Z_0-9]*
|
Identifier = [a-zA-Z_$] [a-zA-Z_$0-9]*
|
||||||
|
|
||||||
HexNumber = '0x' [0-9a-fA-F]+
|
HexNumber = '0x' [0-9a-fA-F]+
|
||||||
DecimalNumber = [0-9]+
|
DecimalNumber = [0-9]+
|
||||||
|
Loading…
Reference in New Issue
Block a user