JEDI code format does not work with operators lazarus / 9-Editor ---------------------------------------------------------------------- RayoGlauco · 2018-06-26 17:27 Hello, I like to use JEDI code format in the Lazarus IDE, to get my code uniformly formatted. But recently I have declared several operators in a unit, and JEDI code format no longer works in that unit, even though the unit compiles ok. Any idea or fix? ---------------------------------------------------------------------- Thaddy · 2018-06-26 17:38 Jedi Code Formatter is Delphi heritage. Delphi doesn't know about that syntax. Hence it will fail. Just fix it... I won't... ---------------------------------------------------------------------- RayoGlauco · 2018-06-26 17:46 OK thanks, Thaddy. I just don't want to reinvent the wheel. ---------------------------------------------------------------------- bytebites · 2018-06-26 19:22 Please show example code. ---------------------------------------------------------------------- Thaddy · 2018-06-26 19:30 Quote from: bytebites on June 26, 2018, 09:22:09 pmPlease show example code. that's easy I don't even have to test that: Code: [Select]        operator + (const a,b:integer):c:integer; begin                                                  c:=a+b;                end;Silly formatting isn't even necessary..... JCF breaks.... ---------------------------------------------------------------------- bytebites · 2018-06-27 02:57 Silly :c: does not compile. This compiles 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         oPerator + (cOnst a,b:integer) c:integer;beGin                                               c:=A+b;               enD; ---------------------------------------------------------------------- RayoGlauco · 2018-06-27 06:59 Actually, the problem is that the code containing operators, although it compiles, is not understood by JEDI code format.