Accept underscores in integers

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