待辦事項 #2816

Indentation fails for method parameters
啟用日期: 2003-08-17 07:03 最後更新: 2003-08-23 02:26

回報者:
負責人:
類型:
狀態:
關閉
元件:
(無)
里程碑:
(無)
優先權:
5 - 中
嚴重程度:
5 - 中
處理結果:
修正
檔案:
2

細節

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
評語
Logged In: YES
user_id=6171

It also applies to method calls.

testMethods(1,
2);
2003-08-20 01:25 Updated by: ando
  • 負責人 Update from (無) to ando
2003-08-23 02:26 Updated by: ando
  • Ticket Close date is changed to 2003-08-23 02:26
  • 處理結果 Update from to 修正
  • 狀態 Update from 開啟 to 關閉
評語
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

編輯

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