From 0b01678bc316d4c966f3cb1b72cbddca934f2609 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 20 Jan 2017 19:29:43 +0100 Subject: Correct identifier regex --- docs/grammar.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/grammar.txt b/docs/grammar.txt index 62b4a021..a9f328c0 100644 --- a/docs/grammar.txt +++ b/docs/grammar.txt @@ -114,7 +114,7 @@ NumberUnit = 'wei' | 'szabo' | 'finney' | 'ether' | 'seconds' | 'minutes' | 'hours' | 'days' | 'weeks' | 'years' HexLiteral = 'hex' ('"' ([0-9a-fA-F]{2})* '"' | '\'' ([0-9a-fA-F]{2})* '\'') 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]+ DecimalNumber = [0-9]+ -- cgit v1.2.3