summaryrefslogtreecommitdiff
path: root/syntax-highlight/parsers.scm
diff options
context:
space:
mode:
Diffstat (limited to 'syntax-highlight/parsers.scm')
-rw-r--r--syntax-highlight/parsers.scm3
1 files changed, 2 insertions, 1 deletions
diff --git a/syntax-highlight/parsers.scm b/syntax-highlight/parsers.scm
index 2569b04..a1c3a37 100644
--- a/syntax-highlight/parsers.scm
+++ b/syntax-highlight/parsers.scm
@@ -187,7 +187,8 @@ Within the sequence, ESCAPE is recognized as the escape character."
(loop rest (cons* head escape result)))))
((parse-until-maybe stream) =>
(lambda (remaining)
- (stringify (append (string->list until) result) remaining)))
+ (stringify (append (reverse (string->list until)) result)
+ remaining)))
(else
(loop (stream-cdr stream) (cons (stream-car stream) result)))))
(parse-fail stream))))))