RomanYankovsky / DelphiAST

Abstract syntax tree builder for Delphi
Mozilla Public License 2.0
271 stars 116 forks source link

Lexer does not fully initializes its state #295

Closed Torbins closed 4 years ago

Torbins commented 4 years ago

If you try to reuse the same parser for multiple files, then you will have a bug, because TmwBasePasLex.Init does not initialize FBuffer.Run to zero.

RomanYankovsky commented 4 years ago

Please submit a PR :)