scan.cpp: fix the bug recognize number with symbol