layout loading: allow comments in JSON files
This commit is contained in:
parent
4add185025
commit
598498330a
|
@ -396,6 +396,8 @@ void tree_append_json(const char *filename) {
|
||||||
g = yajl_gen_alloc(NULL, NULL);
|
g = yajl_gen_alloc(NULL, NULL);
|
||||||
hand = yajl_alloc(&callbacks, NULL, NULL, (void*)g);
|
hand = yajl_alloc(&callbacks, NULL, NULL, (void*)g);
|
||||||
#endif
|
#endif
|
||||||
|
/* Allowing comments allows for more user-friendly layout files. */
|
||||||
|
yajl_config(hand, yajl_allow_comments, true);
|
||||||
yajl_status stat;
|
yajl_status stat;
|
||||||
json_node = focused;
|
json_node = focused;
|
||||||
to_focus = NULL;
|
to_focus = NULL;
|
||||||
|
|
Loading…
Reference in New Issue