Closed
Bug 1396782
Opened 8 years ago
Closed 8 years ago
Parser: Support nested SelectExpressions
Categories
(L20n :: Python Library, enhancement)
L20n
Python Library
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: stas, Unassigned)
Details
The following currently results in a parsing error:
@unittest.skip("Parsing error")
def test_select_expression_nested(self):
input = """\
foo = { sel_a ->
*[a] { sel_b ->
*[b] Foo
}
}
"""
self.assertEqual(pretty_ftl(input), dedent_ftl(input))
I'm setting this a blocking bug 1396580 until we triage this properly. Nested SelectExpressions are an advanced feature.
Comment 1•8 years ago
|
||
:stas, this seems to work fine in the parser. Can you confirm?
Flags: needinfo?(stas)
| Reporter | ||
Comment 2•8 years ago
|
||
Yes! Thanks for taking a look. It looks like the parsing error was fixed in https://github.com/projectfluent/python-fluent/pull/10. The test was still failing because the Serializer is quite opinionated about indentation. I fixed the test in https://github.com/projectfluent/python-fluent/commit/8c0e8cd7f82f51e93519b47056535795deaa9519.
Status: NEW → RESOLVED
Closed: 8 years ago
Flags: needinfo?(stas)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•