Skip to content

Commit

Permalink
Normalize vim-javascript syntax highlighting
Browse files Browse the repository at this point in the history
Use orange for actual definition (not invocation) of function names or
method names. Use blue for keywords such as 'function' and 'class'.
Finally, use cyan for actual class names. This limits the use of orange
to the actual names of functions/methonds at their definition site.
  • Loading branch information
pkazmier committed Jun 25, 2018
1 parent 12c40d9 commit 63ede9d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 10 deletions.
18 changes: 10 additions & 8 deletions colors/iceberg.vim
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"
" File: iceberg.vim
" Maintainer: cocopon <[email protected]>
" Modified: 2018-06-24 10:37+0900
" Modified: 2018-06-24 19:45-0500
" License: MIT


Expand Down Expand Up @@ -149,10 +149,12 @@ hi! link graphqlIdentifier Normal
hi! link graphqlOperator Normal
hi! link graphqlStructure Statement
hi! link jsArrowFunction Operator
hi! link jsClassDefinition Type
hi! link jsClassFuncName Function
hi! link jsClassMethodType Statement
hi! link jsExport Statement
hi! link jsFuncName Normal
hi! link jsFunction Function
hi! link jsFuncName Function
hi! link jsFunction Statement
hi! link jsGlobalObjects Statement
hi! link jsModuleKeywords Statement
hi! link jsModuleOperators Statement
Expand All @@ -172,15 +174,15 @@ hi! link SignifySignChange GitGutterChange
hi! link SignifySignChangeDelete GitGutterChangeDelete
hi! link SignifySignDelete GitGutterDelete
hi! link SignifySignDeleteFirstLine SignifySignDelete
hi! link StartifyNumber Special
hi! link StartifyBracket Comment
hi! link StartifyFile String
hi! link StartifyFooter Constant
hi! link StartifyHeader Constant
hi! link StartifyNumber Special
hi! link StartifyPath Comment
hi! link StartifySection Statement
hi! link StartifySlash Comment
hi! link StartifyBracket Comment
hi! link StartifyHeader Constant
hi! link StartifyFooter Constant
hi! link StartifySpecial Normal
hi! link StartifySection Statement
hi! link svssBraces Delimiter
hi! link swiftIdentifier Normal
hi! link typescriptAjaxMethods Normal
Expand Down
6 changes: 4 additions & 2 deletions src/iceberg.vim
Original file line number Diff line number Diff line change
Expand Up @@ -511,10 +511,12 @@ function! s:create_context() abort

" [vim-javascript](https://github.com/pangloss/vim-javascript)
call add(links, pgmnt#hi#link('jsArrowFunction', 'Operator'))
call add(links, pgmnt#hi#link('jsClassDefinition', 'Type'))
call add(links, pgmnt#hi#link('jsClassFuncName', 'Function'))
call add(links, pgmnt#hi#link('jsClassMethodType', 'Statement'))
call add(links, pgmnt#hi#link('jsExport', 'Statement'))
call add(links, pgmnt#hi#link('jsFuncName', 'Normal'))
call add(links, pgmnt#hi#link('jsFunction', 'Function'))
call add(links, pgmnt#hi#link('jsFuncName', 'Function'))
call add(links, pgmnt#hi#link('jsFunction', 'Statement'))
call add(links, pgmnt#hi#link('jsGlobalObjects', 'Statement'))
call add(links, pgmnt#hi#link('jsModuleKeywords', 'Statement'))
call add(links, pgmnt#hi#link('jsModuleOperators', 'Statement'))
Expand Down

0 comments on commit 63ede9d

Please sign in to comment.