summaryrefslogtreecommitdiff
path: root/test cases/format
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2024-08-19 15:39:53 -0700
committerDylan Baker <dylan@pnwbakers.com>2024-08-20 11:41:00 -0700
commitdf706807239095ddbbfd2975b3fe067ad6b5d535 (patch)
tree103dfb8fa9be2132b2b4e127931d58ae4f0f6dc4 /test cases/format
parentab3cfc2da1c481f52a5525e41150626a2f66de3b (diff)
downloadmeson-df706807239095ddbbfd2975b3fe067ad6b5d535.tar.gz
mformat: A triple string with a ' in it cannot be simplified
The following is valid meson: ```meson a = '''This string can't be simplified''' ``` which cannot be simplified because of the `'` in it, as ```meson a = 'This string can't be simplified' ``` Is invalid. Potentially we could convert that with escapes, but it seems reasonable to me to leave this, since it may be desirable to not have lots of escapes in a string. `'''I can't believe it's her's!'''` is much more readable than `'I can\'t believe it\'s her\'s!'`, for example. Closes: #13564
Diffstat (limited to 'test cases/format')
-rw-r--r--test cases/format/5 transform/default.expected.meson1
-rw-r--r--test cases/format/5 transform/muon.expected.meson1
-rw-r--r--test cases/format/5 transform/options.expected.meson1
-rw-r--r--test cases/format/5 transform/source.meson1
4 files changed, 4 insertions, 0 deletions
diff --git a/test cases/format/5 transform/default.expected.meson b/test cases/format/5 transform/default.expected.meson
index 4201053e1..18af2f8af 100644
--- a/test cases/format/5 transform/default.expected.meson
+++ b/test cases/format/5 transform/default.expected.meson
@@ -47,6 +47,7 @@ d = {'a': 1, 'b': 2, 'c': 3}
# string conversion
'This is not a multiline'
'This is not a fstring'
+'''This isn't convertible'''
# group arg value
arguments = [
diff --git a/test cases/format/5 transform/muon.expected.meson b/test cases/format/5 transform/muon.expected.meson
index 871ce27d7..0e6309c7f 100644
--- a/test cases/format/5 transform/muon.expected.meson
+++ b/test cases/format/5 transform/muon.expected.meson
@@ -47,6 +47,7 @@ d = {'a': 1, 'b': 2, 'c': 3}
# string conversion
'''This is not a multiline'''
f'This is not a fstring'
+'''This isn't convertible'''
# group arg value
arguments = [
diff --git a/test cases/format/5 transform/options.expected.meson b/test cases/format/5 transform/options.expected.meson
index f7f45658d..9ed6ac2be 100644
--- a/test cases/format/5 transform/options.expected.meson
+++ b/test cases/format/5 transform/options.expected.meson
@@ -29,6 +29,7 @@ d = {
# string conversion
'This is not a multiline'
'This is not a fstring'
+'''This isn't convertible'''
# group arg value
arguments = [
diff --git a/test cases/format/5 transform/source.meson b/test cases/format/5 transform/source.meson
index 7274d4802..448288405 100644
--- a/test cases/format/5 transform/source.meson
+++ b/test cases/format/5 transform/source.meson
@@ -29,6 +29,7 @@ d = {'a': 1, 'b': 2, 'c': 3}
# string conversion
'''This is not a multiline'''
f'This is not a fstring'
+'''This isn't convertible'''
# group arg value
arguments = ['a', '--opt_a', 'opt_a_value', 'b', 'c', '--opt_d', '--opt_e', 'opt_e_value',