diff options
author | Nicolai <NicolaiSoeborg@users.noreply.github.com> | 2016-07-23 08:35:20 +0800 |
---|---|---|
committer | Nicolai <NicolaiSoeborg@users.noreply.github.com> | 2016-07-23 08:35:20 +0800 |
commit | 28c4a0a3ab37731c5f6cfea2a5d56303e187ad3f (patch) | |
tree | 3de2065f930d454ed19d8c0e6dbe8a530834ad53 /libsolidity | |
parent | 5512b855944ef437e74f4eb647e3c5b36e1db731 (diff) | |
download | dexon-solidity-28c4a0a3ab37731c5f6cfea2a5d56303e187ad3f.tar dexon-solidity-28c4a0a3ab37731c5f6cfea2a5d56303e187ad3f.tar.gz dexon-solidity-28c4a0a3ab37731c5f6cfea2a5d56303e187ad3f.tar.bz2 dexon-solidity-28c4a0a3ab37731c5f6cfea2a5d56303e187ad3f.tar.lz dexon-solidity-28c4a0a3ab37731c5f6cfea2a5d56303e187ad3f.tar.xz dexon-solidity-28c4a0a3ab37731c5f6cfea2a5d56303e187ad3f.tar.zst dexon-solidity-28c4a0a3ab37731c5f6cfea2a5d56303e187ad3f.zip |
New regex for StringLiteral
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/grammar.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libsolidity/grammar.txt b/libsolidity/grammar.txt index b0b018d7..7c1d97e9 100644 --- a/libsolidity/grammar.txt +++ b/libsolidity/grammar.txt @@ -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' |