1. 28 6月, 2022 1 次提交
  2. 24 2月, 2022 1 次提交
    • N
      Improve `scan_escape`. · 37d9ea74
      Nicholas Nethercote 提交于
      `scan_escape` currently has a fast path (for when the first char isn't
      '\\') and a slow path.
      
      This commit changes `scan_escape` so it only handles the slow path, i.e.
      the actual escaping code. The fast path is inlined into the two call
      sites.
      
      This change makes the code faster, because there is no function call
      overhead on the fast path. (`scan_escape` is a big function and doesn't
      get inlined.)
      
      This change also improves readability, because it removes a bunch of
      mode checks on the the fast paths.
      37d9ea74
  3. 06 11月, 2021 1 次提交
  4. 15 10月, 2021 1 次提交
  5. 10 10月, 2021 1 次提交
  6. 11 8月, 2021 2 次提交
  7. 30 7月, 2021 1 次提交
  8. 18 12月, 2020 1 次提交
  9. 30 8月, 2020 1 次提交
  10. 10 6月, 2020 1 次提交
  11. 13 5月, 2020 2 次提交
  12. 06 3月, 2020 1 次提交
  13. 23 12月, 2019 1 次提交
  14. 28 10月, 2019 1 次提交
  15. 14 8月, 2019 1 次提交
  16. 02 8月, 2019 1 次提交
  17. 21 7月, 2019 1 次提交
  18. 20 6月, 2019 1 次提交
  19. 10 6月, 2019 1 次提交
  20. 09 6月, 2019 6 次提交
  21. 02 5月, 2019 1 次提交
    • A
      introduce unescape module · bfa5f278
      Aleksey Kladov 提交于
      Currently, we deal with escape sequences twice: once when we lex a
      string, and a second time when we unescape literals. This PR aims to
      remove this duplication, by introducing a new `unescape` mode as a
      single source of truth for character escaping rules
      bfa5f278