Unnamed repository; edit this file 'description' to name the repository.
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
44
45
46
47
48
FLOAT_NUMBER "0e" error: Missing digits after the exponent symbol
WHITESPACE "\n"
FLOAT_NUMBER "0E" error: Missing digits after the exponent symbol
WHITESPACE "\n\n"
FLOAT_NUMBER "42e+" error: Missing digits after the exponent symbol
WHITESPACE "\n"
FLOAT_NUMBER "42e-" error: Missing digits after the exponent symbol
WHITESPACE "\n"
FLOAT_NUMBER "42E+" error: Missing digits after the exponent symbol
WHITESPACE "\n"
FLOAT_NUMBER "42E-" error: Missing digits after the exponent symbol
WHITESPACE "\n\n"
INT_NUMBER "42"
DOT "."
IDENT "e"
PLUS "+"
WHITESPACE "\n"
INT_NUMBER "42"
DOT "."
IDENT "e"
MINUS "-"
WHITESPACE "\n"
INT_NUMBER "42"
DOT "."
IDENT "E"
PLUS "+"
WHITESPACE "\n"
INT_NUMBER "42"
DOT "."
IDENT "E"
MINUS "-"
WHITESPACE "\n\n"
FLOAT_NUMBER "42.2e+" error: Missing digits after the exponent symbol
WHITESPACE "\n"
FLOAT_NUMBER "42.2e-" error: Missing digits after the exponent symbol
WHITESPACE "\n"
FLOAT_NUMBER "42.2E+" error: Missing digits after the exponent symbol
WHITESPACE "\n"
FLOAT_NUMBER "42.2E-" error: Missing digits after the exponent symbol
WHITESPACE "\n\n"
FLOAT_NUMBER "42.2e+f32" error: Missing digits after the exponent symbol
WHITESPACE "\n"
FLOAT_NUMBER "42.2e-f32" error: Missing digits after the exponent symbol
WHITESPACE "\n"
FLOAT_NUMBER "42.2E+f32" error: Missing digits after the exponent symbol
WHITESPACE "\n"
FLOAT_NUMBER "42.2E-f32" error: Missing digits after the exponent symbol
WHITESPACE "\n"
otations.remove(range) { assert_eq!(expected, *spacing); } } cursor = cursor.bump_subtree(); } cursor = cursor.bump(); } assert!(annotations.is_empty(), "unchecked annotations: {annotations:?}"); } #[test] fn punct_spacing() { check_punct_spacing( r#" fn main() { 0+0; //^ Alone 0+(0); //^ Alone 0<=0; //^ Joint // ^ Alone 0<=(0); // ^ Alone a=0; //^ Alone a=(0); //^ Alone a+=0; //^ Joint // ^ Alone a+=(0); // ^ Alone a&&b; //^ Joint // ^ Alone a&&(b); // ^ Alone foo::bar; // ^ Joint // ^ Alone use foo::{bar,baz,}; // ^ Alone // ^ Alone // ^ Alone struct Struct<'a> {}; // ^ Joint // ^ Joint Struct::<0>; // ^ Alone Struct::<{0}>; // ^ Alone ;; //^ Joint // ^ Alone } "#, ); }