1
1
mirror of https://github.com/tweag/nickel.git synced 2024-11-20 10:09:58 +03:00
Commit Graph

18 Commits

Author SHA1 Message Date
jneem
dc76b14556
Convert paths to absolute before normalization (#1489)
* Add test

* Fix test

* Convert paths to absolute before normalization

The path normalization function doesn't work on paths starting with '..'.
One fix is to make paths absolute.

* Add comment
2023-07-31 12:52:20 +00:00
Yann Hamdaoui
f5f0ed5255
Various fixes to VSCode extension (#1413)
* Various updates to VSCode extension

Last fixes before publishing the VSCode extension on the VSCode market
place:
 - rename the parent containing directory from client-extension to vscode-extension
 - add a display name and a description
 - update the README, add links to non-Nix installation method
 - small fixes to the textmate Nickel grammar

* Update flake.nix after rename client-extension -> vscode-extension

* Improve the TextMate grammar, fix interpolation handling

* Fix highlighting in VSCode extension
2023-06-29 11:40:35 +00:00
Taeer Bar-Yam
f5efb905c8
Better error message when contract makes certain rows illegal (#1323)
* blame caller when tail contains illegal fields

fixes #950 by calculating the fields disallowed in a parameterized tail
e.g. in `forall r. { x : Foo ; r }` `x` cannot be present in `r`

* make get_constraints() imperative and inline

* reorder match fields to reflect order they will be executed

* appease clippy

* recurse into record sub-types even if we are looking for enum tails

* NickelString has a From<Label> instance

* separate recursion from checking for constraints

* move constraint checking code to parser

we check for constraints in contract checking and type checking. by
moving it to the parser we only have to do it in one place.

also, removed constraint checking for enum rows, which doesn't seem to
have been doing anything and also we don't want it.
`[| 'x ; e |]` does not preclude `'x` showing up in `e`

added in VarKindDiscriminant for those places where we do actually just
want the enum type. This is mostly for error reporting.

* VarKindCellData -> Option<VarKind>

* update documentation

* fixup

* add tests

* address review comments
2023-06-22 00:51:50 +00:00
Guillaume Desforges
6e122939ad init Python bindings 2023-01-16 16:38:24 +01:00
Yann Hamdaoui
c65f101fe5
Remove Makam specification 2022-06-24 16:46:36 +02:00
Rok Garbas
63c077b776
Replace custom git hooks with pre-commit-hooks.nix 2022-01-18 23:30:08 +01:00
Avi Dessauer
d580c32d7d Merge branch 'avi/benches-and-flamegraphs-reset' into avi/benches-and-flamegraphs-master-2021-12-03 2021-12-03 11:35:22 -05:00
Yann Hamdaoui
301a8583fe Add tags file to gitignore 2021-10-12 15:28:57 +02:00
Yannik Sander
26f1f920bc Move lsp to subfolder 2021-09-23 17:21:45 +03:00
Yannik Sander
ffb4c97d4f Add lsp-client vscode extension 2021-09-23 16:51:57 +03:00
Acaccia
a179cd1648 Merge branch 'master' into benches-and-flamegraphs 2021-09-16 17:48:28 +03:00
Yann Hamdaoui
58bee505b6 add the npm package to gitignore 2021-08-30 15:27:51 +02:00
Yann Hamdaoui
1d404f2531 Move tests & benches helper to subcrate 2021-07-01 18:00:24 +02:00
Rok Garbas
5391421543
added update channels script and hook it with github actions 2021-01-15 17:15:03 +01:00
Rok Garbas
b56bfd1e88
add /result to the gitignore 2021-01-15 14:29:17 +01:00
Teodoro Freund
60c439e7fd Initial makam spec commit
Quite limited for now
2019-09-11 16:36:15 +02:00
Teodoro Freund
dc2857c3f7
Review changes
Endline at .gitignore

Co-Authored-By: Arnaud Spiwack <arnaud.spiwack@tweag.io>
2019-09-05 09:52:50 +02:00
Teodoro Freund
592bbec2e6 Added a gitignore for Cargo 2019-08-16 12:27:09 +02:00