aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/syntax.c b/src/syntax.c
index f020bdbbced..0f2cda592aa 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -2164,6 +2164,9 @@ scan_lists (from, count, depth, sexpflag)
2164 INC_BOTH (from, from_byte); 2164 INC_BOTH (from, from_byte);
2165 if (!depth && sexpflag) goto done; 2165 if (!depth && sexpflag) goto done;
2166 break; 2166 break;
2167 default:
2168 /* Ignore whitespace, punctuation, quote, endcomment. */
2169 break;
2167 } 2170 }
2168 } 2171 }
2169 2172
@@ -2211,7 +2214,10 @@ scan_lists (from, count, depth, sexpflag)
2211 into a word character. Note that this cannot be true 2214 into a word character. Note that this cannot be true
2212 if we decremented FROM in the if-statement above. */ 2215 if we decremented FROM in the if-statement above. */
2213 if (code != Sendcomment && char_quoted (from, from_byte)) 2216 if (code != Sendcomment && char_quoted (from, from_byte))
2214 code = Sword; 2217 {
2218 DEC_BOTH (from, from_byte);
2219 code = Sword;
2220 }
2215 else if (SYNTAX_PREFIX (c)) 2221 else if (SYNTAX_PREFIX (c))
2216 continue; 2222 continue;
2217 2223
@@ -2332,6 +2338,9 @@ scan_lists (from, count, depth, sexpflag)
2332 DEC_BOTH (from, from_byte); 2338 DEC_BOTH (from, from_byte);
2333 if (!depth && sexpflag) goto done2; 2339 if (!depth && sexpflag) goto done2;
2334 break; 2340 break;
2341 default:
2342 /* Ignore whitespace, punctuation, quote, endcomment. */
2343 break;
2335 } 2344 }
2336 } 2345 }
2337 2346
@@ -2675,6 +2684,7 @@ do { prev_from = from; \
2675 curlevel->prev = curlevel->last; 2684 curlevel->prev = curlevel->last;
2676 break; 2685 break;
2677 2686
2687 case Scomment_fence: /* Can't happen because it's handled above. */
2678 case Scomment: 2688 case Scomment:
2679 if (commentstop || boundary_stop) goto done; 2689 if (commentstop || boundary_stop) goto done;
2680 startincomment: 2690 startincomment:
@@ -2770,6 +2780,10 @@ do { prev_from = from; \
2770 break; 2780 break;
2771 2781
2772 case Smath: 2782 case Smath:
2783 /* FIXME: We should do something with it. */
2784 break;
2785 default:
2786 /* Ignore whitespace, punctuation, quote, endcomment. */
2773 break; 2787 break;
2774 } 2788 }
2775 } 2789 }