Commit Graph
55 Commits
Author SHA1 Message Date
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 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 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 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 7e870e513a Incorporate the changes for Java 2019-04-02 22:12:33 +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 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 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
Ludovic Koenig f36d342308 Particularize some new highlight groups
The highlight group named 'Operator' is colored with the procedure
color.

Plus, the highlight groups named 'StorageClass', 'Structure' and
'Typedef' are colored with the keyword color.
2019-03-17 14:05:54 +01:00
Ludovic Koenig 6d486a0096 Remove some highlights
Some of the highlights are removed because they compose the default
syntax, but are linked by default to other highlights.
2019-03-17 13:32:30 +01:00
Ludovic Koenig 755c1e7a89 Beautify some parts of the code
Some function calls have just been reorder in and between sections.
2019-03-17 13:18:29 +01:00
Ludovic Koenig f8413a5a6d Bump the script release number to 0.3.0 2019-03-16 13:15:59 +01:00
Ludovic Koenig 424e45c328 Modify a variable name
In the function s:HL, the variable 'hi' is renamed 'l:hi' everywhere.
2019-03-16 13:14:16 +01:00
Ludovic Koenig d387a42bbe Change the attribute of Type from bold to none
A last minute change before the new release: Types are back to having no
attribute.

In fact, it is expected to set all the attributes in the next release
(0.4.0), so we don't want to go head of ourselves.
2019-03-16 13:06:18 +01:00
Ludovic Koenig 5178b941de Change section names in CHANGELOG.md
The 'Syntax' section is renamed 'Default Syntax'.

Then, if a language or a plugin is supported, its associated section
will be named '<language or plugin> Syntax'.
2019-03-16 13:02:43 +01:00
Ludovic Koenig ae834705c2 Modify the structure of the comments
The highlighting of the synta groups has been split in two. There are
now:

- the 'User Interface',

- and the 'Syntax'.
2019-03-12 23:11:28 +01:00
Ludovic Koenig 9c7b6609d0 Improve the mechanism for managing attributes
Attributes are now defined in a variable named 's:attributes' and can be
applied thanks to the function named 's:HL'.
2019-03-12 22:24:40 +01:00
Ludovic Koenig 159d1cbfcc Add a list of attributes for the highlights
A script-scoped variable containing all the different attributes has
been initialized.

This variable is a list with the attibutes for the terminals and the
GUIs.
2019-03-12 21:51:01 +01:00
Ludovic Koenig e963c9c876 Make the yellow more yellowish
The color representing the types was to greenish and its hue has been
decreased to have more yellowish color.
2019-03-11 21:54:54 +01:00
Ludovic Koenig 06ff8f3e59 Modify the color palette
The colors related to the errors, the warnings and the types have been
changed.

- Hue of the red (errors):      10

- Hue of the orange (warnings): 40

- Hue of the yellow (types):    80
2019-03-10 22:54:47 +01:00
Ludovic Koenig 9e3829e190 Modify some of the colors
The following colors have been modified:

- type: The color of the types is now very yellowish, and its hue is 70.

- keyword: The color of the keywords is now a blue a little bit darker
           whose hue is 180. It is great because it is nearer the hue of
           the background color.

- constant: The color of the constants is now a dark blue instead of a
            yellow-green.
2019-03-09 23:01:03 +01:00
Ludovic Koenig 770ffc7877 Change the script version to 0.2.0 2019-03-09 13:50:23 +01:00
Ludovic Koenig 9d4da450b0 Adjust the constants color
The hue of the constant color has been moved to 95 to make it more
yellowish.
2019-03-09 13:49:23 +01:00
Ludovic Koenig 3499117eec Modify the color of Constant
At first, I chose a yellowish color, but, now, I wanted to try a more
yellow-greenish color for the Constant.
2019-03-09 12:27:28 +01:00
Ludovic Koenig c116dda91a Add the group-name Cursor and lCursor
The highlight for this two groups are the inverse of the one of Normal.
2019-03-09 12:12:08 +01:00
Ludovic Koenig b3097bd337 Modify the color related to the constant
I thought that the dark associated to the color of the constant was to
difficult to read in some case. I chose to use a more yellowish color.
2019-03-07 13:31:51 +01:00
Ludovic Koenig e89d998525 Compute the cterm colors given the true colors
The RGB values of the GUI colors are now taken in input to compute the
value of the Xterm colors by using an approximation.

Now, in order to chose colors for the GUI or the TERM, it is enough to
only provide the HSB triplet.
2019-03-07 13:16:43 +01:00
Ludovic Koenig 3fc792934e Modify the color utilities
The function named s:hsv2hex has been separated into two functions named
respectively s:hsv2rgb and s:rgb2hex.

The function that helps now populating the s:color array is named
s:colorize.
2019-03-06 20:24:11 +01:00
Ludovic Koenig 43fa75f427 Separate the Utility in two
The are now two Utility sections:

- Color Utility: Part of the script that helps defining colors.

- Highlight Utility: Part of the script that helps defining highlights.
2019-03-06 20:02:47 +01:00
Ludovic Koenig fc0bc607ad Modify the highlight for MatchParen
In some terminals, a color of cursor disappeared when it was on a
parenthese. This modification seems to solve the problem given that the
cursor turns orange and the matching parenthese is underlined in orange.
2019-03-05 22:12:40 +01:00
Ludovic Koenig 7672451718 Modify the cterm color used for the warning
The cterm color used for the warning was more yellow than orange. It has
been corrected by recalculating its correct hexadecimal code.
2019-03-04 22:08:57 +01:00
Ludovic Koenig 852d7a89ac Modify the way s:colors is handled
The variable s:colors is now a dictionary that maps the keys 'gui' and
'term' to their associated value. In one case, it is an hexadecimal
string and, in the other, it is a number between 0 and 255.
2019-03-04 21:43:42 +01:00
Ludovic Koenig 6507cc367b Incorporate the update for the release 0.1.0
It adds mainly the CHANGELOG.md created for the release 0.1.0.
2019-03-04 21:28:23 +01:00
Ludovic Koenig 740a0ffbb7 Add the release number in the script
The release is now part of the script header, that is the long comment
at the beginning.
2019-03-04 21:21:28 +01:00
Ludovic Koenig 4710180868 Add the support for 8-bit colors
The true color and its 8-bit association are managed in the same tuples.
In other words, s:colors is now an array of tuples.

Rigth now, I think the mapping between the true and the 8-bit colors can
be improved. I have just used an approximation script I found on the
internet (URL too long).
2019-03-04 21:03:37 +01:00
Ludovic Koenig cb724771c1 Add the two remaining highlight groups
The two groups were ToolbarLine and ToolbarButton. I spent some time
trying what those are until I found 'WinBar' (Not sure I figure
everything out right now).
2019-03-04 19:28:47 +01:00
Ludovic Koenig 1afe538444 Add the initialisation step
The initialisation step consists in cleaning the highlights and the
syntax from previous schemes, and setting the background accordingly.

Plus, the variables used within the script are also initialized.

It must be noted that the colorscheme is only defined for the GUI and
for versions of Vim that has the 'termguicolors' option set. In addition
the version must be greater than '580'.
2019-03-03 14:53:31 +01:00
Ludovic Koenig 72bec72b64 Remove the setting of termguicolors
A check of the setting of termguicolors will be added, but from now on,
the user will have to set this option.
2019-03-03 00:50:36 +01:00
Ludovic Koenig a8fe6bdde2 Modify the colors of the PMenu
The colors of the scrollbar and its thumb which are both associated to
the Pmenu have been modified after using it on an example.

The scrollbar has now the same color as the main part of the PMenu, and
the color of its thumb is the one of the 'linenumber'.
2019-03-02 19:15:08 +01:00
Ludovic Koenig 104e2900a9 Add almost all the default highlighting groups
Almost all the default highligting groups have been added. Those which
remain commented are related to the GUI, and they will be added later.
The color of some of the already existing groups has changed, but it has
not been logged because nothing is fixed right now.

The function s:HL has also been change a little bit in order to support
an optional third argument to provide the value of 'gui'.
2019-03-02 12:33:45 +01:00
Ludovic Koenig 90fa9bd577 Add some colors to the default highlight groups
It adds/rewrites colors to some default highlights groups like ErrorMsg
or WarningMsg or Title. The intention is to cover all the default groups
before, maybe, trying to cover 'filetype' related groups.

It must be noted that the color named error and warning are used in the
interface, but, only to put the emphasize on warning or error messages.
2019-03-01 10:03:20 +01:00
Ludovic Koenig 8c873baa73 Modify the foreground color
The brightness of the foreground color has been reduced in order to have
a smaller contrast with the linenumber color (comments, etc...).
2019-02-28 19:13:05 +01:00
Ludovic Koenig 7a0ba96624 Add all default highlight groups as commentaries
All the default highlight groups are present, but, now, most of them are
commented.

Each time a decision is made on what color should be used, the
corresponding groups will be uncommented.
2019-02-28 19:08:59 +01:00