diff options
Diffstat (limited to 'src/syntax.c')
| -rw-r--r-- | src/syntax.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c index 3f668eac946..1c8d0debbf3 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -2123,8 +2123,6 @@ between them, return t; otherwise return nil. */) | |||
| 2123 | while (1) | 2123 | while (1) |
| 2124 | { | 2124 | { |
| 2125 | DEC_BOTH (from, from_byte); | 2125 | DEC_BOTH (from, from_byte); |
| 2126 | if (from == stop) | ||
| 2127 | break; | ||
| 2128 | UPDATE_SYNTAX_TABLE_BACKWARD (from); | 2126 | UPDATE_SYNTAX_TABLE_BACKWARD (from); |
| 2129 | c = FETCH_CHAR (from_byte); | 2127 | c = FETCH_CHAR (from_byte); |
| 2130 | if (SYNTAX (c) == Scomment_fence | 2128 | if (SYNTAX (c) == Scomment_fence |
| @@ -2133,6 +2131,8 @@ between them, return t; otherwise return nil. */) | |||
| 2133 | found = 1; | 2131 | found = 1; |
| 2134 | break; | 2132 | break; |
| 2135 | } | 2133 | } |
| 2134 | else if (from == stop) | ||
| 2135 | break; | ||
| 2136 | } | 2136 | } |
| 2137 | if (found == 0) | 2137 | if (found == 0) |
| 2138 | { | 2138 | { |
| @@ -2140,6 +2140,9 @@ between them, return t; otherwise return nil. */) | |||
| 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 | { |