diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2017-09-24 11:13:37 +0200 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2017-09-25 15:19:06 +0200 |
| commit | af442a22d956464e7df703b290fa49d78dda3dfa (patch) | |
| tree | b50403630f29373cfb711a711fbfd24d632ce2ba /pkg/ast | |
| parent | 255e8b5e54e93fc77302a546dbb7a932412d1bde (diff) | |
executor, sys/windows: initial windows support
Diffstat (limited to 'pkg/ast')
| -rw-r--r-- | pkg/ast/scanner.go | 3 |
1 files changed, 3 insertions, 0 deletions
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 |
