ws fix
Fix bug #64936 - clean doc comment state at the beginning and end of the scan