projects
/
jscl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c08b369
)
Fix bug in character reading
author
David Vázquez
<davazp@gmail.com>
Thu, 2 May 2013 14:59:51 +0000
(15:59 +0100)
committer
David Vázquez
<davazp@gmail.com>
Thu, 2 May 2013 14:59:51 +0000
(15:59 +0100)
src/read.lisp
patch
|
blob
|
history
diff --git
a/src/read.lisp
b/src/read.lisp
index
ac9e0f3
..
7478b37
100644
(file)
--- a/
src/read.lisp
+++ b/
src/read.lisp
@@
-138,9
+138,9
@@
(concat (string (%read-char stream))
(read-until stream #'terminalp))))
(cond
(concat (string (%read-char stream))
(read-until stream #'terminalp))))
(cond
- ((string= cname "space") (char-code #\space))
- ((string= cname "tab") (char-code #\tab))
- ((string= cname "newline") (char-code #\newline))
+ ((string= cname "space") #\space)
+ ((string= cname "tab") #\tab)
+ ((string= cname "newline") #\newline)
(t (char cname 0)))))
(#\+
(let ((feature (read-until stream #'terminalp)))
(t (char cname 0)))))
(#\+
(let ((feature (read-until stream #'terminalp)))
@@
-173,7
+173,7
@@
(dotimes (i (length s))
(let ((ch (char s i)))
(if last-escape
(dotimes (i (length s))
(let ((ch (char s i)))
(if last-escape
- (progn
+ (progn
(setf last-escape nil)
(setf result (concat result (string ch))))
(if (char= ch #\\)
(setf last-escape nil)
(setf result (concat result (string ch))))
(if (char= ch #\\)