diff options
| author | Jonas Westlund <jonaswestlund101@gmail.com> | 2017-08-21 02:25:30 +0200 |
|---|---|---|
| committer | Jonas Westlund <jonaswestlund101@gmail.com> | 2017-08-21 02:25:30 +0200 |
| commit | ac5dac0471f573948ffa7146847820d3d543a9b2 (patch) | |
| tree | 358b763305153fdb40ebee7eb0a928793193a914 | |
| parent | dea81aa7cc0d162d863e39113ebb9e389651f671 (diff) | |
| download | rust-mode-ac5dac0471f573948ffa7146847820d3d543a9b2.tar.gz | |
Added test for if-let font lock
| -rw-r--r-- | rust-mode-tests.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/rust-mode-tests.el b/rust-mode-tests.el index aab82df..3ed5bd7 100644 --- a/rust-mode-tests.el +++ b/rust-mode-tests.el @@ -2345,6 +2345,15 @@ fn main() { "/* " font-lock-comment-delimiter-face "no-op */" font-lock-comment-face))) +(ert-deftest rust-if-let-type-font-lock () + (rust-test-font-lock + "if let Some(var) = some_var { /* no-op */ }" + '("if" font-lock-keyword-face + "let" font-lock-keyword-face + "Some" font-lock-type-face + "/* " font-lock-comment-delimiter-face + "no-op */" font-lock-comment-face))) + (ert-deftest rust-test-basic-paren-matching () (rust-test-matching-parens " |
