File tree 2 files changed +8
-8
lines changed
src/compiler/phases/2-analyze
tests/validator/samples/unknown-code 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1110,7 +1110,7 @@ const common_visitors = {
1110
1110
if ( prev . type === 'Comment' ) {
1111
1111
ignores . push (
1112
1112
...extract_svelte_ignore (
1113
- prev . start + 2 /* '// '.length */ ,
1113
+ prev . start + 4 /* '<!-- '.length */ ,
1114
1114
prev . data ,
1115
1115
state . analysis . runes
1116
1116
)
@@ -1133,7 +1133,7 @@ const common_visitors = {
1133
1133
for ( const comment of comments ) {
1134
1134
ignores . push (
1135
1135
...extract_svelte_ignore (
1136
- comment . start + 4 /* '<!-- '.length */ ,
1136
+ comment . start + 2 /* '// '.length */ ,
1137
1137
comment . value ,
1138
1138
state . analysis . runes
1139
1139
)
Original file line number Diff line number Diff line change 4
4
"message" : " `a11y-missing-attribute` is no longer valid — please use `a11y_missing_attribute` instead" ,
5
5
"start" : {
6
6
"line" : 3 ,
7
- "column" : 17
7
+ "column" : 19
8
8
},
9
9
"end" : {
10
10
"line" : 3 ,
11
- "column" : 39
11
+ "column" : 41
12
12
}
13
13
},
14
14
{
28
28
"message" : " `ally_missing_attribute` is not a recognised code (did you mean `a11y_missing_attribute`?)" ,
29
29
"start" : {
30
30
"line" : 8 ,
31
- "column" : 17
31
+ "column" : 19
32
32
},
33
33
"end" : {
34
34
"line" : 8 ,
35
- "column" : 39
35
+ "column" : 41
36
36
}
37
37
},
38
38
{
52
52
"message" : " `a11y-misplaced-scope` is no longer valid — please use `a11y_misplaced_scope` instead" ,
53
53
"start" : {
54
54
"line" : 13 ,
55
- "column" : 17
55
+ "column" : 19
56
56
},
57
57
"end" : {
58
58
"line" : 13 ,
59
- "column" : 37
59
+ "column" : 39
60
60
}
61
61
},
62
62
{
You can’t perform that action at this time.
0 commit comments