瀏覽代碼

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

Joongi Kim 7 年之前
父節點
當前提交
ac5499b832
共有 1 個檔案被更改,包括 4 行新增1 行删除
  1. 4
    1
      syntax/python.vim

+ 4
- 1
syntax/python.vim 查看文件

@@ -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