BracketsCheck icon indicating copy to clipboard operation
BracketsCheck copied to clipboard

Addon falsely alerts in PHP about unclosed parentheses

Open Pawwwle opened this issue 2 years ago • 5 comments

Hallo! I am using N++ latest 64 bits version. The plugin BracketsCheck does not work. I tested version 1.2.2 and 1.2.3. The addon falsely alerts in PHP about unclosed parentheses.

Pawwwle avatar Feb 10 '23 14:02 Pawwwle

Hi @Pawwwle, I originally developed this plugin to check parenthesis in large SQL files, so it is not well-tested with PHP files.

Please provide a minimal reproducible example of the text you are using and the error the plugin returns you.

Cheers. Nicola

niccord avatar Feb 10 '23 16:02 niccord

function phpbb_optionset($bit, $set, $data)
{
	if ($set && !($data & 1 << $bit))
	{
		$data += 1 << $bit;
	}
	else if (!$set && ($data & 1 << $bit))
	{
		$data -= 1 << $bit;
	}

	return $data;
}

Zrzut ekranu 2023-02-11 115117

Pawwwle avatar Feb 11 '23 10:02 Pawwwle

Have you tried disabling the angle brackets check in the plugin menu?

niccord avatar Feb 11 '23 15:02 niccord

Yes. An error occurs when checking angle brackets. Can you fix it?

Pawwwle avatar Feb 11 '23 19:02 Pawwwle

I haven't had time to check it yet, what's the error?

niccord avatar Feb 12 '23 13:02 niccord