Repository navigation
Rename SCOPE_ROOT, ${@}, ${^}, etc. - #957
Conversation
8d34557 to
5e42bde
Compare
|
The code duplication is temporary as I have a plan to clean this up after this and #956 are merged. |
|
I started to work on this, but for now I only had some test cases, so I'll open a separate PR for these. |
|
Oops, i forgot that this was part of your ticket.
Feel free to also push to this branch by the way.
…On Fri, Jul 6, 2018, 3:56 AM Etienne Millon ***@***.***> wrote:
I started to work on this, but for now I only had some test cases, so I'll
open a separate PR for these.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#957 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAIe-wkGahArPjAGH2HgJ3BBhhwbpp6Lks5uDn1pgaJpZM4VESYV>
.
|
|
No problem! I just added the test case in question. |
9289b16 to
0aec29d
Compare
|
Btw @diml I ended up writing a custom lexer for parsing |
|
Ok, PR looks good to me, but as said on slack I think we should get rid of the indexed syntax since it is a bit ad-hoc (it works only for one variable and is not recognized at all in other cases) and we have a better solution almost ready with #950. I suggest to add |
|
I think first-dep is better. dep0 implies that depn exists which isn't true. |
|
@diml so is the plan to get rid of |
|
That seems nicer to me. But we can revisit this decision if it's not good in practice. |
| if syntax_version < (1, 0) then | ||
| first_dep () | ||
| else | ||
| Loc.fail loc "Variable '<' is renamed to 'first-dep' in dune" |
There was a problem hiding this comment.
The error messages are not consistent: some say in dune files, some say in dune and some say nothing. in dune files seems best to me
There was a problem hiding this comment.
Agreed. I made all the errors a little more consistent. Full consistency will probably have to wait for the refactor that makes variable name changes first class.
Signed-off-by: Rudi Grinberg <[email protected]>
Signed-off-by: Rudi Grinberg <[email protected]>
Signed-off-by: Rudi Grinberg <[email protected]>
Signed-off-by: Rudi Grinberg <[email protected]>
Signed-off-by: Rudi Grinberg <[email protected]>
Signed-off-by: Rudi Grinberg <[email protected]>
Signed-off-by: Rudi Grinberg <[email protected]>
Signed-off-by: Etienne Millon <[email protected]>
Have %{first-dep} to replace %{<}
Signed-off-by: Rudi Grinberg <[email protected]>
Signed-off-by: Rudi Grinberg <[email protected]>
851a0d9 to
b8f11b1
Compare
No description provided.