diff --git a/CHANGELOG.md b/CHANGELOG.md index dde1ea3..98d1618 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,9 @@ project adheres to [Semantic Versioning]. ### Added +- Add some support for the JavaScript language. It mainly deals with the + highlight of function/method calls and declarations. + - Add some support for the Go language. It mainly deals with the highlight of function/method calls and declarations. diff --git a/after/syntax/javascript.vim b/after/syntax/javascript.vim new file mode 100644 index 0000000..045d3fd --- /dev/null +++ b/after/syntax/javascript.vim @@ -0,0 +1,32 @@ +" _ _ __ +" (_)____ _ _ __ ____ _ _____ _____ _____ (_)____ / /_ +" / // __ `/| | / // __ `// ___// ___// ___// // __ \ / __/ +" / // /_/ / | |/ // /_/ /(__ )/ /__ / / / // /_/ // /_ +" __/ / \__,_/ |___/ \__,_//____/ \___//_/ /_// .___/ \__/ +" /___/ ____ /_/ +" / __/____ _____ +" / /_ / __ \ / ___/ +" / __// /_/ // / +" __ /_/ \____//_/ +" ____ ____/ /__ __ _____ _____ ___ __ __ +" / __ \ / __ // / / // ___// ___// _ \ / / / / +" / /_/ // /_/ // /_/ /(__ )(__ )/ __// /_/ / +" \____/ \__,_/ \__, //____//____/ \___/ \__, / +" /____/ /____/ +" +" Note: This script defines syntax groups that deal with function calls and +" lambda definitions. +" +" Maintainer: Ludovic Koenig +" Version: 0.7.0 +" Since: 0.7.0 +" License: MIT +" +" JavaScript Syntax {{{ + +syntax keyword javaScriptOdysseyKeyword of yield async await +syntax match javaScriptOdysseyFatArrow "=>" +syntax match javaScriptOdysseyFunction "\<\l\w*\>("me=e-1 + +" }}} +" vim: foldmethod=marker textwidth=79 colorcolumn=+1 diff --git a/colors/odyssey.vim b/colors/odyssey.vim index 2e71b92..a1f7bc0 100644 --- a/colors/odyssey.vim +++ b/colors/odyssey.vim @@ -298,6 +298,16 @@ else let g:java_ignore_javadoc = 1 endif +" }}} +" JavaScript Highlights {{{ + +call s:l( 'javaScriptFunction', 'Statement') +call s:l( 'javaScriptBraces', 'Normal') +call s:l( 'javaScriptIdentifier', 'Statement') +call s:l( 'javaScriptOdysseyKeyword', 'Keyword') +call s:l('javaScriptOdysseyFunction', 'Function') +call s:l('javaScriptOdysseyFatArrow', 'Statement') + " }}} " Python Highlights {{{