Ticket #2816

Indentation fails for method parameters
Date d'ouverture: 2003-08-17 07:03 Dernière mise à jour: 2003-08-23 02:26

Rapporteur:
Propriétaire:
Type:
État:
Atteints
Composant:
(Aucun)
Jalon:
(Aucun)
Priorité:
5 - moyen
Sévérité:
5 - moyen
Résolution:
Fixed
Fichier:
2

Détails

If the goal is to make an editor which have the same
indentation patterns as Emacs then the following is a
problem.

If a methods have a lot of parameters and add you add
a line break then it's indented different from Emacs.

Emacs:
void test(int value1,
int value2) {
}

EE2E:
void test(int value1,
int value2) {
}

The way Emacs indents is more readable (according to
me).

Ticket History (3/5 Histories)

2003-08-17 07:04 Updated by: schutzerj
  • File 648: example.txt is attached
2003-08-17 07:11 Updated by: schutzerj
Commentaire
Logged In: YES
user_id=6171

It also applies to method calls.

testMethods(1,
2);
2003-08-20 01:25 Updated by: ando
  • Propriétaire Update from (Aucun) to ando
2003-08-23 02:26 Updated by: ando
  • Ticket Close date is changed to 2003-08-23 02:26
  • Résolution Update from Aucun to Fixed
  • État Update from Ouvert to Atteints
Commentaire
Logged In: YES
user_id=4377

[#2816] Indentation fails for method parameters

[Japanese]
";","{","}"が現れる前のカッコ("(",")","[","]")の数を数え上げ
て、
"(","["の方が先に現れたら、その文字位置+1までスペーシングするよ

に変更しました。
この問題はクローズします。

[English]
Until a punctuation mark appears for the first time,
the number of circle mark is counted.
Supposing the direction of a left circle mark is
increases,
a space is moved to this position.
This problem closes.

(*) punctuation mark==";","{","}"
(*) circle mark=="(",")","[","]"

[TestCase] Please refer to.
jp.ne.ruru.park.ando.ee2e.editors.EE2EIndentJavaCircleTest

[Version]
EE2E2.5.4
2003-08-23 02:26 Updated by: ando
  • File 663: EE2EIndentJavaCircleTest.java is attached

Attachment File List

Modifier

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Connexion