Scanner not detect blocks { } and ;