diff options
| author | Anton Bobov <bobov_a@sibsac.ru> | 2011-10-13 11:17:19 +0600 |
|---|---|---|
| committer | Anton Bobov <bobov_a@sibsac.ru> | 2011-10-13 11:17:19 +0600 |
| commit | da709cd9e90c3ab644bb92700f0ed40d965b80d3 (patch) | |
| tree | 144e5470327f72b8489141cd7595b652c6c32616 /files/.vim/syntax/python.vim | |
Initial commit.
Diffstat (limited to 'files/.vim/syntax/python.vim')
| -rwxr-xr-x | files/.vim/syntax/python.vim | 13 |
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 |
