Closed KimiWu123 closed 5 years ago
it's related to #13 compilation error on Windows.
Root cause: Didn't treat \r as part of white space in isWhitespace of lexer.go
\r
isWhitespace
lexer.go
Solution: Follow golang function strings.TrimSpace, filter out \r, \v, \f
strings.TrimSpace
\v
\f
Cool! I've implemented using Linux, so I didn't tested on other operating systems. Thanks for the PR :)
it's related to #13 compilation error on Windows.
Root cause: Didn't treat
\r
as part of white space inisWhitespace
oflexer.go
Solution: Follow golang function
strings.TrimSpace
, filter out\r
,\v
,\f