Ver Fonte

Merge topic 'preset-json-comments' into release-3.20

8f1e607ed9 Help: Document JSON comment support in cmake-presets(7)

Acked-by: Kitware Robot <[email protected]>
Merge-request: !5830
Brad King há 4 anos atrás
pai
commit
98ae005137
1 ficheiros alterados com 4 adições e 1 exclusões
  1. 4 1
      Help/manual/cmake-presets.7.rst

+ 4 - 1
Help/manual/cmake-presets.7.rst

@@ -29,7 +29,10 @@ is using Git, ``CMakePresets.json`` may be tracked, and
 Format
 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
 .. literalinclude:: presets/example.json
   :language: json
   :language: json