Mercurial > emacs
comparison src/syntax.c @ 70291:e4dbfbc6b5c6
(Fforward_comment): Don't forget to break out of the loop
when we skipped backward over a generic comment.
| author | Stefan Monnier <monnier@iro.umontreal.ca> |
|---|---|
| date | Sun, 30 Apr 2006 15:35:54 +0000 |
| parents | 3bd95f4f2941 |
| children | 48f9beb0cfdc |
comparison
equal
deleted
inserted
replaced
| 70290:98e4db27f6c7 | 70291:e4dbfbc6b5c6 |
|---|---|
| 2138 { | 2138 { |
| 2139 from = ini; /* Set point to ini + 1. */ | 2139 from = ini; /* Set point to ini + 1. */ |
| 2140 from_byte = ini_byte; | 2140 from_byte = ini_byte; |
| 2141 goto leave; | 2141 goto leave; |
| 2142 } | 2142 } |
| 2143 else | |
| 2144 /* We have skipped one comment. */ | |
| 2145 break; | |
| 2143 } | 2146 } |
| 2144 else if (code == Sendcomment) | 2147 else if (code == Sendcomment) |
| 2145 { | 2148 { |
| 2146 found = back_comment (from, from_byte, stop, comnested, comstyle, | 2149 found = back_comment (from, from_byte, stop, comnested, comstyle, |
| 2147 &out_charpos, &out_bytepos); | 2150 &out_charpos, &out_bytepos); |
