Fix the fix for parsing quoted-filenames.

This commit is contained in:
Dimitri Fontaine 2014-04-28 15:18:18 +02:00
parent b5c89e750c
commit b758058208

View File

@ -380,7 +380,10 @@
(list :filename (parse-namestring (coerce f 'string)))))
(defrule quoted-filename (and #\' (+ (not #\')) #\')
(:destructure (open f close) (declare (ignore open close)) (text f)))
(:lambda (q-f)
(destructuring-bind (open f close) q-f
(declare (ignore open close))
(list :filename (parse-namestring (coerce f 'string))))))
(defrule maybe-quoted-filename (or quoted-filename filename)
(:identity t))