aboutsummaryrefslogtreecommitdiff
path: root/files/.vim/syntax/python.vim
diff options
context:
space:
mode:
Diffstat (limited to 'files/.vim/syntax/python.vim')
-rwxr-xr-xfiles/.vim/syntax/python.vim13
1 files changed, 13 insertions, 0 deletions
diff --git a/files/.vim/syntax/python.vim b/files/.vim/syntax/python.vim
new file mode 100755
index 0000000..53da6ae
--- /dev/null
+++ b/files/.vim/syntax/python.vim
@@ -0,0 +1,13 @@
+let python_highlight_all = 1
+syn match pythonError "^\s*def\s\+\w\+(.*)\s*$" display
+syn match pythonError "^\s*class\s\+\w\+(.*)\s*$" display
+syn match pythonError "^\s*for\s.*[^:]$" display
+syn match pythonError "^\s*except\s*$" display
+syn match pythonError "^\s*finally\s*$" display
+syn match pythonError "^\s*try\s*$" display
+syn match pythonError "^\s*else\s*$" display
+syn match pythonError "^\s*else\s*[^:].*" display
+syn match pythonError "^\s*if\s.*[^\:]$" display
+syn match pythonError "^\s*except\s.*[^\:]$" display
+syn match pythonError "[;]$" display
+syn keyword pythonError do