mirror of
https://github.com/janet-lang/janet
synced 2025-01-26 15:16:51 +00:00
Use :_name instead of :name for printing tagged tables.
This commit is contained in:
parent
945cbcfad6
commit
12f470ed10
@ -2,6 +2,8 @@
|
|||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
## Unreleased - ???
|
## Unreleased - ???
|
||||||
|
- Pretty printing a table with a prototype will look for `:_name` instead of `:name`
|
||||||
|
in the prototype table to tag the output.
|
||||||
- `match` macro implemtentation cahned to be tail recursive.
|
- `match` macro implemtentation cahned to be tail recursive.
|
||||||
- Adds a :preload loader which allows one to manually put things into `module/cache`.
|
- Adds a :preload loader which allows one to manually put things into `module/cache`.
|
||||||
- Add `buffer/push` function.
|
- Add `buffer/push` function.
|
||||||
|
@ -565,7 +565,7 @@ static void janet_pretty_one(struct pretty *S, Janet x, int is_dict_value) {
|
|||||||
JanetTable *t = janet_unwrap_table(x);
|
JanetTable *t = janet_unwrap_table(x);
|
||||||
JanetTable *proto = t->proto;
|
JanetTable *proto = t->proto;
|
||||||
if (NULL != proto) {
|
if (NULL != proto) {
|
||||||
Janet name = janet_table_get(proto, janet_ckeywordv("name"));
|
Janet name = janet_table_get(proto, janet_ckeywordv("_name"));
|
||||||
const uint8_t *n;
|
const uint8_t *n;
|
||||||
int32_t len;
|
int32_t len;
|
||||||
if (janet_bytes_view(name, &n, &len)) {
|
if (janet_bytes_view(name, &n, &len)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user