[JsLIGO] Allow _ as an expression
Motivation and Context
Since we allow _
as a normal binder, we have to allow it as an expression.
See #1692 (closed)
Description
Component
-
compiler -
website -
webide -
vscode-plugin -
debugger
Types of changes
-
Bug fix (non-breaking change which fixes an issue) -
New feature (non-breaking change which adds functionality) -
Breaking change (fix or feature that would cause existing functionality to not work as expected) -
Performance improvement (non-breaking change that improves performance) -
None (change with no changelog)
Changelog
Underscore is now accepted everywhere a variable is accepted.
Checklist:
-
If a new syntax has been introduced, put a message on slack ligo-lsp -
Changes follow the existing coding style (use dune @fmt
to check). -
Tests for the changes have been added (for bug fixes / feature). -
Documentation has been updated. -
Changelog description has been added (if appropriate). -
Start titles under ## Changelog
section with #### (if appropriate). -
There is no image or uploaded file in changelog -
Examples in changed behaviour have been added to the changelog (for breaking change / feature).
Merge request reports
Activity
added areaFrontend label
assigned to @rinderkn
added 1 commit
- 4710bd35 - [Chore] Increase error recovery cost for wildcard
mentioned in merge request !2889 (merged)
added 1 commit
- e755591d - [Chore] increase error recovery cost for wildcard
added 1 commit
- ac380069 - fixup! [Chore] increase error recovery cost for wildcard
marked this merge request as draft from ac380069
added 6 commits
- 23be02d7 - Added _ as a parameter in function types.
- 574e7d4d - Modified two test contracts.
- 76d295c9 - Revert "Modified two test contracts."
- 861d68cc - tests: add test case and file
- 9b2d0f97 - style: reformat after re-install
- 1ec8a4b0 - Merge branch 'rinderknecht@fun_type' of gitlab.com:ligolang/ligo into rinderknecht@underscore
Toggle commit listenabled automatic add to merge train when the pipeline for bfa4c4f1 succeeds
enabled automatic add to merge train when the pipeline for 5a32b68d succeeds
mentioned in commit 5a32b68d
added 2 commits
A new deploy preview is available on Netlify at https://2890-966389ba--ligolang.netlify.app, you can view the logs at https://app.netlify.com/sites/ligolang/deploys/650cab37fbec3c31ae73cdc2
Edited by Ligo Langadded 9 commits
-
3e8cb471...00c4d33d - 8 commits from branch
dev
- 462f6d57 - Merge branch 'dev' of gitlab.com:ligolang/ligo into rinderknecht@underscore
-
3e8cb471...00c4d33d - 8 commits from branch
enabled automatic add to merge train when the pipeline for dfc6654b succeeds
removed this merge request from the merge train because pipeline did not succeed. Learn more.
added 5 commits
-
e4d68f40...b0484128 - 4 commits from branch
dev
- 6c970a97 - Merge branch 'dev' into rinderknecht@underscore
-
e4d68f40...b0484128 - 4 commits from branch
enabled automatic add to merge train when the pipeline for b650b70b succeeds
mentioned in commit 4130f77c