Commit graph

132 commits

Author SHA1 Message Date
rvcas
4987721154 feat(Num): rename Num.Int to Num.I64 2020-12-07 19:17:20 -05:00
Richard Feldman
d0c651726d Support package-qualified imports 2020-11-26 21:11:43 -05:00
Sébastien Besnier
1f4e0985e6 cargo fmt 2020-11-26 08:45:09 +01:00
Sébastien Besnier
b0a8e96d34 remove unreachable! in favor of debug_assert!(false); 2020-11-26 08:39:01 +01:00
Richard Feldman
6d6077db27 Drop some dbg! calls 2020-11-25 23:07:19 -05:00
Sébastien Besnier
f46841d63b cargo fmt 2020-11-25 16:23:33 +01:00
Sébastien Besnier
94af5caa69 add some (directly passing!) tests 2020-11-25 16:12:10 +01:00
Sébastien Besnier
1ebac5e332 format correctly comment in empty record annotation 2020-11-25 16:06:51 +01:00
Sébastien Besnier
aa3ce94f86 fix formating newlines 2020-11-25 15:44:58 +01:00
Sébastien Besnier
7361f62902 format properly multiline type annotations 2020-11-25 15:15:32 +01:00
Sébastien Besnier
4ed8d3eb79 add failing test 2020-11-25 10:33:36 +01:00
Richard Feldman
a78434fd48 Finish introducing new header keywords 2020-11-23 00:08:49 -05:00
Sébastien Besnier
d87b5bfd9f add failing tests 2020-11-21 20:36:26 +01:00
Sébastien Besnier
b1548ff4e8 refactor tag union and record type annotations formatting 2020-11-21 20:36:26 +01:00
Sébastien Besnier
52bace2c25 store the final comments in the AST for record & tag union annotations 2020-11-21 20:36:26 +01:00
Sébastien Besnier
c692319fb9 correctly format multiline record type annotation 2020-11-21 20:36:26 +01:00
Sébastien Besnier
f9666d6efe better code comments 2020-11-21 20:36:26 +01:00
rvcas
72c85009c6 do not set an underscore on parse and only prefix in formatter 2020-11-18 08:25:40 -05:00
rvcas
8df5d5c13c feat(parse): support capturing a str in Pattern::Underscore 2020-11-17 21:53:49 -05:00
Sébastien Besnier
805b54409a appease clippy 2020-11-15 12:45:20 +01:00
Sébastien Besnier
1d44f7fef8 force comments to start with a space 2020-11-15 10:45:51 +01:00
Sébastien Besnier
c4bc98a81f remove fmt_condition_spaces in favor of fmt_comments_only 2020-11-15 10:36:50 +01:00
Sébastien Besnier
25192fca10 make fmt_comments_only more general 2020-11-15 10:26:14 +01:00
Sébastien Besnier
bc203371be refactor fmt_final_comments to be more generic 2020-11-15 09:57:29 +01:00
Sébastien Besnier
74dde77003 refactor use of fmt_comment 2020-11-15 09:17:31 +01:00
Sébastien Besnier
93b7ac5b0c remove duplicated is_comment function 2020-11-15 09:01:24 +01:00
Sébastien Besnier
ccabc41489 thank you clippy 2020-11-14 21:09:02 +01:00
Sébastien Besnier
f647e8fcf0 clippy.... you sometimes are annoying! 2020-11-14 20:08:55 +01:00
Sébastien Besnier
6be94c5f29 add some tests.... and fix some bugs! 2020-11-14 18:51:43 +01:00
Sébastien Besnier
2000948765 format the final comments in records 2020-11-14 18:39:46 +01:00
Sébastien Besnier
ec975aac93 cargo fmt 2020-11-13 19:56:13 +01:00
Sébastien Besnier
adc1493e76 appease clippy 2020-11-13 19:36:52 +01:00
Sébastien Besnier
58acc59b01 correctly parse trailing commas in record 2020-11-13 19:02:26 +01:00
Sébastien Besnier
7ec161c415 add trailing comma in formatter for records 2020-11-13 19:01:46 +01:00
Sébastien Besnier
6ad1bb233a add TrailingComma to Record & little formatter refactor 2020-11-13 19:01:46 +01:00
Richard Feldman
ef90103353
Update compiler/fmt/src/def.rs 2020-11-08 22:11:38 -05:00
Sébastien Besnier
014131dabe handle AnnotatedBody everywhere. It compiles now! 2020-11-08 13:43:11 +01:00
Brendan Hansknecht
d00189530a Add fuzzing to the parser.
As part of this, todos and panics where moved outside of this module
to elsewhere when they would cause fuzzing to fail.
2020-10-30 22:04:54 -07:00
Folkert
ee23e5979d pass argument by reference 2020-10-29 00:35:10 +01:00
Folkert
9f4b284f14 from vec to slice 2020-10-29 00:12:59 +01:00
Richard Feldman
dfa61b4c18 Parse platform headers 2020-10-18 23:55:49 -04:00
Richard Feldman
3c39a331d7 Remove obsolete parse::ast::TypedBody 2020-09-07 09:19:25 -04:00
Richard Feldman
453fc0e27c REVERT THIS! Temporarily break block strings.
Also disable some tests because trimming inputs
revealed some bugs I don't want to fix in this PR!
2020-08-31 23:22:10 -04:00
Richard Feldman
7682e09b0a Fix some fmt stuff 2020-08-31 23:13:50 -04:00
Richard Feldman
5b27e10095 Reproduce empty string parsing bug 2020-08-31 23:13:50 -04:00
Richard Feldman
f35e43768a Get things compiling 2020-08-31 23:13:50 -04:00
Richard Feldman
9f9ce327d4 Lazily validate that input bytes are valid UTF-8 2020-07-27 01:10:04 -04:00
Folkert
29c3eebace parse default optional expressions in pattern matches 2020-07-20 00:52:16 +02:00
Richard Feldman
3eea2c934e Fix an annotation formatting regression 2020-07-18 22:17:41 -04:00
Richard Feldman
8b53ec15fe Change guard to DestructType 2020-07-18 12:42:04 -04:00