flutter/packages
Tae Hyung Kim c6b93b2db7
Relax syntax for gen-l10n (#130736)
To preserve backward compatibility with the old parser which would
ignore syntax errors, this PR introduces a way to treat the special
characters `{` and `}` in the following way:
1. If we encounter a `{` which searching for a string token and this `{`
is not followed by a valid placeholder, then we treat the `{` as a
string and continue lexing for strings.
2. If we encounter a `}` while not within some expression (i.e.
placeholders, arguments, plurals, or selects), then we treat the `}` as
a string and continue lexing for strings.

This makes it so that
```
"helloWorld": "{ } { placeholder }",
"@@helloWorld": {
  "placeholders": {
    "placeholder" {}
  }
}
```
treats the `{ }` as a string while `{ placeholder } ` is treated as a
placeholder.

Fixes https://github.com/flutter/flutter/issues/122404.
2023-07-18 13:59:48 -07:00
..
flutter Updated ThemeData.useMaterial3 API doc, default is true (#130764) 2023-07-18 11:22:02 -07:00
flutter_driver Stand-alone widget tree with multiple render trees to enable multi-view rendering (#125003) 2023-07-17 16:14:08 +00:00
flutter_goldens Upgrade framework pub dependencies, roll engine with rolled dart sdk (#130163) 2023-07-07 13:55:35 -07:00
flutter_goldens_client Upgrade leak_tracker to 5.0.0 (#126367) 2023-05-16 04:39:26 +00:00
flutter_localizations Fix finish translation for tab labels (#130333) 2023-07-14 15:04:40 +00:00
flutter_test Stand-alone widget tree with multiple render trees to enable multi-view rendering (#125003) 2023-07-17 16:14:08 +00:00
flutter_tools Relax syntax for gen-l10n (#130736) 2023-07-18 13:59:48 -07:00
flutter_web_plugins [web] Migrate web-only initialization APIs (#129856) 2023-07-13 20:12:10 +00:00
fuchsia_remote_debug_protocol Upgrade framework pub dependencies, roll engine with rolled dart sdk (#130163) 2023-07-07 13:55:35 -07:00
integration_test Stand-alone widget tree with multiple render trees to enable multi-view rendering (#125003) 2023-07-17 16:14:08 +00:00
analysis_options.yaml Unify analysis options (#108462) 2022-07-28 09:07:49 -07:00