diff options
Diffstat (limited to 'src/syntax.c')
| -rw-r--r-- | src/syntax.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/syntax.c b/src/syntax.c index 7aa43e6e5c7..dcaca22f0e2 100644 --- a/src/syntax.c +++ b/src/syntax.c | |||
| @@ -810,6 +810,7 @@ back_comment (ptrdiff_t from, ptrdiff_t from_byte, ptrdiff_t stop, | |||
| 810 | case Sstring_fence: | 810 | case Sstring_fence: |
| 811 | case Scomment_fence: | 811 | case Scomment_fence: |
| 812 | c = (code == Sstring_fence ? ST_STRING_STYLE : ST_COMMENT_STYLE); | 812 | c = (code == Sstring_fence ? ST_STRING_STYLE : ST_COMMENT_STYLE); |
| 813 | FALLTHROUGH; | ||
| 813 | case Sstring: | 814 | case Sstring: |
| 814 | /* Track parity of quotes. */ | 815 | /* Track parity of quotes. */ |
| 815 | if (string_style == -1) | 816 | if (string_style == -1) |
| @@ -2690,6 +2691,7 @@ scan_lists (EMACS_INT from, EMACS_INT count, EMACS_INT depth, bool sexpflag) | |||
| 2690 | goto lose; | 2691 | goto lose; |
| 2691 | INC_BOTH (from, from_byte); | 2692 | INC_BOTH (from, from_byte); |
| 2692 | /* Treat following character as a word constituent. */ | 2693 | /* Treat following character as a word constituent. */ |
| 2694 | FALLTHROUGH; | ||
| 2693 | case Sword: | 2695 | case Sword: |
| 2694 | case Ssymbol: | 2696 | case Ssymbol: |
| 2695 | if (depth || !sexpflag) break; | 2697 | if (depth || !sexpflag) break; |
| @@ -2721,7 +2723,7 @@ scan_lists (EMACS_INT from, EMACS_INT count, EMACS_INT depth, bool sexpflag) | |||
| 2721 | 2723 | ||
| 2722 | case Scomment_fence: | 2724 | case Scomment_fence: |
| 2723 | comstyle = ST_COMMENT_STYLE; | 2725 | comstyle = ST_COMMENT_STYLE; |
| 2724 | /* FALLTHROUGH */ | 2726 | FALLTHROUGH; |
| 2725 | case Scomment: | 2727 | case Scomment: |
| 2726 | if (!parse_sexp_ignore_comments) break; | 2728 | if (!parse_sexp_ignore_comments) break; |
| 2727 | UPDATE_SYNTAX_TABLE_FORWARD (from); | 2729 | UPDATE_SYNTAX_TABLE_FORWARD (from); |
| @@ -2753,7 +2755,7 @@ scan_lists (EMACS_INT from, EMACS_INT count, EMACS_INT depth, bool sexpflag) | |||
| 2753 | goto close1; | 2755 | goto close1; |
| 2754 | } | 2756 | } |
| 2755 | mathexit = 1; | 2757 | mathexit = 1; |
| 2756 | 2758 | FALLTHROUGH; | |
| 2757 | case Sopen: | 2759 | case Sopen: |
| 2758 | if (!++depth) goto done; | 2760 | if (!++depth) goto done; |
| 2759 | break; | 2761 | break; |
| @@ -2909,7 +2911,7 @@ scan_lists (EMACS_INT from, EMACS_INT count, EMACS_INT depth, bool sexpflag) | |||
| 2909 | goto open2; | 2911 | goto open2; |
| 2910 | } | 2912 | } |
| 2911 | mathexit = 1; | 2913 | mathexit = 1; |
| 2912 | 2914 | FALLTHROUGH; | |
| 2913 | case Sclose: | 2915 | case Sclose: |
| 2914 | if (!++depth) goto done2; | 2916 | if (!++depth) goto done2; |
| 2915 | break; | 2917 | break; |