Skip to content

Commit

Permalink
Test if syntax table properties are ignored when the delim is blackli…
Browse files Browse the repository at this point in the history
…sted.
  • Loading branch information
Fanael committed Oct 29, 2014
1 parent 18b9410 commit 53d8eb0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions rainbow-delimiters-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -277,5 +277,17 @@
2 3 (face (rainbow-delimiters-depth-2-face))
3 4 (face (rainbow-delimiters-depth-1-face)))))))

(ert-deftest syntax-table-entries-dont-work-when-blacklisted ()
(let ((rainbow-delimiters-delimiter-blacklist '(?a ?b)))
(with-temp-buffer-in-mode 'emacs-lisp-mode
(with-string (str #("(ab)"
1 2 (syntax-table (4 . ?b))
2 3 (syntax-table (5 . ?a))))
(should (ert-equal-including-properties
(buffer-string-without-uninteresting-properties)
#("(ab)"
0 1 (face (rainbow-delimiters-depth-1-face))
3 4 (face (rainbow-delimiters-depth-1-face)))))))))

(provide 'rainbow-delimiters-test)
;;; rainbow-delimiters-test.el ends here

0 comments on commit 53d8eb0

Please sign in to comment.