Merge pull request #16 from half-ogre/15-fix-parser-on-windows

Fix parser on Windows
This commit is contained in:
Thomas Pelletier
2014-02-21 14:27:47 +01:00
+1 -1
View File
@@ -70,7 +70,7 @@ func isAlphanumeric(r rune) bool {
func isKeyChar(r rune) bool {
// "Keys start with the first non-whitespace character and end with the last
// non-whitespace character before the equals sign."
return !(isSpace(r) || r == '\n' || r == eof || r == '=')
return !(isSpace(r) || r == '\r' || r == '\n' || r == eof || r == '=')
}
func isDigit(r rune) bool {