Browse Source

Fix highlighting of exec() as builtin function in Python 3

Joongi Kim 7 years ago
parent
commit
ac5499b832
1 changed files with 4 additions and 1 deletions
  1. 4
    1
      syntax/python.vim

+ 4
- 1
syntax/python.vim View File

@@ -152,7 +152,10 @@ endif
152 152
 "
153 153
 
154 154
 syn keyword pythonStatement     break continue del
155
-syn keyword pythonStatement     exec return
155
+if s:Python2Syntax()
156
+  syn keyword pythonStatement     exec
157
+endif
158
+syn keyword pythonStatement     return
156 159
 syn keyword pythonStatement     pass raise
157 160
 syn keyword pythonStatement     global assert
158 161
 syn keyword pythonStatement     with