syntax: simple brace checker

Signed-off-by: Levente Kurusa <levex@linux.com>
syntax: fix buffer not being passed

Signed-off-by: Levente Kurusa <levex@linux.com>