Merge the changes done for JavaScript

This commit is contained in:
Ludovic Koenig
2019-09-30 20:20:51 +02:00
3 changed files with 45 additions and 0 deletions
+3
View File
@@ -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.
+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
+10
View File
@@ -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 {{{