summaryrefslogtreecommitdiff
path: root/Help/manual/cmake-language.7.rst
diff options
context:
space:
mode:
authorJoachim Wuttke (o) <j.wuttke@fz-juelich.de>2018-10-25 14:00:34 +0200
committerJoachim Wuttke (o) <j.wuttke@fz-juelich.de>2018-10-25 14:00:34 +0200
commit14edbe7e7bee52ff753dc73a9d731d2b27a8ee9d (patch)
treee56f6703a2813c403dc0d4488739a18992b9a934 /Help/manual/cmake-language.7.rst
parent4f4d5a9b3a0d5288570d40c35ec4895f9542e97f (diff)
downloadcmake-14edbe7e7bee52ff753dc73a9d731d2b27a8ee9d.tar.gz
Help: Syntax highlighting for long strings in cmake-language.7
Diffstat (limited to 'Help/manual/cmake-language.7.rst')
-rw-r--r--Help/manual/cmake-language.7.rst30
1 files changed, 17 insertions, 13 deletions
diff --git a/Help/manual/cmake-language.7.rst b/Help/manual/cmake-language.7.rst
index 8740d97a5e..630a86b3e0 100644
--- a/Help/manual/cmake-language.7.rst
+++ b/Help/manual/cmake-language.7.rst
@@ -257,27 +257,31 @@ invocation as exactly one argument.
.. No code-block syntax highlighting in the following example
(escape \" not supported by our cmake.py)
-For example::
+For example:
- message("This is a quoted argument containing multiple lines.
- This is always one argument even though it contains a ; character.
- Both \\-escape sequences and ${variable} references are evaluated.
- The text does not end on an escaped double-quote like \".
- It does end in an unescaped double quote.
- ")
+.. code-block:: cmake
+
+ message("This is a quoted argument containing multiple lines.
+ This is always one argument even though it contains a ; character.
+ Both \\-escape sequences and ${variable} references are evaluated.
+ The text does not end on an escaped double-quote like \".
+ It does end in an unescaped double quote.
+ ")
.. No code-block syntax highlighting in the following example
(for conformity with the two above examples)
The final ``\`` on any line ending in an odd number of backslashes
is treated as a line continuation and ignored along with the
-immediately following newline character. For example::
+immediately following newline character. For example:
+
+.. code-block:: cmake
- message("\
- This is the first line of a quoted argument. \
- In fact it is the only line but since it is long \
- the source code uses line continuation.\
- ")
+ message("\
+ This is the first line of a quoted argument. \
+ In fact it is the only line but since it is long \
+ the source code uses line continuation.\
+ ")
.. note::
CMake versions prior to 3.0 do not support continuation with ``\``.