Minor fixes to highlighting

This commit is contained in:
baabelfish 2016-02-07 19:15:54 +02:00
commit 72043737be
4 changed files with 7 additions and 15 deletions

View file

@ -26,7 +26,6 @@ let s:highlights = {
\ 'skModule': "Include",
\ 'skPackage': "Define",
\ 'skParam': "Identifier",
\ 'skResult': "Keyword",
\ 'skStub': "PreCondit",
\ 'skTemp': "Identifier",
\ 'skUnknown': "Error",
@ -90,8 +89,6 @@ function! s:NimHighlighter.on_exit()
else
call add(b:highlights, matchaddpos(s:highlights[ctype], [[line, c, s]]))
endif
else
echoerr "No such key: " . p[1]
endif
endfor

View file

@ -55,9 +55,5 @@ function! NimIndent()
return Down()
endif
" if prevl =~ '[\])}]\s*$'
" return Down()
" endif
return -1
endfunction

View file

@ -36,7 +36,6 @@ let g:nvim_nim_deps_nim = FindNimModulesPath()
let g:nvim_nim_deps_nimble = FindNimbleModulesPath()
let g:nvim_nim_highlighter_enable = 1
let g:nvim_nim_highlighter_semantic = 1
let g:nvim_nim_enable_async = 1
let g:nvim_nim_highlight_builtin = 1
let g:nvim_nim_highlight_use_unite = 0

View file

@ -1,9 +1,9 @@
" if exists("b:current_syntax")
" finish
" endif
" if version < 600
" syntax
" endif
if exists("b:current_syntax")
finish
endif
if version < 600
syntax
endif
let b:current_syntax = "nim"
@ -155,7 +155,7 @@ highlight link nimStorage Structure
highlight link nimStorageClass StorageClass
highlight link nimTypedef Typedef
if g:nvim_nim_highlighter_semantic
if len(g:nvim_nim_highlighter_semantics) > 0
hi Semantic0 guifg=#904719 gui=none
hi Semantic1 guifg=#44f365 gui=none
hi Semantic2 guifg=#503f43 gui=none