diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-02 20:04:02 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1993-07-02 20:04:02 +0000 |
commit | c0bca41c47f33107aab192e534633a4c6cb0cd6d (patch) | |
tree | b7e1e5c4949487efcff0539d95e2416f42e26619 /gdb/c-exp.y | |
parent | c649a7c231438b704b3b93f57402e242dab874ff (diff) | |
download | gdb-c0bca41c47f33107aab192e534633a4c6cb0cd6d.zip gdb-c0bca41c47f33107aab192e534633a4c6cb0cd6d.tar.gz gdb-c0bca41c47f33107aab192e534633a4c6cb0cd6d.tar.bz2 |
* c-exp.y (yylex): Give error if unmatched single quote.
Diffstat (limited to 'gdb/c-exp.y')
-rw-r--r-- | gdb/c-exp.y | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gdb/c-exp.y b/gdb/c-exp.y index 0394ae9..3756721 100644 --- a/gdb/c-exp.y +++ b/gdb/c-exp.y @@ -1186,6 +1186,8 @@ yylex () if (namelen > 2) { lexptr = tokstart + namelen; + if (lexptr[-1] != '\'') + error ("Unmatched single quote."); namelen -= 2; tokstart++; goto tryname; |