Merge pull request #39 from pelletier/pelletier/integers_underscores

Accept underscores in integers
This commit is contained in:
Thomas Pelletier
2015-07-17 16:54:19 -07:00
4 changed files with 42 additions and 1 deletions
+2
View File
@@ -531,6 +531,8 @@ func (l *tomlLexer) lexNumber() tomlLexStateFn {
}
} else if isDigit(next) {
digitSeen = true
} else if next == '_' {
l.pos++
} else {
l.backup()
break