+1

Fixes to java syntax

Matt Hauck 11 лет назад обновлен 11 лет назад 1

The following additions to the Java.tmLanguage file would be very wonderful. 


Add to `repository -> parameters -> patterns`:

<dict>

  <key>include</key>

  <string>#annotations</string>

</dict>


Add to `repository -> parameters -> enums -> patterns`:

<dict>

  <key>include</key>

  <string>#comments</string>

</dict>


Does anybody read these...?


One more addition is necessary:


Change `repository -> methods -> begin` to the following regex:


<string>(?!new)^\s*(?=\w.*\s+)(?=[^=]+\()</string>


The addition of "^\s*" makes sure that statements like the following are not highlighted as method definitions.


private static final Pattern FOO = Pattern.compile("(FOO)+");

Сервис поддержки клиентов работает на платформе UserEcho