bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#36348: 26.2; Indentation problem with Delphi inline variables


From: Stefan Monnier
Subject: bug#36348: 26.2; Indentation problem with Delphi inline variables
Date: Mon, 24 Jun 2019 09:45:31 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)

> Indentation doesn't work properly when using inline variable
> introduced by Delphi 10.3 (using Emacs 26.2, opascal,
> opascal-indent-level is 3):
>
>    for i := 0 to str.Length - 1 do
>       Write (str.Chars[i]);
>
>    for var i := 0 to str.Length - 1 do
>               Write (str.Chars[i]);

Emacs comes with 2 Pascal modes: the `pascal-mode` and the
`opascal-mode`.  Since you're using Delphi, opascal-mode is indeed the
right choice, but I think we should try and consolidate the two modes,
so I'm curious to know if you've tried to use pascal-mode on your code
to see how its indentation code fares in comparison.


        Stefan






reply via email to

[Prev in Thread] Current Thread [Next in Thread]