Commit Graph
127 Commits
Author SHA1 Message Date
Ludovic Koenig 0794e981fc Merge the changes maded for Rust 2019-09-07 15:17:01 +02:00
Ludovic Koenig a2ee93148c Update the CHANGELOG with the last changes
It closes #3 on Github.
2019-09-07 15:14:47 +02:00
Ludovic Koenig 6c0d572a61 Add some support to better highlight Rust
It clears some Rust already existing syntax to better highlight the
important language items.

It then relinks some syntax to use the color scheme in a more efficient
way, and it adds some support for types and functions.

Those are the first for the Rust programming language.
2019-09-07 15:05:38 +02:00
Ludovic Koenig fd89f68c47 Fix some typos in CHANGELOG.md 2019-08-09 21:32:30 +02:00
Ludovic Koenig 20dc054197 Incorporate the changes on the Javadoc
It closes #6 on GitHub.
2019-08-09 21:24:25 +02:00
Ludovic Koenig 68b259b31d Update the CHANGELOG.md
It introduces the changes made on the highlighting of the Javadoc.
2019-08-09 21:23:18 +02:00
Ludovic Koenig 48dbff0ada Allow the highlighting of the Javadoc
It adds a mechanism that allows to trigger the highlight of the Javadoc.
In order to do so, the user must add the following to its .vimrc file
before declaring the colorscheme:

    let g:odyssey_java_javadoc = 1
    colorscheme odyssey

It must be noted that if g:odyssey_java_javadoc equals 0, the
highlighting of the Javadoc is not taken into account.
2019-08-09 21:12:02 +02:00
Ludovic Koenig 0b94ffda40 Prevent the highlight of Javadoc
By default, comments should keep their basic highlight with Odyssey.
Therefore, the plugin introduces the variable `g:java_ignore_javadoc`
which prevent the highlight of the Javadoc.
2019-08-09 06:45:09 +02:00
Ludovic Koenig 26e401bec5 Incorporate the changes for the folding mechanism
It closes #7 on GitHub.
2019-08-09 06:26:07 +02:00
Ludovic Koenig 06d2e1e1a6 Update the CHANGELOG.md file with the last changes 2019-08-09 06:25:17 +02:00
Ludovic Koenig 42567fef60 Add some Java syntax group for folding
It adds three Java syntax group in order to have more folding
capabilities:

- javaOdysseyComment: It allows to fold any multiline Java comments.

- javaOdysseyImport: It allows to fold any 'import' statement block.

- javaOdysseyImportStatic: It allows to fold any 'import static'
                           statement block.
2019-08-09 06:18:42 +02:00
Ludovic Koenig 1203ec8c3b Incorporate the changes for the Java syntax 2019-08-06 22:14:11 +02:00
Ludovic Koenig b423cdff48 Update the CHANGELOG.md file 2019-08-06 22:12:11 +02:00
Ludovic Koenig cf387ad4ef Modify some Java syntax group names
The next syntax group names have been modified as followed:

- javaOdysseyImport       -> javaOdysseyGetClass

- javaOdysseyImportMethod -> javaOdysseyGetStaticMethod

- javaOdysseyImportClass  -> javaOdysseyGetStaticClass

- javaOdysseyDottedClass  -> javaOdysseyDotOperator
2019-08-06 22:02:21 +02:00
Ludovic Koenig 0ee7534410 Fix the highlight of import for nested classes
It fixes the highlight of the 'import' statement for nested classes.

In order to do so, it declares the 'javaOdysseyDottedClass' before the
'javaOdysseyImport' syntax group. It follows that all outer classes are
considered as being part of the 'javaOdysseyDottedClass' syntax group.

It fixes #1 on GitHub.
2019-08-06 21:48:39 +02:00
Ludovic Koenig 2a53c265e2 Incorporate the changes done for the release 0.4.0 2019-08-02 23:37:38 +02:00
Ludovic Koenig ea44266bf7 Update the headers of the scripts
It reintroduces the release number, plus it adds a 'since' release
number.

It also provides some explanations about the 'after/syntax/java.vim'
file.
2019-08-02 23:26:12 +02:00
Ludovic Koenig a101374a46 Modify the CHANGELOG.md file
It adds more details about the new features, and it tries to use bullet
points instead of too long sentences.
2019-08-02 23:08:54 +02:00
Ludovic Koenig 3226df6382 Modify the CHANGELOG for uniformity
In the table representing the changes for the release 0.2.0, some cells
of it had their value not strikethrough. It has now been fixed.
2019-08-02 07:45:27 +02:00
Ludovic Koenig 281a5ce07c Fix the header of the Java syntax file 2019-08-02 07:45:27 +02:00
Ludovic Koenig 9a09528793 Remove the release number from the comments
It will be very painful to maintain if some new files are going to be
added.
2019-08-02 07:45:27 +02:00
Ludovic Koenig 16eb888f86 Add the change done on Ruby string Interpolation 2019-08-02 07:43:54 +02:00
Ludovic Koenig 371eeca1f1 Modify the color of Ruby string interpolation
The string interpolation is now colored with the green color associated
to functions.
2019-08-02 07:42:45 +02:00
Ludovic Koenig 7b79e663fa Add some additional support for Java syntax
It modifies the 'import' statement by fixing some bugs and adding some
new support.

Plus enum values and classes used with the dot operator are also now
highlighted.
2019-08-02 07:37:18 +02:00
Ludovic Koenig f3a0932228 Add some more supports for the Java import syntax
Static imports are now highlight in green for functions and in yellow
for the nested static classes.

A minor bug has been fixed, because '.' was used instead of '\.' in the
regexes. Given that the 'magic' option is set by default, it matched
always any character instead of '.'.
2019-08-02 07:28:59 +02:00
Ludovic Koenig ad2a4ea635 Add the highlight for java classes in expressions
When a class name is used in an expression to access some kind of static
content, this class name is now highlighted. In other words, in
'System.out.println("")', 'System' must now be colored.
2019-08-02 07:00:54 +02:00
Ludovic Koenig 979e700cf9 Add suports for Java Enum values and constructors
Enum values that are often/always written in uppercase are now handled
and considered as constants. They are highlighted within the Enum
declaration and outside of it in case statements or through the use of
the dot operator on an enum.
2019-08-01 22:26:04 +02:00
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 dd371289cf Update the CHANGELOG with the change on Type
The highlight group 'Type' is no more italic. It has been reported in
the CHANGELOG.md file.
2019-08-01 20:20:49 +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 c413ee1668 Add the deletion of italic attibute on Type
The Type highlight was associated to the italic attribute, but it was
not a success for me (the maintainer), so it has been removed.
2019-08-01 20:07:29 +02:00
Ludovic Koenig 398d8111f9 Modify the Type highlight
The Type highlight has no more an italic attribute, and the text is now
expected to be normal. In fact, that must words in italic was kind of
annoying.
2019-08-01 20:06:48 +02:00
Ludovic Koenig 45fb3bb1c2 Add supports for Java inheritance and interface 2019-05-05 12:22:06 +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 a32b09a4ba Add some corrections and new features for Java
It corrects some bugs or omissions that occured in the Java syntax.

Plus, it adds some new stuff like the highlight of enum classes when
decalred or the arrow operator '->'.
2019-05-01 09:01:58 +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 7e870e513a Incorporate the changes for Java 2019-04-02 22:12:33 +02:00
Ludovic Koenig 00fd7de50b Modify the CHANGELOG.md file
The CHANGELOG is modified to state the changes that have been introduced
by the modifications for Java programming language.
2019-04-02 22:10:42 +02:00
Ludovic Koenig a19b91bfc6 Add the highlights for Java
Methods are colored in green, types in yellows and annotations in
orange. Some italic flavours are also used.

The most difficult thing to achieve was to highlight constantly Java
types or classe names.
2019-04-02 22:02:04 +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
Ludovic Koenig 4d62434100 Reassociate the Operator highlight to Statement
After seeing that the 'new' keyword from Java was linked to the Operator
category, I decided to remap the Operator group to the Statement group.
2019-03-26 23:02:01 +01:00
Ludovic Koenig f3377f24da Incorporate the changes for Ruby
It adds the suport for the Ruby programming language in the master
branch.
2019-03-26 22:10:44 +01:00
Ludovic Koenig 00cb562d76 Modify the CHANGELOG.md file
It declares the addition of the support for the Ruby programming
language.
2019-03-26 22:04:10 +01:00
Ludovic Koenig 9d50a66ec9 Redefine some highlights for Ruby
Some highlight of the Ruby have been redefined entirely or are now
linked to other default highlights.
2019-03-26 21:57:54 +01:00
Ludovic Koenig daca076ad0 Modify some highlight commands
A new function s:l has been introduced in order to use 'highlight link'
instead of just a 'highlight' which redefined a new highlight instead of
using an existing one.

This function is used in some case in order not to redefine an
highlight. Now, Function links to Identifier and StorageClass, Structure
and Typedef all link to Statement.
2019-03-17 22:24:57 +01:00