Alexey-T / CudaText

Cross-platform text editor, written in Free Pascal
Mozilla Public License 2.0
2.4k stars 167 forks source link

Pascal lexer: wrong for 2 levels nested comments #5442

Closed Alexey-T closed 3 months ago

Alexey-T commented 3 months ago
  procedure Main;
  begin
    writeln;

    {$define typef :=
      writeln({$ifdef val_unsigned} 'u' {$else} '' {$endif}, 'int', val_bits);
      {$define boundf :=
        {$define funcf :=
          benchmark_impl} iterate_functions
        } iterate_bounds
        writeln;
      } iterate_types
  end;

pas