Add some support for JavaScript

It adds new syntax groups for JavaScript and it relinks some existing
ones to have a better color scheme.
This commit is contained in:
Ludovic Koenig
2019-09-30 13:46:58 +02:00
parent ba420d113f
commit 6751a88cae
2 changed files with 42 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
" _ _ __
" (_)____ _ _ __ ____ _ _____ _____ _____ (_)____ / /_
" / // __ `/| | / // __ `// ___// ___// ___// // __ \ / __/
" / // /_/ / | |/ // /_/ /(__ )/ /__ / / / // /_/ // /_
" __/ / \__,_/ |___/ \__,_//____/ \___//_/ /_// .___/ \__/
" /___/ ____ /_/
" / __/____ _____
" / /_ / __ \ / ___/
" / __// /_/ // /
" __ /_/ \____//_/
" ____ ____/ /__ __ _____ _____ ___ __ __
" / __ \ / __ // / / // ___// ___// _ \ / / / /
" / /_/ // /_/ // /_/ /(__ )(__ )/ __// /_/ /
" \____/ \__,_/ \__, //____//____/ \___/ \__, /
" /____/ /____/
"
" Note: This script defines syntax groups that deal with function calls and
" lambda definitions.
"
" Maintainer: Ludovic Koenig <ludovic.koenig@gmail.com>
" 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