Skip to content

Commit

Permalink
Merge remote-tracking branch 'lilydjwg/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
achimnol committed Jun 2, 2017
2 parents eb44ea7 + 738e118 commit 67c13cf
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions syntax/python.vim
Original file line number Diff line number Diff line change
Expand Up @@ -176,11 +176,11 @@ if s:Python2Syntax()
syn keyword pythonImport as
syn match pythonFunction "[a-zA-Z_][a-zA-Z0-9_]*" display contained
else
syn keyword pythonStatement as nonlocal None
syn keyword pythonStatement as nonlocal
syn match pythonStatement "\<yield\s\+from\>" display
syn keyword pythonBoolean True False
syn keyword pythonBuiltinObj None True False
syn match pythonFunction "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained
syn keyword pythonStatement await
syn keyword pythonStatement await async
syn match pythonStatement "\<async\s\+def\>" nextgroup=pythonFunction skipwhite
syn match pythonStatement "\<async\s\+with\>" display
syn match pythonStatement "\<async\s\+for\>" display
Expand All @@ -192,7 +192,7 @@ syn cluster pythonExpression contains=pythonStatement,pythonRepeat,pythonConditi
" Decorators (new in Python 2.4)
"

syn match pythonDecorator "@" display nextgroup=pythonDottedName skipwhite
syn match pythonDecorator "^\s*\zs@" display nextgroup=pythonDottedName skipwhite
if s:Python2Syntax()
syn match pythonDottedName "[a-zA-Z_][a-zA-Z0-9_]*\%(\.[a-zA-Z_][a-zA-Z0-9_]*\)*" display contained
else
Expand Down Expand Up @@ -413,8 +413,7 @@ endif

if s:Enabled("g:python_highlight_builtin_objs")
if s:Python2Syntax()
syn keyword pythonBuiltinObj None
syn keyword pythonBoolean True False
syn keyword pythonBuiltinObj None False True
endif
syn keyword pythonBuiltinObj Ellipsis NotImplemented
syn keyword pythonBuiltinObj __debug__ __doc__ __file__ __name__ __package__
Expand Down

0 comments on commit 67c13cf

Please sign in to comment.