Browse Source

add syntax highlighting for self in python2

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