From 8f1e607ed9bdab7d7c7cf380113a9bf3339ac3e5 Mon Sep 17 00:00:00 2001 From: Michael Hirsch Date: Thu, 18 Feb 2021 11:11:07 -0500 Subject: Help: Document JSON comment support in cmake-presets(7) --- Help/manual/cmake-presets.7.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Help/manual/cmake-presets.7.rst b/Help/manual/cmake-presets.7.rst index 49eb157..7d9c8c8 100644 --- a/Help/manual/cmake-presets.7.rst +++ b/Help/manual/cmake-presets.7.rst @@ -29,7 +29,10 @@ is using Git, ``CMakePresets.json`` may be tracked, and Format ====== -The files are a JSON document with an object as the root: +The files are JSON documents. C-style comments are allowed using +line-wise ``//`` syntax or block ``/*...*/`` syntax. + +Each document has an object as the root: .. literalinclude:: presets/example.json :language: json -- cgit v0.12