diff options
| author | Felix S Klock II <pnkfelix@pnkfx.org> | 2019-03-04 13:33:56 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-04 13:33:56 +0100 |
| commit | 06f1c6816c6291a71d636f2fbb9fd67a5c8d28c4 (patch) | |
| tree | beaae8a0396cc4a3228c0ce7b77e1a0a5e14394a /rust-mode-tests.el | |
| parent | 8cd18cc89d1e1f4419fb7b6a13d6bf50e480938b (diff) | |
| parent | 497d47679ad0349b43b744c9ef4ac16a610c0779 (diff) | |
| download | rust-mode-06f1c6816c6291a71d636f2fbb9fd67a5c8d28c4.tar.gz | |
Merge pull request #300 from mmilenko/rust-looking-back-macro--backward-char--fix
Avoid signaling "Beginning of buffer" in rust-looking-back-macro
Diffstat (limited to 'rust-mode-tests.el')
| -rw-r--r-- | rust-mode-tests.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/rust-mode-tests.el b/rust-mode-tests.el index a5fea28..72a9e4e 100644 --- a/rust-mode-tests.el +++ b/rust-mode-tests.el @@ -2414,6 +2414,14 @@ fn main() { "/* " font-lock-comment-delimiter-face "no-op */" font-lock-comment-face))) +(ert-deftest font-lock-fontify-angle-brackets () + "Test that angle bracket fontify" + (should (equal (rust-test-fontify-string "<>") "<>")) + (should (equal (rust-test-fontify-string "<foo>") "<foo>")) + (should (equal (rust-test-fontify-string "<<>>") "<<>>")) + (should (equal (rust-test-fontify-string "<>>") "<>>")) + (should (equal (rust-test-fontify-string "<<>") "<<>"))) + (ert-deftest rust-test-basic-paren-matching () (rust-test-matching-parens " |
