File tree Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Expand file tree Collapse file tree 1 file changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -1317,6 +1317,15 @@ list of substrings of `STR' each followed by its face."
1317
1317
" mut" font-lock-keyword-face
1318
1318
" bar" font-lock-variable-name-face )))
1319
1319
1320
+ (ert-deftest font-lock-if-let-binding ()
1321
+ (rust-test-font-lock
1322
+ " if let Some(var) = some_var { /* no-op */ }"
1323
+ '(" if" font-lock-keyword-face
1324
+ " let" font-lock-keyword-face
1325
+ " Some" font-lock-type-face
1326
+ " /* " font-lock-comment-delimiter-face
1327
+ " no-op */" font-lock-comment-face )))
1328
+
1320
1329
(ert-deftest font-lock-single-quote-character-literal ()
1321
1330
(rust-test-font-lock
1322
1331
" fn main() { let ch = '\\ ''; }"
@@ -2345,15 +2354,6 @@ fn main() {
2345
2354
" /* " font-lock-comment-delimiter-face
2346
2355
" no-op */" font-lock-comment-face )))
2347
2356
2348
- (ert-deftest rust-if-let-type-font-lock ()
2349
- (rust-test-font-lock
2350
- " if let Some(var) = some_var { /* no-op */ }"
2351
- '(" if" font-lock-keyword-face
2352
- " let" font-lock-keyword-face
2353
- " Some" font-lock-type-face
2354
- " /* " font-lock-comment-delimiter-face
2355
- " no-op */" font-lock-comment-face )))
2356
-
2357
2357
(ert-deftest rust-test-basic-paren-matching ()
2358
2358
(rust-test-matching-parens
2359
2359
"
You can’t perform that action at this time.
0 commit comments