From 3308c3d94ef1a17509babdebff45d6a7a76fec4b Mon Sep 17 00:00:00 2001 From: kimiwu123 Date: Thu, 31 Oct 2019 15:18:01 +0800 Subject: [PATCH] follow whitespace rule of strings.TrimSpace --- circuitcompiler/lexer.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/circuitcompiler/lexer.go b/circuitcompiler/lexer.go index 92bc45c..74340bb 100644 --- a/circuitcompiler/lexer.go +++ b/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 {