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.
This commit is contained in:
Dimitri Fontaine 2016-03-30 10:41:50 +02:00
parent 7fc0812f79
commit c439ea4b9c

View File

@ -24,7 +24,7 @@
(defrule keep-a-single-whitespace (+ (or #\space #\tab #\newline #\linefeed)) (defrule keep-a-single-whitespace (+ (or #\space #\tab #\newline #\linefeed))
(:constant " ")) (:constant " "))
(defrule whitespace (+ (or #\space #\tab #\newline #\linefeed comments)) (defrule whitespace (+ (or #\space #\tab #\return #\newline #\linefeed comments))
(:constant 'whitespace)) (:constant 'whitespace))
(defrule ignore-whitespace (* whitespace) (defrule ignore-whitespace (* whitespace)