mirror of
https://github.com/dimitri/pgloader.git
synced 2025-08-09 07:47:00 +02:00
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:
parent
7fc0812f79
commit
c439ea4b9c
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user