Add supports for Python builtin types
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 {{{
|
||||
|
||||
|
||||
Reference in New Issue
Block a user