Skip to content

Commit fbb8a1b

Browse files
committed
Fix the sigil in behavior test comments
1 parent dfc2ae5 commit fbb8a1b

36 files changed

+54
-54
lines changed

fluent-syntax/test/behavior_test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { readdir } from 'fs';
44
import { readfile } from './util';
55
import { parse } from '../src';
66

7-
const sigil = '^#~ ';
7+
const sigil = '^# ~';
88
const reDirective = new RegExp(`${sigil}(.*)[\n$]`, 'gm');
99

1010
function* directives(source) {
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
key = { foo.23 }
22
3-
#~ ERROR E0004, pos 12, args "a-zA-Z"
3+
# ~ERROR E0004, pos 12, args "a-zA-Z"
44

55
key = { foo. }
66
7-
#~ ERROR E0004, pos 31, args "a-zA-Z"
7+
# ~ERROR E0004, pos 31, args "a-zA-Z"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
err1 = { -brand.gender }
2-
#~ ERROR E0019, pos 23
2+
# ~ERROR E0019, pos 23

fluent-syntax/test/fixtures_behavior/attribute_of_public_as_selector.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ err1 =
33
[1] One
44
*[2] Two
55
}
6-
#~ ERROR E0018, pos 21
6+
# ~ERROR E0018, pos 21
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
foo = Value
22
.attr = Value 2
3-
#~ ERROR E0002, pos 12
3+
# ~ERROR E0002, pos 12
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
key = Value
22
.label =
3-
#~ ERROR E0012, pos 24
3+
# ~ERROR E0012, pos 24
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
key = Value
22
.label
3-
#~ ERROR E0003, pos 22, args "="
3+
# ~ERROR E0003, pos 22, args "="
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
key = { -2.4.5 }
2-
#~ ERROR E0003, pos 12, args "}"
2+
# ~ERROR E0003, pos 12, args "}"
33

44
key = { -2.4. }
5-
#~ ERROR E0003, pos 30, args "}"
5+
# ~ERROR E0003, pos 30, args "}"
66

77
key = { -.4 }
8-
#~ ERROR E0004, pos 44, args "a-zA-Z"
8+
# ~ERROR E0004, pos 44, args "a-zA-Z"
99

1010
key = { -2..4 }
11-
#~ ERROR E0004, pos 61, args "0-9"
11+
# ~ERROR E0004, pos 61, args "0-9"
1212

1313
key = { 24d }
14-
#~ ERROR E0003, pos 77, args "}"
14+
# ~ERROR E0003, pos 77, args "}"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
key = { no-caps-name() }
22
3-
#~ ERROR E0008, pos 21
3+
# ~ERROR E0008, pos 21
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
key = { BUILTIN(2: "foo") }
2-
#~ ERROR E0009, pos 17
2+
# ~ERROR E0009, pos 17
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
key = { BUILTIN(key: foo) }
2-
#~ ERROR E0012, pos 21
2+
# ~ERROR E0012, pos 21

fluent-syntax/test/fixtures_behavior/escape_sequences.ftl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#~ ERROR E0025, pos 8, args "A"
1+
# ~ERROR E0025, pos 8, args "A"
22
key1 = \A
33
4-
#~ ERROR E0026, pos 23, args "000z"
4+
# ~ERROR E0026, pos 23, args "000z"
55
key2 = \u000z
66
77
key3 = \{Escaped}
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
key1 = A
2-
#~ ERROR E0002, pos 0
2+
# ~ERROR E0002, pos 0
33

44
key2 = {
55
a }
6-
#~ ERROR E0014, pos 20
7-
#~ ERROR E0003, pos 23, args "="
6+
# ~ERROR E0014, pos 20
7+
# ~ERROR E0003, pos 23, args "="
88

99
key3 = { a
1010
}
11-
#~ ERROR E0003, pos 36, args "}"
11+
# ~ERROR E0003, pos 36, args "}"
1212

1313
key4 = {
1414
{ a }}
15-
#~ ERROR E0014, pos 48
15+
# ~ERROR E0014, pos 48

fluent-syntax/test/fixtures_behavior/message_reference_as_selector.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ err1 =
22
{ foo ->
33
*[1] One
44
}
5-
#~ ERROR E0016, pos 17
5+
# ~ERROR E0016, pos 17
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
key = { BUILTIN(key: "
22
text
33
") }
4-
#~ ERROR E0020, pos 22
4+
# ~ERROR E0020, pos 22
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
key = Value
22
.2 = Foo
3-
#~ ERROR E0004, pos 17, args "a-zA-Z"
3+
# ~ERROR E0004, pos 17, args "a-zA-Z"

fluent-syntax/test/fixtures_behavior/placeable_in_placeable.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ key2 = { { foo } }
88
# }
99

1010
key4 = { { foo }
11-
#~ ERROR E0003, pos 93, args "}"
11+
# ~ERROR E0003, pos 93, args "}"
1212

1313

1414
# key5 = { foo } }
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
key = { $num
22
3-
#~ ERROR E0003, pos 12, args "}"
3+
# ~ERROR E0003, pos 12, args "}"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
key = Value
22
.label = Value
33
.accesskey = K
4-
#~ ERROR E0002, pos 31
4+
# ~ERROR E0002, pos 31
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
key = { $foo $faa }
2-
#~ ERROR E0003, pos 13, args "}"
2+
# ~ERROR E0003, pos 13, args "}"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
key = { $foo - }
2-
#~ ERROR E0003, pos 13, args "}"
2+
# ~ERROR E0003, pos 13, args "}"
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
key = { $foo -> }
2-
#~ ERROR E0003, pos 16, args "␤"
2+
# ~ERROR E0003, pos 16, args "␤"
33
44
key = { $foo ->
55
}
6-
#~ ERROR E0003, pos 39, args "["
6+
# ~ERROR E0003, pos 39, args "["
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
key = { $foo ->
2-
#~ ERROR E0003, pos 16, args " "
2+
# ~ERROR E0003, pos 16, args " "
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
foo
2-
#~ ERROR E0003, pos 3, args "="
2+
# ~ERROR E0003, pos 3, args "="

fluent-syntax/test/fixtures_behavior/term.ftl

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,17 @@ err1 =
1616
[one] Foo
1717
*[-other] Foo 2
1818
}
19-
#~ ERROR E0004, pos 285, args "0-9"
19+
# ~ERROR E0004, pos 285, args "0-9"
2020

2121
err2 = { $-foo }
22-
#~ ERROR E0004, pos 315, args "a-zA-Z"
22+
# ~ERROR E0004, pos 315, args "a-zA-Z"
2323

2424
err4 = { -brand() }
25-
#~ ERROR E0008, pos 339
25+
# ~ERROR E0008, pos 339
2626

2727
-err5 =
28-
#~ ERROR E0006, pos 351, args "-err5"
28+
# ~ERROR E0006, pos 351, args "-err5"
2929

3030
-err6 =
3131
.attr = Attribute
32-
#~ ERROR E0006, pos 360, args "-err6"
32+
# ~ERROR E0006, pos 360, args "-err6"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
bar = Bar {
2-
#~ ERROR E0014, pos 11
2+
# ~ERROR E0014, pos 11
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

22
8Foo = Foo
3-
#~ ERROR E0002, pos 1
3+
# ~ERROR E0002, pos 1
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
key = { $foo ->
22
*[
3-
#~ ERROR E0004, pos 22, args "a-zA-Z"
3+
# ~ERROR E0004, pos 22, args "a-zA-Z"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
#~ ERROR E0024, pos 18
1+
# ~ERROR E0024, pos 18
22
key01 = { message[variant] }
33
key02 = { -term[variant] }

fluent-syntax/test/fixtures_behavior/variant_expression_as_selector.ftl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@ err1 =
33
*[1] One
44
[2] Two
55
}
6-
#~ ERROR E0024, pos 17
6+
# ~ERROR E0024, pos 17
77

88
err2 =
99
{ -foo[bar] ->
1010
*[1] One
1111
[2] Two
1212
}
13-
#~ ERROR E0017, pos 87
13+
# ~ERROR E0017, pos 87
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
key = { -term[] }
2-
#~ ERROR E0004, pos 14, args "a-zA-Z"
2+
# ~ERROR E0004, pos 14, args "a-zA-Z"

fluent-syntax/test/fixtures_behavior/variant_lists.ftl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
#~ ERROR E0014, pos 16
1+
# ~ERROR E0014, pos 16
22
message1 =
33
{
44
*[one] One
55
}
66
7-
#~ ERROR E0023, pos 118
7+
# ~ERROR E0023, pos 118
88
message2 =
99
{ $sel ->
1010
*[one] {
@@ -24,7 +24,7 @@ message2 =
2424
}
2525
}
2626
27-
#~ ERROR E0023, pos 313
27+
# ~ERROR E0023, pos 313
2828
-term3 =
2929
{ $sel ->
3030
*[one] {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-term = {
22
*[one] Value
33
}
4-
#~ ERROR E0014, pos 9
4+
# ~ERROR E0014, pos 9

fluent-syntax/test/fixtures_behavior/variant_with_empty_pattern.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
-term2 = {
66
*[one]
77
}
8-
#~ ERROR E0012, pos 55
8+
# ~ERROR E0012, pos 55
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-term = {
22
*[ one] Foo
33
}
4-
#~ ERROR E0004, pos 20, args "a-zA-Z"
4+
# ~ERROR E0004, pos 20, args "a-zA-Z"

fluent-syntax/test/fixtures_behavior/variants_with_two_defaults.ftl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
*[one] Foo
33
*[two] Two
44
}
5-
#~ ERROR E0015, pos 29
5+
# ~ERROR E0015, pos 29

0 commit comments

Comments
 (0)