summaryrefslogtreecommitdiff
path: root/test cases
diff options
context:
space:
mode:
authorCharles Brunet <charles.brunet@optelgroup.com>2023-08-23 15:39:43 -0400
committerCharles Brunet <charles.brunet@optelgroup.com>2023-09-11 07:51:19 -0400
commit14e35b63c02a16f69dd1ad5bde775e6868965eb2 (patch)
tree36383a4993013cb22fc390e8224822906d9610ae /test cases
parentd3a26d158e4607ce677404920ad72508eb6f9de2 (diff)
downloadmeson-14e35b63c02a16f69dd1ad5bde775e6868965eb2.tar.gz
parser: allow whitespaces and comments in cont_eol
FIXME: another approach would be to consider cont_eol as comment (i.e. add backslash and whitespaces to the comment regex). In both cases it works until we want to parse comments separately. TODO?: handle eol_cont inside a string (to split long string without breaking lines). Probably a bad idea and better to simply join a multiline string.
Diffstat (limited to 'test cases')
-rw-r--r--test cases/unit/118 rewrite/meson.build12
1 files changed, 6 insertions, 6 deletions
diff --git a/test cases/unit/118 rewrite/meson.build b/test cases/unit/118 rewrite/meson.build
index cb8c15fe6..7d0330b9e 100644
--- a/test cases/unit/118 rewrite/meson.build
+++ b/test cases/unit/118 rewrite/meson.build
@@ -173,12 +173,12 @@ no_string_escapes = '''\\\'\a\b\f\n\r\t\v\046\x26\u2D4d\U00002d4d\N{GREEK CAPITA
# cont_string = 'blablabla\
# blablabla'
-# FIXME: is it supposed to work? (cont_eol with whitespace and comments after)
-# if a \ # comment in cont 1
-# and b \ # comment in cont 2
-# or c # comment in cont 3
-# message('ok')
-# endif
+# cont_eol with whitespace and comments after
+if a \ # comment in cont 1
+ and b \ # comment in cont 2
+ or c # comment in cont 3
+ message('ok')
+endif
if a \
or b