Skip to content

Commit

Permalink
Merge pull request #363 from millerjs/fix-multiline-comments
Browse files Browse the repository at this point in the history
invalidate block-comment start after ####
  • Loading branch information
syohex committed Mar 15, 2020
2 parents 7d2c4d4 + 405f331 commit 35a41c7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion coffee-mode.el
Expand Up @@ -1140,7 +1140,9 @@ comments such as the following:
(ppss (prog2
(backward-char 3)
(syntax-ppss)
(setq valid-comment-start (looking-back "^\\s-*" (line-beginning-position)))
(setq valid-comment-start
(and (looking-back "^\\s-*" (line-beginning-position))
(looking-at-p "###[^#]")))
(forward-char 3)))
(in-comment (nth 4 ppss))
(in-string (nth 3 ppss)))
Expand Down

0 comments on commit 35a41c7

Please sign in to comment.