-
Notifications
You must be signed in to change notification settings - Fork 365
Expand file tree
/
Copy pathindent_bug_i616.yang
More file actions
70 lines (61 loc) · 1.72 KB
/
Copy pathindent_bug_i616.yang
File metadata and controls
70 lines (61 loc) · 1.72 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
module indent_bug_i616 {
namespace "urn:indent-bug";
prefix indent-bug;
container case1 {
description
"emit-arg for multiline arguments always returns arg_on_new_line =
True for multi-line arguments. It should return need_nl?";
container good {
must "'true'" {
error-message
"This is indented correctly.";
}
}
container bad {
must "'true' and
'true'" {
error-message
"This is indented too much.";
}
}
}
container case2 {
description
"Single quotes are preferred for 'when' arguments, but this causes
problems with double-quoted multi-line arguments. Should preserve the
double quotes in this case?";
container good {
when "boolean(.) and boolean(.)" {
description
"The 'when' arg loses its double quotes but is indented correctly.";
}
}
container bad {
when "boolean(.) and
boolean(.)" {
description
"The 'when' arg loses its double quotes and wraps to the start
of the line.";
}
}
}
container case3 {
description
"Similar to the previous case but triggers too much indentation when
the argument has to be split over multiple lines.";
container good {
when "boolean(.) and boolean(.) and boolean(.) and boolean(.)" {
description
"The 'when' arg loses its double quotes but is indented correctly.";
}
}
container bad {
when "boolean(.) and boolean(.) and boolean(.) and boolean(.) and
boolean(.)" {
description
"The 'description' can be indented too much with
--yang-line-length.";
}
}
}
}