-
Notifications
You must be signed in to change notification settings - Fork 45
Remove variant lists #206
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove variant lists #206
Conversation
7a2039f
to
ee1d8b5
Compare
ee1d8b5
to
d894a70
Compare
1c70ca8
to
4695aa7
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's technical changes I'd like to see here.
I think it'd be good to have tests that cover the grounds we're leaving behind, and declare them as parsing errors. With that, we at least prevent accidental syntax re-use, and keep a reminder that we've tried this and didn't like at least some of it.
There's also a ton of conflicts and there'll probably be more by the time 0.8 is out, but we'll get there when it's time.
test/fixtures/member_expressions.ftl
Outdated
@@ -1,6 +1,5 @@ | |||
variant-expression = {-term[case]} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we keep this as an error test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a new fixture file, called obsolete.ftl
, with a few examples of discontinued syntax. Thanks for the suggestion.
-simple-identifier = | ||
{ | ||
simple-identifier = | ||
{ $sel -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you cross-check which of these are already tested in select_expressions.ftl
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I checked. select_expressions.ftl
is mostly about selectors and things like empty variant values. In variant_keys.ftl
I'd like to test different variant keys and their errors. I made a few changes in select_expressions.ftl
to simplify the variant keys used there (key
or one
and two
for nested placeables).
4695aa7
to
ab9bd58
Compare
Fix
#204#214.