update is_current_space and is_current_newline to follow parsing convention