From 097283714e52b370eff9c68d5ced2ea254962f32 Mon Sep 17 00:00:00 2001 From: Claudio Fontana Date: Thu, 19 Oct 2006 13:00:09 +0000 Subject: * fix lisp string parsing --- ChangeLog | 5 +++++ libidu/scanners.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f1d9af6..9dadec0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2006-10-19 Claudio Fontana + + * libidu/scanners.c (get_token_lisp): (tiny) fix bug in double + quoted string parsing (fix provided by Walter Sosa). + 2006-08-22 Claudio Fontana * doc/idutils.texi: fix wrong example .emacs entry, where diff --git a/libidu/scanners.c b/libidu/scanners.c index b0b0b31..c9785c1 100644 --- a/libidu/scanners.c +++ b/libidu/scanners.c @@ -1632,14 +1632,14 @@ get_token_lisp (FILE *in_FILE, void const *args, int *flags) } while ( (c != EOF) && (c != '\n')); goto top; - case '"': /* string with or without ansi-C escapes */ + case '"': /* string with/without ansi-C escapes*/ string: do { c = getc (in_FILE); if (c == '\\') { c = getc (in_FILE); - continue; + goto string; } } while ( (c != EOF) && (c != '"')); goto top; -- cgit v1.2.3