all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob 1f549085e3f4e7b60264a7153ef3c75c7131b109 1378 bytes (raw)
name: test/lisp/progmodes/rust-ts-mode-resources/font-lock.rs 	 # note: path name is non-authoritative(*)

 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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
 
// -*- 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
        }
    };

fn main() {
    let x = 1usize;
//          ^ font-lock-number-face
//             ^ font-lock-number-face
    let x = 1_usize;
//          ^ font-lock-number-face
//             ^ font-lock-number-face
    let x = 1_f64;
//          ^ font-lock-number-face
//             ^ font-lock-number-face
    let x = 1.0f64;
//          ^ font-lock-number-face
//              ^ font-lock-number-face
    let x = 1.0_f64;
//            ^ font-lock-number-face
//               ^ font-lock-number-face
}

debug log:

solving 1f549085e3f ...
found 1f549085e3f in https://git.savannah.gnu.org/cgit/emacs.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.