Skip to content

Commit

Permalink
Add regression test for #304
Browse files Browse the repository at this point in the history
  • Loading branch information
syohex committed Mar 18, 2015
1 parent 1871db4 commit 240162b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/coffee-highlight.el
Expand Up @@ -1056,4 +1056,12 @@ testMethod = (id) ->
(forward-cursor-on "Broken")
(should (face-at-cursor-p 'font-lock-comment-face))))

(ert-deftest regression-304 ()
"Broken syntax highlighting if class member name contains underscore"
(with-coffee-temp-buffer
"@proto_classes = builder.build"

(forward-cursor-on "classes")
(should (face-at-cursor-p 'font-lock-variable-name-face))))

;;; coffee-highlight.el end here

0 comments on commit 240162b

Please sign in to comment.