[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#22270: Indentation following a multi-line Java annotation not correc
From: |
Lars Ingebrigtsen |
Subject: |
bug#22270: Indentation following a multi-line Java annotation not correct |
Date: |
Thu, 03 Dec 2020 11:39:23 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
Lanning <lanning@gmail.com> writes:
> In the file cc-engine the function c-guess-basic-syntax doesn't
> always properly handle indentation after a Java annotation.
> In the case where the annotation spans multiple lines, the
> following code in indented to be in-line with the last line
> of the annotation:
>
> @AnAnnotation(param1=1,
> param2=2)
> public void run() {
> }
>
> The problem is in the CASE 5N clause, where the code calls
> (c-add-syntax 'annotation-top-cont (c-point 'boi))
> Instead of moving to the previous line, it should move to the
> beginning of the annotation
> (prog1
> (c-add-syntax 'annotation-top-cont (progn (c-beginning-of-statement-1)
> (point)))
> (goto-char placeholder))
Emacs 28 behaves the same way, and that does seem to be the wrong
indentation.
Alan?
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#22270: Indentation following a multi-line Java annotation not correct,
Lars Ingebrigtsen <=