aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c
index f8d50d1e5b4..3f6058e3b1a 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -2344,8 +2344,6 @@ between them, return t; otherwise return nil. */)
2344 while (1) 2344 while (1)
2345 { 2345 {
2346 DEC_BOTH (from, from_byte); 2346 DEC_BOTH (from, from_byte);
2347 if (from == stop)
2348 break;
2349 UPDATE_SYNTAX_TABLE_BACKWARD (from); 2347 UPDATE_SYNTAX_TABLE_BACKWARD (from);
2350 c = FETCH_CHAR_AS_MULTIBYTE (from_byte); 2348 c = FETCH_CHAR_AS_MULTIBYTE (from_byte);
2351 if (SYNTAX (c) == Scomment_fence 2349 if (SYNTAX (c) == Scomment_fence
@@ -2354,6 +2352,8 @@ between them, return t; otherwise return nil. */)
2354 found = 1; 2352 found = 1;
2355 break; 2353 break;
2356 } 2354 }
2355 else if (from == stop)
2356 break;
2357 } 2357 }
2358 if (found == 0) 2358 if (found == 0)
2359 { 2359 {
@@ -2361,6 +2361,9 @@ between them, return t; otherwise return nil. */)
2361 from_byte = ini_byte; 2361 from_byte = ini_byte;
2362 goto leave; 2362 goto leave;
2363 } 2363 }
2364 else
2365 /* We have skipped one comment. */
2366 break;
2364 } 2367 }
2365 else if (code == Sendcomment) 2368 else if (code == Sendcomment)
2366 { 2369 {