summaryrefslogtreecommitdiff
path: root/rust-mode-tests.el
diff options
context:
space:
mode:
authorFelix S Klock II <pnkfelix@pnkfx.org>2019-03-04 13:33:56 +0100
committerGitHub <noreply@github.com>2019-03-04 13:33:56 +0100
commit06f1c6816c6291a71d636f2fbb9fd67a5c8d28c4 (patch)
treebeaae8a0396cc4a3228c0ce7b77e1a0a5e14394a /rust-mode-tests.el
parent8cd18cc89d1e1f4419fb7b6a13d6bf50e480938b (diff)
parent497d47679ad0349b43b744c9ef4ac16a610c0779 (diff)
downloadrust-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.el8
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
"