mirror of
https://github.com/Kugelschieber/asl.git
synced 2026-01-18 12:00:25 +00:00
Fix issue #1. Added windows new line/whitespace character.
This commit is contained in:
@@ -76,6 +76,6 @@ func appendOut(str string, newLine bool) {
|
||||
out += str
|
||||
|
||||
if newLine && pretty {
|
||||
out += "\n"
|
||||
out += "\r\n"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -47,7 +47,7 @@ var keywords = []string{
|
||||
"exitwith",
|
||||
"waituntil"}
|
||||
|
||||
var whitespace = []byte{' ', '\n', '\t'}
|
||||
var whitespace = []byte{' ', '\n', '\t', '\r'}
|
||||
var identifier = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_"
|
||||
|
||||
// Tokenizes the given byte array into syntax tokens,
|
||||
|
||||
Reference in New Issue
Block a user