Mercurial > emacs
diff src/syntax.c @ 12870:1372454cb5e5
(scan_sexps_forward): Use the initial depth
in the starting state for tracking when we reach TARGETDEPTH.
| author | Richard M. Stallman <rms@gnu.org> |
|---|---|
| date | Wed, 16 Aug 1995 15:03:24 +0000 |
| parents | be9d727c58c2 |
| children | b2a75405de3c |
line wrap: on
line diff
--- a/src/syntax.c Wed Aug 16 15:00:57 1995 +0000 +++ b/src/syntax.c Wed Aug 16 15:03:24 1995 +0000 @@ -1534,7 +1534,7 @@ error ("Nesting too deep for parser"); curlevel->prev = -1; curlevel->last = -1; - if (!--targetdepth) goto done; + if (targetdepth != depth) goto done; break; case Sclose: @@ -1544,7 +1544,7 @@ if (curlevel != levelstart) curlevel--; curlevel->prev = curlevel->last; - if (!++targetdepth) goto done; + if (targetdepth != depth) goto done; break; case Sstring:
