aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/Syntax.md
diff options
context:
space:
mode:
authorBruce Richardson <bruce.richardson@intel.com>2017-07-28 11:09:57 +0100
committerJussi Pakkanen <jpakkane@gmail.com>2017-07-31 12:00:16 -0400
commitbc3327ae6e2e992a9b11eb615bfc8d8fed90e281 (patch)
treeec6466e3031928884b76a45ee084fd7cf58ac714 /docs/markdown/Syntax.md
parent7f307fd5ef3547152c7d48fd362dd511dd94b9d3 (diff)
downloadmeson-bc3327ae6e2e992a9b11eb615bfc8d8fed90e281.zip
meson-bc3327ae6e2e992a9b11eb615bfc8d8fed90e281.tar.gz
meson-bc3327ae6e2e992a9b11eb615bfc8d8fed90e281.tar.bz2
doc: describe joining strings using the + symbol
Diffstat (limited to 'docs/markdown/Syntax.md')
-rw-r--r--docs/markdown/Syntax.md10
1 files changed, 10 insertions, 0 deletions
diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md
index 37c1857..02db228 100644
--- a/docs/markdown/Syntax.md
+++ b/docs/markdown/Syntax.md
@@ -68,6 +68,16 @@ single quote = 'contains a \' character'
Similarly `\n` gets converted to a newline and `\\\\` to a single backslash.
+#### String concatenation
+
+Strings can be concatenated to form a new string using the `+` symbol.
+
+```meson
+str1 = 'abc'
+str2 = 'xyz'
+combined = str1 + '_' + str2 # combined is now abc_xyz
+```
+
#### Strings running over multiple lines
Strings running over multiple lines can be declared with three single quotes, like this: