[ripper] fix mismatched indentations warning [Bug #16981] The scanner location has to be set from `lex.ptok` before it is flushed by dispatching the scanner event.
Related issues
Bug #16981: [ripper] mismatched indentations warning has disappeared since 2.6
merge revision(s) 263b941321c3de6afc8f9dafbc2625f866b7437e: [Backport #16981]