From c439ea4b9c0f68b03108500d656852c5a4448d19 Mon Sep 17 00:00:00 2001 From: Dimitri Fontaine Date: Wed, 30 Mar 2016 10:41:50 +0200 Subject: [PATCH] Explicitely allow for Return as whitespace. Windows default end of line is #\Return then #\Newline and the parser gets to see both of them, so it needs to be prepared. See #159 which is all about windows support. --- src/parsers/command-utils.lisp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/parsers/command-utils.lisp b/src/parsers/command-utils.lisp index 940e1cc..0848ec3 100644 --- a/src/parsers/command-utils.lisp +++ b/src/parsers/command-utils.lisp @@ -24,7 +24,7 @@ (defrule keep-a-single-whitespace (+ (or #\space #\tab #\newline #\linefeed)) (:constant " ")) -(defrule whitespace (+ (or #\space #\tab #\newline #\linefeed comments)) +(defrule whitespace (+ (or #\space #\tab #\return #\newline #\linefeed comments)) (:constant 'whitespace)) (defrule ignore-whitespace (* whitespace)