diff --git a/after/syntax/python.vim b/after/syntax/python.vim new file mode 100644 index 0000000..25ddf24 --- /dev/null +++ b/after/syntax/python.vim @@ -0,0 +1,16 @@ +" +" Maintainer: Ludovic Koenig +" Version: 0.5.0 +" Since: 0.5.0 +" License: MIT +" +" Python Syntax {{{ + +syntax keyword pythonOdysseySelf self +syntax match pythonOdysseyFunction '\<\l\w*\>('me=e-1 +syntax match pythonOdysseyType '\<\u\w*\>' +syntax keyword pythonStatement class nextgroup=pythonOdysseyClass skipwhite +syntax match pythonOdysseyClass "\<\u\w*\>" + +" }}} +" vim: foldmethod=marker diff --git a/colors/odyssey.vim b/colors/odyssey.vim index a0b0c91..8ae9244 100644 --- a/colors/odyssey.vim +++ b/colors/odyssey.vim @@ -293,6 +293,17 @@ else let g:java_ignore_javadoc = 1 endif +" }}} +" Python Highlights {{{ + +call s:h( 'pythonDecorator', 'background', 'warning', 'italic') +call s:h( 'pythonDecoratorName', 'background', 'warning', 'italic') +call s:l( 'pythonInclude', 'Statement') +call s:l('pythonOdysseyFunction', 'Function') +call s:l( 'pythonOdysseySelf', 'Special') +call s:l( 'pythonOdysseyType', 'Type') +call s:l( 'pythonOdysseyClass', 'Type') + " }}} " Ruby Highlights {{{ @@ -309,6 +320,6 @@ call s:l( 'rubyStringDelimiter', 'Constant') call s:l( 'rustLifetime', 'Constant') call s:l( 'rustQuestionMark', 'Operator') call s:l('rustOdysseyFunction', 'Function') -call s:l( 'rustOdysseyType', 'Type') +call s:l( 'rustOdysseyType', 'Type') " }}} " vim: foldmethod=marker