Skip to content

Commit c1059d6

Browse files
committed
Added angle bracket tests, some of which fail without the fix
1 parent 198c777 commit c1059d6

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

rust-mode-tests.el

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2414,6 +2414,14 @@ fn main() {
24142414
"/* " font-lock-comment-delimiter-face
24152415
"no-op */" font-lock-comment-face)))
24162416

2417+
(ert-deftest font-lock-fontify-angle-brackets ()
2418+
"Test that angle bracket fontify"
2419+
(should (equal (rust-test-fontify-string "<>") "<>"))
2420+
(should (equal (rust-test-fontify-string "<foo>") "<foo>"))
2421+
(should (equal (rust-test-fontify-string "<<>>") "<<>>"))
2422+
(should (equal (rust-test-fontify-string "<>>") "<>>"))
2423+
(should (equal (rust-test-fontify-string "<<>") "<<>")))
2424+
24172425
(ert-deftest rust-test-basic-paren-matching ()
24182426
(rust-test-matching-parens
24192427
"

0 commit comments

Comments
 (0)