Commit Graph
10 Commits
Author SHA1 Message Date
Ludovic Koenig d88fbd2116 Add some syntax suport for Lombok
The syntax sugar 'val' and 'var' are now part of the 'Statement'
highlight group.

'var' may already be handled by default in vim 8.1 but anyway.
2019-08-01 20:33:35 +02:00
Ludovic Koenig fb260e6a3e Correct the matching ';' at the end of imports
At the end of each import statement, the class must be highlighted with
the Type highlight color. However, up to now, the semicolon was also
highlighted.

It has been fixed by removing the semicolon from the match thanks to the
'\@=' expression.
2019-08-01 20:14:54 +02:00
Ludovic Koenig 0fd7c51522 Add syntax for Java extends & implements keywords
The names that followed the 'extends' and 'implements' keywords were not
properly colored. Two new syntax have been added to deal with that case.

Note: Only one could have done the job.
2019-05-05 12:17:46 +02:00
Ludovic Koenig 6f568a81f9 Add the highlight of the arrow operator
The arrow operator '->' is now highlighted as an operator like 'new',
etc...
2019-04-30 23:18:22 +02:00
Ludovic Koenig 8746d7c7a7 Add the highlight of the classes in an 'import'
It highlights the name of the classes that are imported by an 'import'
statement.
2019-04-30 22:48:09 +02:00
Ludovic Koenig f6ed184a36 Add the highlight and syntax for the enums
It highlights the name of an enum the same way it highlights the one of
a class.
2019-04-30 22:38:43 +02:00
Ludovic Koenig 4e8c85fae3 Fix some highlight overflows
In some case, the highlight of some generic types was overflowing:

  public void method(List<String> strings, List<Integer> integers) {}
                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                       overflow of the first parameter

It corrects this behavior by restraining the type highlight before the
parameter name.
2019-04-30 22:19:36 +02:00
Ludovic Koenig 34fbaa5792 Take into account the Java diamond operator
Up to now the following text 'new ArrayList<>()' was not highlighted
correctly. The modification that has been done highlights it like a
normal type name.
2019-04-30 22:09:52 +02:00
Ludovic Koenig ac5afba7bf Modify the header of java.vim
It just tries to make it more symetric.
2019-04-02 22:29:58 +02:00
Ludovic Koenig 813a42c895 Add the syntax for Java
The Java syntax is located under the ./after/syntax repository.

The syntax provides mainly rules for methods, types and annotations. All
syntax rules have the prefix 'javaOdyssey'.
2019-04-02 21:58:17 +02:00