Browse Source

Merge pull request #14 from KimiWu123/master

follow whitespace rule of strings.TrimSpace
master
arnau 5 years ago
committed by GitHub
parent
commit
2461f86bda
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
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) var eof = rune(0)
func isWhitespace(ch rune) bool { 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 { func isLetter(ch rune) bool {

Loading…
Cancel
Save