From: Alan T. DeKok Date: Thu, 25 Aug 2022 20:39:57 +0000 (-0400) Subject: multi-line "if" works by magic X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=af0725801ce8b51aa632e26cbc667f9a316bfa5b;p=thirdparty%2Ffreeradius-server.git multi-line "if" works by magic tho you can't (yet) put comments on a multiline "if" statement --- diff --git a/src/tests/keywords/if-multiline b/src/tests/keywords/if-multiline new file mode 100644 index 00000000000..f311003c019 --- /dev/null +++ b/src/tests/keywords/if-multiline @@ -0,0 +1,11 @@ +# +# PRE: if +# +# Now that we ignore whitespace (including \r\n) inside of a *bracketed* expression, +# we can magically have multiline "if" statements. +# +if (1 + 2 + != 3) { + test_fail +} +success