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 9be438d..01e4d9e 100644 --- a/colors/odyssey.vim +++ b/colors/odyssey.vim @@ -299,6 +299,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 {{{