SI-7143 Fix scanner docComment: docBuffer and docPos are initialized
in different places and as a result can get out of sync and as a result
the invariant that docComment has a position is broken.
Merge pull request #2136 from vigdorchik/scanners

SI-7143 Fix scanner docComment production.