Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fix regexp: recog :upper:
  • Loading branch information
koka831 committed Jul 31, 2017
commit b412bd0b46e1af993e1eeea2a2bcb271e5edb31b
2 changes: 1 addition & 1 deletion syntax/python.vim
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ syn keyword pythonStatement raise nextgroup=pythonExClass skipwhite
syn keyword pythonStatement def nextgroup=pythonFunction skipwhite
if s:Enabled('g:python_highlight_class_names')
syn keyword pythonStatement class nextgroup=pythonClassName skipwhite
syn match pythonClassName '[:upper:]\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*' display contained
syn match pythonClassName '\%([[:upper:]][^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*' display contained
endif
if s:Enabled('g:python_highlight_class_vars')
syn keyword pythonClassVar self cls
Expand Down