Browse Source

add syntax highlighting for self in python2

Tianlin Shi 8 years ago
parent
commit
a670c23db6
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      syntax/python.vim

+ 2
- 2
syntax/python.vim View File

152
 syn keyword pythonStatement     exec return
152
 syn keyword pythonStatement     exec return
153
 syn keyword pythonStatement     pass raise
153
 syn keyword pythonStatement     pass raise
154
 syn keyword pythonStatement     global assert
154
 syn keyword pythonStatement     global assert
155
-syn keyword pythonStatement     lambda
155
+syn keyword pythonStatement     lambda 
156
 syn keyword pythonStatement     with
156
 syn keyword pythonStatement     with
157
 syn keyword pythonStatement     def class nextgroup=pythonFunction skipwhite
157
 syn keyword pythonStatement     def class nextgroup=pythonFunction skipwhite
158
 syn keyword pythonRepeat        for while
158
 syn keyword pythonRepeat        for while
168
   if !s:Enabled("g:python_print_as_function")
168
   if !s:Enabled("g:python_print_as_function")
169
     syn keyword pythonStatement  print
169
     syn keyword pythonStatement  print
170
   endif
170
   endif
171
-  syn keyword pythonImport      as
171
+  syn keyword pythonImport      as self
172
   syn match   pythonFunction    "[a-zA-Z_][a-zA-Z0-9_]*" display contained
172
   syn match   pythonFunction    "[a-zA-Z_][a-zA-Z0-9_]*" display contained
173
 else
173
 else
174
   syn keyword pythonStatement   as nonlocal None
174
   syn keyword pythonStatement   as nonlocal None