From 9d50a66ec923c7c4a92a0400f130d23321c4bc61 Mon Sep 17 00:00:00 2001 From: Ludovic Koenig Date: Tue, 26 Mar 2019 21:57:54 +0100 Subject: [PATCH 1/2] Redefine some highlights for Ruby Some highlight of the Ruby have been redefined entirely or are now linked to other default highlights. --- colors/odyssey.vim | 38 ++++++++++++++++++++------------------ 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/colors/odyssey.vim b/colors/odyssey.vim index 317d8a0..5326b27 100644 --- a/colors/odyssey.vim +++ b/colors/odyssey.vim @@ -147,9 +147,10 @@ let s:colors.constant = s:colorize(210, 45, 70) let s:attributes = {} -let s:attributes['reverse'] = { 'cterm': 'reverse', 'gui': 'reverse' } -let s:attributes['bold'] = { 'cterm': 'bold', 'gui': 'bold' } +let s:attributes[ 'reverse'] = { 'cterm': 'reverse' , 'gui': 'reverse' } +let s:attributes[ 'bold'] = { 'cterm': 'bold' , 'gui': 'bold' } let s:attributes['underline'] = { 'cterm': 'underline', 'gui': 'underline' } +let s:attributes[ 'italic'] = { 'cterm': 'italic' , 'gui': 'italic' } " }}} " Highlight Helpers {{{ @@ -183,7 +184,7 @@ function! s:l(origin, target) endfunction " }}} -" User Interface {{{ +" Interface Highlights {{{ call s:h( 'SpecialKey', 'background', 'warning', 'none') call s:h( 'EndOfBuffer', 'background', 'linenumber', 'none') @@ -237,33 +238,34 @@ call s:h( 'ToolbarButton', 'background', 'linenumber', 'reverse') call s:h( 'Normal', 'background', 'foreground', 'none') " }}} -" Default Syntax {{{ +" Default Highlights {{{ call s:h( 'Comment', 'background', 'linenumber', 'none') - call s:h( 'Constant', 'background', 'constant', 'none') - call s:h( 'Identifier', 'background', 'procedure', 'none') - call s:h( 'Statement', 'background', 'keyword', 'none') call s:l( 'Operator', 'Identifier') - call s:h( 'Preproc', 'background', 'warning', 'none') - -call s:h( 'Type', 'background', 'type', 'none') -call s:l('StorageClass', 'Statement') -call s:l( 'Structure', 'Statement') -call s:l( 'Typedef', 'Statement') - +call s:h( 'Type', 'background', 'type', 'italic') +call s:l('StorageClass', 'Statement') +call s:l( 'Structure', 'Statement') +call s:l( 'Typedef', 'Statement') call s:h( 'Special', 'background', 'warning', 'none') - call s:h( 'Underlined', 'background', 'foreground', 'underline') - call s:h( 'Ignore', 'background', 'background', 'none') - call s:h( 'Error', 'background', 'error', 'bold') - call s:h( 'Todo', 'background', 'warning', 'bold') +" }}} +" Ruby Highlights {{{ + +call s:l( 'rubyClass', 'Statement') +call s:h( 'rubyClassVariable', 'background', 'warning', 'italic') +call s:l( 'rubyDefine', 'Statement') +call s:l( 'rubyInclude', 'Statement') +call s:h( 'rubyInstanceVariable', 'background', 'warning', 'italic') +call s:h('rubyInterpolationDelimiter', 'background', 'constant', 'italic') +call s:l( 'rubyStringDelimiter', 'Constant') + " }}} " vim: foldmethod=marker From 00cb562d76e696f4fc4bef1d11dbb999d33fc551 Mon Sep 17 00:00:00 2001 From: Ludovic Koenig Date: Tue, 26 Mar 2019 22:04:10 +0100 Subject: [PATCH 2/2] Modify the CHANGELOG.md file It declares the addition of the support for the Ruby programming language. --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1f62853..6dd3b62 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,11 @@ project adheres to [Semantic Versioning]. ## [Unreleased] +### Added + +- Supports for the Ruby programming language have been added. Some highlights + of the existing syntax have been modified to better fit the color scheme. + ### Changed - The color of the highlight group 'Operator' has been modified. This group is