aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown
diff options
context:
space:
mode:
authorLaurin-Luis Lehning <65224843+e820@users.noreply.github.com>2021-03-07 22:47:54 +0100
committerXavier Claessens <xclaesse@gmail.com>2021-03-10 08:55:22 -0500
commit2607510b1818b78b4462d43eef84ee632b15981b (patch)
tree61473cc389fc15510be32bab69190fa5d0c6bc0c /docs/markdown
parent83c3c745103a254f45ef8b28c5a3e307795ee752 (diff)
downloadmeson-2607510b1818b78b4462d43eef84ee632b15981b.zip
meson-2607510b1818b78b4462d43eef84ee632b15981b.tar.gz
meson-2607510b1818b78b4462d43eef84ee632b15981b.tar.bz2
Add failing test cases & release snippet
Diffstat (limited to 'docs/markdown')
-rw-r--r--docs/markdown/snippets/fstrings.md7
1 files changed, 7 insertions, 0 deletions
diff --git a/docs/markdown/snippets/fstrings.md b/docs/markdown/snippets/fstrings.md
new file mode 100644
index 0000000..a797aaa
--- /dev/null
+++ b/docs/markdown/snippets/fstrings.md
@@ -0,0 +1,7 @@
+## Introducing format strings to the Meson language
+
+In addition to the conventional `'A string @0@ to be formatted @1@'.format(n, m)`
+method of formatting strings in the Meson DSL, there's now the additional
+`f'A string @n@ to be formatted @m@'` notation that provides a non-positional
+and clearer alternative. Meson's format strings are currently restricted to
+identity-expressions, meaning `f'format {'m' + 'e'}'` will not parse.