From 48dbff0ada1907f4f14fcce0d303d9f87bf3cc30 Mon Sep 17 00:00:00 2001 From: Ludovic Koenig Date: Fri, 9 Aug 2019 21:12:02 +0200 Subject: [PATCH] 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. --- colors/odyssey.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/colors/odyssey.vim b/colors/odyssey.vim index 2666e68..d4baaba 100644 --- a/colors/odyssey.vim +++ b/colors/odyssey.vim @@ -283,7 +283,13 @@ call s:l( 'javaOdysseyLombok', 'Statement') call s:l( 'javaOdysseyEnumValue', 'Constant') call s:l('javaOdysseyEnumConstructor', 'Constant') -let g:java_ignore_javadoc = 1 +if exists('g:odyssey_java_javadoc') && g:odyssey_java_javadoc != 0 + if exists('g:java_ignore_javadoc') + unlet g:java_ignore_javadoc + end +else + let g:java_ignore_javadoc = 1 +endif " }}} " Ruby Highlights {{{