Agus Zubiaga
|
65ce811587
|
Parse and format import package shorthand
The original proposal [1] suggested dropping the package shorthand,
but we later decided to keep it [2] to improve UX.
[1] https://docs.google.com/document/d/1E_77fO-44BtoBtXoVeWyGh1xN2KRTWTu8q6i25RNNx0/edit?usp=sharing
[2] 385104011
|
2024-01-20 08:35:50 -03:00 |
|
Agus Zubiaga
|
c56091ee3e
|
Module Params' proposal import syntax
I previously implemented the syntax in "Proposal: Module and Package Changes" [1]:
```
import [map, map2] from JsonDecode as JD
```
However, we decided [2] to use the one that appears in "Proposal: Module Params" [3]:
```
import JsonDecode as JD exposing [map, map2]
```
The new implementation also now supports comments and newlines between all the tokens.
[1] https://docs.google.com/document/d/1E_77fO-44BtoBtXoVeWyGh1xN2KRTWTu8q6i25RNNx0/edit
[2] 405410612
[3] https://docs.google.com/document/d/110MwQi7Dpo1Y69ECFXyyvDWzF4OYv1BLojIm08qDTvg/edit
|
2024-01-20 08:35:50 -03:00 |
|
Agus Zubiaga
|
5cd084b73c
|
Parse and format inline import with exposed names
|
2024-01-20 08:35:50 -03:00 |
|
Agus Zubiaga
|
76d799ea13
|
Parse and format aliases in import defs
|
2024-01-20 08:35:50 -03:00 |
|
Agus Zubiaga
|
933fde77a0
|
Parse and format top-level import defs with no alias or exposed members
|
2024-01-20 08:35:50 -03:00 |
|
Richard Feldman
|
af8e9c7292
|
Parse deprecated interpolation syntax differently
|
2024-01-06 21:49:00 -05:00 |
|
ptaszor3
|
58b73ae257
|
Fixed some formatting
|
2023-12-10 19:58:23 +01:00 |
|
JRI98
|
3a86f5de22
|
Fix format for the 'as' keyword
|
2023-12-10 19:58:16 +01:00 |
|
ptaszor3
|
7162fbddd3
|
Fixed the multiline dbg formatting
|
2023-12-10 19:58:09 +01:00 |
|
ptaszor3
|
6a6d5cebc0
|
resolved issue 6188 and added some tests
|
2023-12-10 19:57:49 +01:00 |
|
Brendan Hansknecht
|
5e8974177c
|
avoid bloating parse expr size
|
2023-12-02 21:18:32 -08:00 |
|
Brendan Hansknecht
|
3966d63e2f
|
add src and location to dbg
|
2023-12-02 21:18:31 -08:00 |
|
Brendan Hansknecht
|
1f14aa84a2
|
misc cleanup suggestions
|
2023-11-29 21:05:56 -08:00 |
|
Brendan Hansknecht
|
b7f72eff86
|
add basic Dbg desugaring and LowLevelDbg
|
2023-11-29 21:05:48 -08:00 |
|
Richard Feldman
|
2da41be29f
|
Merge remote-tracking branch 'origin/main' into abilities-syntax
|
2023-08-10 20:36:01 -04:00 |
|
Kiryl Dziamura
|
1bb3c3d1dd
|
Make has have 4 identation spaces
|
2023-07-04 11:24:40 +02:00 |
|
Bryce Miller
|
e463ccf4a6
|
merge main
|
2023-06-07 20:36:54 -04:00 |
|
Ajai Nelson
|
2e5fef5231
|
Improve error messages involving ignored variables
Fix #3987
|
2023-06-06 19:46:15 -04:00 |
|
Bryce Miller
|
cb08225bf0
|
| -> where
|
2023-06-05 20:19:00 -04:00 |
|
Bryce Miller
|
e514d0cb83
|
Define and use IMPLEMENTS const in roc_parse::keyword
|
2023-05-29 07:21:27 -04:00 |
|
Bryce Miller
|
d2503bb9f2
|
has -> implements
|
2023-05-26 22:59:29 -04:00 |
|
Bryce Miller
|
dbc0204532
|
abilities syntax has -> implements
|
2023-05-24 21:30:16 -04:00 |
|
Bryce Miller
|
95516d585a
|
Update formatter has -> implements
|
2023-05-21 19:03:53 -04:00 |
|
Bryce Miller
|
46cb45f717
|
loc_has -> loc_implements
|
2023-05-20 19:24:08 -04:00 |
|
Bryce Miller
|
10d92bf0f3
|
ast::ImplementsAbilities::Has ->
ast::ImplementsAbilities::Implements
|
2023-05-20 19:16:13 -04:00 |
|
Bryce Miller
|
4b90948fcf
|
ast::HasAbilities -> ast::ImplementsAbilities
|
2023-05-20 19:13:01 -04:00 |
|
Bryce Miller
|
9eb2180a0f
|
ast::HasAbility -> ast::ImplementsAbility
|
2023-05-20 08:27:42 -04:00 |
|
Bryce Miller
|
413ccb24ad
|
ast::HasImpls -> ast::AbilityImpls
|
2023-05-20 08:24:02 -04:00 |
|
Bryce Miller
|
ebbdae6c28
|
ast::HasClause -> ast::ImplementsClause
|
2023-05-20 08:20:44 -04:00 |
|
Bryce Miller
|
64c34a5c6d
|
ast::Has -> ast::Implements
|
2023-05-20 08:12:20 -04:00 |
|
Agustin Zubiaga
|
4cd2c957ca
|
Format multiline reecord builder fields nicely
|
2023-05-17 12:48:37 -03:00 |
|
Agustin Zubiaga
|
5edcb31f32
|
Outdentable record builders
|
2023-05-17 12:21:39 -03:00 |
|
Agustin Zubiaga
|
b92c50c7be
|
Remove unnecessary format_record_builder_field_help argument
|
2023-05-17 12:17:31 -03:00 |
|
Agustin Zubiaga
|
d1feb00170
|
Track spaces between : and <- in record builders
|
2023-05-17 11:49:06 -03:00 |
|
Agustin Zubiaga
|
731cd4257d
|
Record Builder colon arrow syntax
|
2023-05-16 22:44:55 -03:00 |
|
Agustin Zubiaga
|
d2a57112fd
|
Unapplied record builder error
|
2023-05-08 20:16:38 -03:00 |
|
Agustin Zubiaga
|
6670fbb1ab
|
Multiple record builder error
|
2023-05-08 19:26:47 -03:00 |
|
Agustin Zubiaga
|
c2e50a22b6
|
Record Builder formatting
|
2023-05-07 15:51:08 -03:00 |
|
Anton-4
|
9748e4a4dc
|
many clippy fixes
|
2023-04-24 16:21:46 +02:00 |
|
Anton-4
|
937722c462
|
Merge branch 'main' of github.com:roc-lang/roc into rust_version_upgrade
|
2023-04-22 17:14:01 +02:00 |
|
Anton-4
|
e784baccce
|
rust update, nix update, clippy fixes
|
2023-04-22 14:51:01 +02:00 |
|
Folkert
|
394495d307
|
Revert "update size asserts"
This reverts commit 9973d4b8d2 .
|
2023-04-21 13:22:23 +02:00 |
|
Folkert
|
4cd8f0a056
|
clippy --fix fixes
|
2023-04-21 12:05:51 +02:00 |
|
Brendan Hansknecht
|
56ed985cc9
|
pass through correct path and type for ingested file
|
2023-04-09 14:03:32 -07:00 |
|
Brendan Hansknecht
|
f4411afbbc
|
get basic wiring of a value through the compiler
|
2023-04-09 14:03:31 -07:00 |
|
Brendan Hansknecht
|
8f238046be
|
get basic parsing and formatting working
|
2023-04-09 14:03:31 -07:00 |
|
Brendan Hansknecht
|
99547086ee
|
add very rough framework of how the parse might need to change
|
2023-04-09 14:03:31 -07:00 |
|
Joshua Warner
|
b5f284cd78
|
Fix several fmt+parse bugs found by fuzzing
|
2023-02-19 12:37:33 -08:00 |
|
Joshua Warner
|
2541a09273
|
Fix formatting of initial newlines in collections
Fixes #5015
|
2023-02-17 09:08:50 -08:00 |
|
Luca Cervello
|
a4410fe052
|
fix: add spaces around ? in optional record field
|
2023-02-08 18:41:22 +01:00 |
|