Another small code scanner enhacement.

Now it doesn't crash with "unexpected end of file" error message in
cases like: "print(" (it's for convenience)