roc/crates/compiler/fmt/src
Joshua Warner 94070e8ba6
Improve parsing of scalar literals
* Unify parsing of string literals and scalar literals, to (e.g.) ensure escapes are handled uniformly. Notably, this makes unicode escapes valid in scalar literals.
* Add a variety of custom error messages about specific failure cases of parsing string/scalar literals. For example, if we're expecting a string (e.g. a package name in the header) and the user tried using single quotes, give a clear message about that.
* Fix formatting of unicode escapes (they previously used {}, now correctly use () to match roc strings)
2023-01-07 15:12:52 -08:00
..
annotation.rs Move syntax tests to a dedicated crate 2022-12-26 22:50:24 -08:00
collection.rs Introduce record! combinator 2022-11-28 20:25:55 -08:00
def.rs Add fuzzing for the formatter and fix bugs 2022-12-17 09:52:09 -08:00
expr.rs Improve parsing of scalar literals 2023-01-07 15:12:52 -08:00
lib.rs parse and format pattern as 2022-12-30 17:50:17 +01:00
module.rs Be more lenient with required indentation in collections 2023-01-01 17:49:51 -08:00
pattern.rs formatting 2022-12-30 23:27:06 +01:00
spaces.rs refactor PatternAs 2022-12-30 18:22:10 +01:00