summaryrefslogtreecommitdiff
path: root/test/lisp/progmodes/rust-ts-mode-resources/font-lock.rs
blob: 377cda0e3b91b30ca5a8e8b49748943734d4e97b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// -*- rust-ts-mode-indent-offset: 0 -*-
// Trait with function signature
trait Foo {
    fn foo();
//      ^ font-lock-function-name-face
}

// Macros
macro_rules! unsafe_foo {
    ($env:expr, $name:ident $(, $args:expr)*) => {
//    ^ font-lock-variable-name-face
//         ^ font-lock-type-face
//                ^ font-lock-variable-name-face
//                      ^ font-lock-type-face
//                          ^ font-lock-operator-face
//                                ^ font-lock-variable-name-face
//                                      ^ font-lock-type-face
//                                         ^ font-lock-operator-face
        {
            foo!($env, $name $(, $args)*);
//                ^ font-lock-variable-use-face
//                           ^ font-lock-operator-face
//                                     ^ font-lock-operator-face
        }
    };