14 lines
381 B
Go
14 lines
381 B
Go
package parser
|
|
|
|
import "github.com/mmakaay/toml/parsekit"
|
|
|
|
// Values must be of the following types: String, Integer, Float, Boolean,
|
|
// Datetime, Array, or Inline Table. Unspecified values are invalid.
|
|
func stateValue(p *parsekit.P) parsekit.StateFn {
|
|
p.SkipConsecutive(whitespace)
|
|
if p.Upcoming(quoteChars) {
|
|
return stateStringValue
|
|
}
|
|
return p.UnexpectedInput("a value")
|
|
}
|