1. 18 Jul, 2023 1 commit
    • Tae Hyung Kim's avatar
      Relax syntax for gen-l10n (#130736) · c6b93b2d
      Tae Hyung Kim authored
      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.
      c6b93b2d
  2. 29 Jun, 2023 1 commit
  3. 15 May, 2023 1 commit
  4. 22 Mar, 2023 1 commit
  5. 17 Feb, 2023 1 commit
  6. 13 Feb, 2023 1 commit
  7. 25 Jan, 2023 2 commits
  8. 10 Jan, 2023 1 commit
  9. 30 Nov, 2022 1 commit
    • Tae Hyung Kim's avatar
      [gen_l10n] Improvements to `gen_l10n` (#116202) · 7802c7ac
      Tae Hyung Kim authored
      * init
      
      * fix tests
      
      * fix lint
      
      * extra changes
      
      * oops missed some merge conflicts
      
      * fix lexer add tests
      
      * consistent warnings and errors
      
      * throw error at the end
      
      * improve efficiency, improve code generation
      
      * fix
      
      * nit
      
      * fix test
      
      * remove helper method class
      
      * two d's
      
      * oops
      
      * empty commit as google testing won't pass :(
      7802c7ac
  10. 29 Nov, 2022 1 commit
  11. 05 Nov, 2022 1 commit
    • Tae Hyung Kim's avatar
      ICU Message Syntax Parser (#112390) · cef4c2aa
      Tae Hyung Kim authored
      * init
      
      * code generation
      
      * improve syntax error, add tests
      
      * add tests and fix bugs
      
      * code generation fix
      
      * fix all tests :)
      
      * fix bug
      
      * init
      
      * fix all code gen issues
      
      * FIXED ALL TESTS :D
      
      * add license
      
      * remove trailing spaces
      
      * remove print
      
      * tests fix
      
      * specify type annotation
      
      * fix test
      
      * lint
      
      * fix todos
      
      * fix subclass issues
      
      * final fix; flutter gallery runs
      
      * escaping for later pr
      
      * fix comment
      
      * address PR comments
      
      * more
      
      * more descriptive errors
      
      * last fixes
      cef4c2aa