From af442a22d956464e7df703b290fa49d78dda3dfa Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Sun, 24 Sep 2017 11:13:37 +0200 Subject: executor, sys/windows: initial windows support --- pkg/ast/scanner.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkg/ast') diff --git a/pkg/ast/scanner.go b/pkg/ast/scanner.go index 8a15dd8f9..bd2171506 100644 --- a/pkg/ast/scanner.go +++ b/pkg/ast/scanner.go @@ -241,6 +241,9 @@ func (s *scanner) Ok() bool { func (s *scanner) next() { s.off++ + for s.off < len(s.data) && s.data[s.off] == '\r' { + s.off++ + } if s.off == len(s.data) { // Always emit NEWLINE before EOF. // Makes lots of things simpler as we always -- cgit mrf-deployment