From: Michael Stapelberg Date: Sat, 14 Dec 2013 09:43:49 +0000 (+0100) Subject: layout loading: allow comments in JSON files X-Git-Tag: 4.8~198 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=598498330a51b0cc1a09d3cf1f50dded5d21ece4;p=i3%2Fi3 layout loading: allow comments in JSON files --- diff --git a/src/load_layout.c b/src/load_layout.c index 0489c7f9..ce17f3a5 100644 --- a/src/load_layout.c +++ b/src/load_layout.c @@ -396,6 +396,8 @@ void tree_append_json(const char *filename) { g = yajl_gen_alloc(NULL, NULL); hand = yajl_alloc(&callbacks, NULL, NULL, (void*)g); #endif + /* Allowing comments allows for more user-friendly layout files. */ + yajl_config(hand, yajl_allow_comments, true); yajl_status stat; json_node = focused; to_focus = NULL;