aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/Syntax.md6
-rw-r--r--docs/markdown/snippets/support-multiline-fstring.md22
2 files changed, 25 insertions, 3 deletions
diff --git a/docs/markdown/Syntax.md b/docs/markdown/Syntax.md
index b3b328f..a942af0 100644
--- a/docs/markdown/Syntax.md
+++ b/docs/markdown/Syntax.md
@@ -178,7 +178,7 @@ These are raw strings that do not support the escape sequences listed
above. These strings can also be combined with the string formatting
functionality via `.format()` described below.
-Note that multiline f-strings are not supported.
+Note that multiline f-string support was added in version 0.63.
### String index
@@ -211,8 +211,8 @@ As can be seen, the formatting works by replacing placeholders of type
*(Added 0.58)*
Format strings can be used as a non-positional alternative to the
-string formatting functionality described above. Note that multiline f-strings
-are not supported.
+string formatting functionality described above. Note that multiline f-string
+support was added in version 0.63.
```meson
n = 10
diff --git a/docs/markdown/snippets/support-multiline-fstring.md b/docs/markdown/snippets/support-multiline-fstring.md
new file mode 100644
index 0000000..296a04e
--- /dev/null
+++ b/docs/markdown/snippets/support-multiline-fstring.md
@@ -0,0 +1,22 @@
+## Added support for multiline fstrings
+
+Added support for multiline f-strings which use the same syntax as f-strings
+for string substition.
+
+```meson
+x = 'hello'
+y = 'world'
+
+msg = f'''Sending a message...
+"@x@ @y@"
+'''
+```
+
+which produces:
+
+```
+Sending a message....
+
+"hello world"
+
+```