From fa74f11430fe1fee09c0a9094f1a0bbd41a4c7d4 Mon Sep 17 00:00:00 2001 From: Ludovic Koenig Date: Sat, 28 Sep 2019 10:54:30 +0200 Subject: [PATCH] Add two syntax groups for the Go syntax Those syntax groups deals with the highligths of function declarations and function calls. --- after/syntax/go.vim | 24 ++++++++++++++++++++++++ colors/odyssey.vim | 6 ++++++ 2 files changed, 30 insertions(+) create mode 100644 after/syntax/go.vim diff --git a/after/syntax/go.vim b/after/syntax/go.vim new file mode 100644 index 0000000..7e4f3e5 --- /dev/null +++ b/after/syntax/go.vim @@ -0,0 +1,24 @@ +" ____ +" ____ _ ____ / __/____ _____ +" / __ `// __ \ / /_ / __ \ / ___/ +" / /_/ // /_/ / / __// /_/ // / +" \__, / \____/ /_/ \____//_/ +" /____/ __ +" ____ ____/ /__ __ _____ _____ ___ __ __ +" / __ \ / __ // / / // ___// ___// _ \ / / / / +" / /_/ // /_/ // /_/ /(__ )(__ )/ __// /_/ / +" \____/ \__,_/ \__, //____//____/ \___/ \__, / +" /____/ /____/ +" +" Maintainer: Ludovic Koenig +" Version: 0.6.0 +" Since: 0.6.0 +" License: MIT +" +" Go Syntax {{{ + +syntax match goOdysseyFunction "\<\w*\>("me=e-1 +syntax match goOdysseyFuncKeyword "\("me=e-1 + +" }}} +" vim: foldmethod=marker textwidth=79 colorcolumn=+1 diff --git a/colors/odyssey.vim b/colors/odyssey.vim index 6445f14..2c361ca 100644 --- a/colors/odyssey.vim +++ b/colors/odyssey.vim @@ -256,6 +256,12 @@ call s:h( 'Ignore', 'background', 'background', 'none') call s:h( 'Error', 'background', 'error', 'bold') call s:h( 'Todo', 'background', 'warning', 'bold') +" }}} +" Go Highlights {{{ + +call s:l( 'goOdysseyFunction', 'Function') +call s:l('goOdysseyFuncKeyword', 'Statement') + " }}} " Java Highlights {{{