For me it says "Dubious syntax"Filehero wrote:Should the message really pop up?
In such a situation XY often finds "some solution". Even if you don't like it
As I don't like it I use Syntax Check
For me it says "Dubious syntax"Filehero wrote:Should the message really pop up?
It shouldn't because broken code not only doesn't screem, it is silently inverting the logical flow intended.PeterH wrote:In such a situation XY often finds "some solution".
Code: Select all
v <-- missing closing bracket
if (exists("C:\windows" == 1) {
msg("Wouw, system root is a file!");
}
Code: Select all
if "(1 == 2))" {
msg("Wouw, Math revolution!");
}
Code: Select all
if "((1 == 2)" {
msg("Wouw, Math revolution!");
}
That describes my original confusion perfectly. I simply had expected a runtime error by the script interpreter, which is what the syntax checker does in this case, right?PeterH wrote:I'll never understand why this isn't XY's default, so that anyone not wanting his code to be checked (= verified) for syntax errors has to define this explicitely, and on his own risk.
admin wrote:10 minutes ago I made it the factory default.
Code: Select all
"test 1"
/* comment before radical nowdoc is okay */
$data_matrix = <<<'#>>>'
$G_SELECTIONS_PATHKEY | $G_SELECTIONS_DIRP |
$G_SELECTIONS_NAMEDKEY | $G_SELECTIONS_DIRN | *#>>>;
text $data_matrix;
/* block comments AFTER radical newdoc is broken */
Code: Select all
"test 2"
/* comment before radical nowdoc is okay */
$data_matrix = <<<'#>>>'
$G_SELECTIONS_PATHKEY | $G_SELECTIONS_DIRP |
$G_SELECTIONS_NAMEDKEY | $G_SELECTIONS_DIRN | *#>>>;
text $data_matrix;
/* INDENTED block comments are broken differently */
Code: Select all
/* note, $data_matrix [...] starts indented */
$data_matrix = <<<'#>>>'
$G_SELECTIONS_PATHKEY | $G_SELECTIONS_DIRP |
$G_SELECTIONS_NAMEDKEY | $G_SELECTIONS_DIRN | *#>>>;
text $data_matrix;
/* block comments AFTER radical newdoc is broken */
/* INDENTED block comments are broken differently */
Code: Select all
'#>>>'
No, I wanted to give you a hint, that with your comment:I think saying "#Heredoc" highend wanted to give a hint to the "radical parsing" characteristic, if id starts with #.
Code: Select all
Maybe the <<<'#>>>' should just be <<<#>>>