From da709cd9e90c3ab644bb92700f0ed40d965b80d3 Mon Sep 17 00:00:00 2001 From: Anton Bobov Date: Thu, 13 Oct 2011 11:17:19 +0600 Subject: Initial commit. --- files/.vim/syntax/python.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 files/.vim/syntax/python.vim (limited to 'files/.vim/syntax/python.vim') 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 -- cgit v1.2.3