aboutsummaryrefslogtreecommitdiffstats
path: root/vendor/github.com/naoina/toml/parse.peg
diff options
context:
space:
mode:
authorElad <theman@elad.im>2018-06-05 18:40:21 +0800
committerBalint Gabor <balint.g@gmail.com>2018-06-05 18:40:21 +0800
commit5bee5d69d743e2c91e8aa0f322e4de3834bb6664 (patch)
tree7157caf164b1882ed04eabc492f311a663a3fb0f /vendor/github.com/naoina/toml/parse.peg
parentcbfb40b0aab093e1b612f3b16834894b2cc67882 (diff)
downloadgo-tangerine-5bee5d69d743e2c91e8aa0f322e4de3834bb6664.tar.gz
go-tangerine-5bee5d69d743e2c91e8aa0f322e4de3834bb6664.tar.zst
go-tangerine-5bee5d69d743e2c91e8aa0f322e4de3834bb6664.zip
vendor: added vendor packages necessary for the swarm-network-rewrite merge (#16792)
* vendor: added vendor packages necessary for the swarm-network-rewrite merge into ethereum master * vendor: removed multihash deps
Diffstat (limited to 'vendor/github.com/naoina/toml/parse.peg')
-rw-r--r--vendor/github.com/naoina/toml/parse.peg8
1 files changed, 5 insertions, 3 deletions
diff --git a/vendor/github.com/naoina/toml/parse.peg b/vendor/github.com/naoina/toml/parse.peg
index da31dae30..860ada373 100644
--- a/vendor/github.com/naoina/toml/parse.peg
+++ b/vendor/github.com/naoina/toml/parse.peg
@@ -29,7 +29,7 @@ key <- bareKey / quotedKey
bareKey <- <[0-9A-Za-z\-_]+> { p.SetKey(p.buffer, begin, end) }
-quotedKey <- '"' <basicChar+> '"' { p.SetKey(p.buffer, begin-1, end+1) }
+quotedKey <- < '"' basicChar* '"' > { p.SetKey(p.buffer, begin, end) }
val <- (
<datetime> { p.SetTime(begin, end) }
@@ -55,7 +55,9 @@ inlineTable <- (
inlineTableKeyValues <- (keyval inlineTableValSep?)*
-tableKey <- key (tableKeySep key)*
+tableKey <- tableKeyComp (tableKeySep tableKeyComp)*
+
+tableKeyComp <- key { p.AddTableKey() }
tableKeySep <- ws '.' ws
@@ -117,7 +119,7 @@ timeNumoffset <- [\-+] timeHour ':' timeMinute
timeOffset <- 'Z' / timeNumoffset
partialTime <- timeHour ':' timeMinute ':' timeSecond timeSecfrac?
fullDate <- dateFullYear '-' dateMonth '-' dateMDay
-fullTime <- partialTime timeOffset
+fullTime <- partialTime timeOffset?
datetime <- (fullDate ('T' fullTime)?) / partialTime
digit <- [0-9]