xref: /aosp_15_r20/external/cldr/common/testData/messageFormat/syntax-errors.json (revision 912701f9769bb47905792267661f0baf2b85bed5)
1[
2  ".",
3  "{",
4  "}",
5  "{}",
6  "{{",
7  "{{}",
8  "{{}}}",
9  "{|foo| #markup}",
10  "{{missing end brace}",
11  "{{missing end braces",
12  "{{missing end {$braces",
13  "{{extra}} content",
14  "empty { } placeholder",
15  "missing space {42:func}",
16  "missing space {|foo|:func}",
17  "missing space {|foo|@bar}",
18  "missing space {:func@bar}",
19  "missing space {:func @bar@baz}",
20  "missing space {:func @bar=42@baz}",
21  "missing space {+reserved@bar}",
22  "missing space {&private@bar}",
23  "bad {:} placeholder",
24  "bad {\\u0000placeholder}",
25  "no-equal {|42| :number minimumFractionDigits 2}",
26  "bad {:placeholder option=}",
27  "bad {:placeholder option value}",
28  "bad {:placeholder option:value}",
29  "bad {:placeholder option}",
30  "bad {:placeholder:}",
31  "bad {::placeholder}",
32  "bad {:placeholder::foo}",
33  "bad {:placeholder option:=x}",
34  "bad {:placeholder :option=x}",
35  "bad {:placeholder option::x=y}",
36  "bad {$placeholder option}",
37  "bad {:placeholder @attribute=}",
38  "bad {:placeholder @attribute=@foo}",
39  "no {placeholder end",
40  "no {$placeholder end",
41  "no {:placeholder end",
42  "no {|placeholder| end",
43  "no {|literal} end",
44  "no {|literal or placeholder end",
45  ".local bar = {|foo|} {{_}}",
46  ".local #bar = {|foo|} {{_}}",
47  ".local $bar {|foo|} {{_}}",
48  ".local $bar = |foo| {{_}}",
49  ".match {#foo} * {{foo}}",
50  ".match {} * {{foo}}",
51  ".match {|foo| :x} {|bar| :x} ** {{foo}}",
52  ".match * {{foo}}",
53  ".match {|x| :x} * foo",
54  ".match {|x| :x} * {{foo}} extra",
55  ".match |x| * {{foo}}"
56]
57