roc/crates/compiler/test_syntax/tests/snapshots/malformed
Anthony Bullard a2083cec30
Parsing support for snake_case identifiers
In this initial commit, I have done the following:

- Added unit tests to roc_parse's ident.rs file to cover at least the
  simplest Ident enum cases (Tag, OpaqueRef, and simple Access)
- Added '_' as a valid "rest" character in both uppercase and lowercase
  identifier parts
- Updated the test_syntax snapshots appropriately

There is still a lot left to do here. Such as:

- Do we want to allow multiple '_'s to parse successfully?
- Handle qualified access
- Handle accessor functions
- Handle record update functions
- Remove the UnderscoreInMiddle case from BadIdent
- Write unit tests for Malformed Idents

I am not a "Rustacean" by any means, but have been through the Book in
years past.  Any feedback on the way I wrote the tests or any other part
of the implementation would be very appreciated.
2024-12-03 20:50:47 -06:00
..
bad_opaque_ref.expr.formatted.roc Add a Malformed trait, and assert that 'passing' tests don't produce a malformed result 2023-01-25 21:01:05 -08:00
bad_opaque_ref.expr.result-ast Add a Malformed trait, and assert that 'passing' tests don't produce a malformed result 2023-01-25 21:01:05 -08:00
bad_opaque_ref.expr.roc Add a Malformed trait, and assert that 'passing' tests don't produce a malformed result 2023-01-25 21:01:05 -08:00
malformed_pattern_field_access.expr.formatted.roc Implement block / indent based parsing 2024-07-27 13:34:16 -07:00
malformed_pattern_field_access.expr.result-ast Implement block / indent based parsing 2024-07-27 13:34:16 -07:00
malformed_pattern_field_access.expr.roc Add a Malformed trait, and assert that 'passing' tests don't produce a malformed result 2023-01-25 21:01:05 -08:00
malformed_pattern_module_name.expr.formatted.roc Implement block / indent based parsing 2024-07-27 13:34:16 -07:00
malformed_pattern_module_name.expr.result-ast Implement block / indent based parsing 2024-07-27 13:34:16 -07:00
malformed_pattern_module_name.expr.roc Add a Malformed trait, and assert that 'passing' tests don't produce a malformed result 2023-01-25 21:01:05 -08:00
module_dot_tuple.expr.result-ast Fix a bunch of bugs in parsing/formatting found by fuzzing 2023-02-07 20:25:56 -08:00
module_dot_tuple.expr.roc Fix a bunch of bugs in parsing/formatting found by fuzzing 2023-02-07 20:25:56 -08:00
qualified_tag.expr.result-ast Add a Malformed trait, and assert that 'passing' tests don't produce a malformed result 2023-01-25 21:01:05 -08:00
qualified_tag.expr.roc Add a Malformed trait, and assert that 'passing' tests don't produce a malformed result 2023-01-25 21:01:05 -08:00