Browse Source

follow whitespace rule of strings.TrimSpace

pull/14/head
kimiwu123 4 years ago
parent
commit
3308c3d94e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      circuitcompiler/lexer.go

+ 1
- 1
circuitcompiler/lexer.go

@ -32,7 +32,7 @@ const (
var eof = rune(0)
func isWhitespace(ch rune) bool {
return ch == ' ' || ch == '\t' || ch == '\n'
return ch == ' ' || ch == '\t' || ch == '\n' || ch == '\r' || ch == '\v' || ch == '\f'
}
func isLetter(ch rune) bool {

Loading…
Cancel
Save