diff --git a/after/syntax/python.vim b/after/syntax/python.vim index 25ddf24..d238452 100644 --- a/after/syntax/python.vim +++ b/after/syntax/python.vim @@ -6,7 +6,11 @@ " " Python Syntax {{{ +syntax keyword pythonOdysseyNone None +syntax keyword pythonOdysseyBoolean True False +syntax keyword pythonOdysseyBuiltin int float bool str bytes syntax keyword pythonOdysseySelf self +syntax keyword pythonOdysseyPrint print syntax match pythonOdysseyFunction '\<\l\w*\>('me=e-1 syntax match pythonOdysseyType '\<\u\w*\>' syntax keyword pythonStatement class nextgroup=pythonOdysseyClass skipwhite diff --git a/colors/odyssey.vim b/colors/odyssey.vim index 8ae9244..06d5ca4 100644 --- a/colors/odyssey.vim +++ b/colors/odyssey.vim @@ -298,12 +298,18 @@ endif call s:h( 'pythonDecorator', 'background', 'warning', 'italic') call s:h( 'pythonDecoratorName', 'background', 'warning', 'italic') +call s:l( 'pythonOdysseyNone', 'Constant') +call s:l( 'pythonOdysseyBoolean', 'Constant') +call s:l( 'pythonOdysseyBuiltin', 'Type') +call s:l( 'pythonOdysseyPrint', 'Function') 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') +let g:python_no_builtin_highlight = 1 + " }}} " Ruby Highlights {{{