flutter/packages/flutter_tools/test
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
..
commands.shard [tools/ios_build_ipa] fallback to CFBundleName if CFBundleDisplayName is absent (#130752) 2023-07-17 22:21:07 +00:00
data Bump lower Dart SDK constraints to 3.0 & add class modifiers (#122546) 2023-03-21 20:21:58 +00:00
general.shard Relax syntax for gen-l10n (#130736) 2023-07-18 13:59:48 -07:00
host_cross_arch.shard [flutter_tools] Use process matcher for multidex test (#127996) 2023-06-01 22:24:08 +00:00
integration.shard [Android] Deletes deprecated splash screen meta-data element (#130744) 2023-07-18 18:38:12 +00:00
src [flutter_tools] cache flutter sdk version to disk (#124558) 2023-06-15 00:20:30 +00:00
web.shard Add vmservice for android build options (#123034) 2023-04-18 18:16:09 +00:00