diff options
author | Christopher Faylor <me+cygwin@cgf.cx> | 2003-02-20 03:28:55 +0000 |
---|---|---|
committer | Christopher Faylor <me+cygwin@cgf.cx> | 2003-02-20 03:28:55 +0000 |
commit | 6e5f5201729b7a60a7514425d25ef4de7b914321 (patch) | |
tree | ef224166fc9fe2d306d0d04f35e5c2d5f3e54562 /binutils/rclex.l | |
parent | 1b6bc7e06fbe55f437785412af8c56b741c1a46d (diff) | |
download | gdb-6e5f5201729b7a60a7514425d25ef4de7b914321.zip gdb-6e5f5201729b7a60a7514425d25ef4de7b914321.tar.gz gdb-6e5f5201729b7a60a7514425d25ef4de7b914321.tar.bz2 |
* rclex.l: Handle strings spanning more than one line.
Diffstat (limited to 'binutils/rclex.l')
-rw-r--r-- | binutils/rclex.l | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/binutils/rclex.l b/binutils/rclex.l index 600e38e..a168b9f 100644 --- a/binutils/rclex.l +++ b/binutils/rclex.l @@ -196,7 +196,7 @@ static char *get_string PARAMS ((int)); MAYBE_RETURN (NUMBER); } -("\""[^\"\n]*"\""[ \t]*)+ { +("\""[^\"\n]*"\""[ \t\n]*)+ { char *s; unsigned long length; @@ -425,7 +425,10 @@ handle_quotes (input, len) ++t; assert (ISSPACE (*t)); while (ISSPACE (*t)) + { + if ((*t) == '\n') ++rc_lineno; ++t; + } if (*t == '\0') break; assert (*t == '"'); |