Make less fragile-- don't break if there are spaces in function definitions

Return the correct line number if giving an error in a function