Fix issue #1. Added windows new line/whitespace character.

This commit is contained in:
Marvin Blum
2015-10-25 19:43:21 +01:00
parent 070ef6732d
commit a736ed2f58
2 changed files with 2 additions and 2 deletions

View File

@@ -76,6 +76,6 @@ func appendOut(str string, newLine bool) {
out += str out += str
if newLine && pretty { if newLine && pretty {
out += "\n" out += "\r\n"
} }
} }

View File

@@ -47,7 +47,7 @@ var keywords = []string{
"exitwith", "exitwith",
"waituntil"} "waituntil"}
var whitespace = []byte{' ', '\n', '\t'} var whitespace = []byte{' ', '\n', '\t', '\r'}
var identifier = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_" var identifier = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_"
// Tokenizes the given byte array into syntax tokens, // Tokenizes the given byte array into syntax tokens,