Indentation & auto complete after anonymous function lazarus / 9-Editor ---------------------------------------------------------------------- Fibonacci · 2023-09-01 23:49 After I write anonymous function the IDE doesn't do indentations and code completing, no hints, ctrl+space doesn't work. Is it just me or this if how it is? Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i {$modeswitch anonymousfunctions} procedure test(p: pointer);beginend; begin  test(@procedure begin  end); //no auto- indent... //ctrl+space: project1.lpr(8,9) Error: unexpected keyword "procedure" end. IDE 3.99 ---------------------------------------------------------------------- Martin_fr · 2023-09-02 07:54 https://gitlab.com/freepascal.org/lazarus/lazarus/-/issues/40371 ---------------------------------------------------------------------- Fibonacci · 2023-09-02 12:21 So the workaround for code completion is to enclose procedure with parenthesis: Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i test(@(procedurebeginend)); Yet indentation issue remains. ---------------------------------------------------------------------- Fibonacci · 2023-09-02 12:39 Found a fix Thanks Fibonacci, you the best.