summaryrefslogtreecommitdiff
path: root/src/syntax.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/syntax.c b/src/syntax.c
index da41de6d5a7..233f7980251 100644
--- a/src/syntax.c
+++ b/src/syntax.c
@@ -1658,7 +1658,9 @@ between them, return t; otherwise return nil.")
}
while (code == Swhitespace || code == Sendcomment);
- if (code != Scomment && code != Scomment_fence)
+ if (code == Scomment_fence)
+ comstyle = ST_COMMENT_STYLE;
+ else if (code != Scomment)
{
immediate_quit = 0;
DEC_BOTH (from, from_byte);