diff --git a/CHANGES.txt b/CHANGES.txt index f8e75b2..463f047 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -1,3 +1,7 @@ +Revision 3.3.2 (2013-06-01): + + - Fixed behaviour of b:python_version_2 variable. Reported by Will Gray. + Revision 3.3.1 (2013-05-12): - The script was moved to its own repository at diff --git a/README.rst b/README.rst index 82c4195..aeda04d 100644 --- a/README.rst +++ b/README.rst @@ -133,3 +133,4 @@ Contributors - Andrea Riciputi - Anton Butanaev - Marc Weber +- Will Gray diff --git a/syntax/python.vim b/syntax/python.vim index 7b65c42..bc7f319 100644 --- a/syntax/python.vim +++ b/syntax/python.vim @@ -2,9 +2,9 @@ " Language: Python " Maintainer: Dmitry Vasiliev " URL: https://github.com/hdima/python-syntax -" Last Change: 2013-05-12 +" Last Change: 2013-06-01 " Filenames: *.py -" Version: 3.3.1 +" Version: 3.3.2 " " Based on python.vim (from Vim 6.1 distribution) " by Neil Schemenauer @@ -27,6 +27,7 @@ " Andrea Riciputi " Anton Butanaev " Marc Weber +" Will Gray " " Options " ======= @@ -99,12 +100,15 @@ endfunction " Check if option is enabled function! s:Enabled(name) - return exists(a:name) && {a:name} != 0 + return exists(a:name) && {a:name} endfunction " Is it Python 2 syntax? function! s:Python2Syntax() - return s:Enabled("b:python_version_2") || s:Enabled("g:python_version_2") + if exists("b:python_version_2") + return b:python_version_2 + endif + return s:Enabled("g:python_version_2") endfunction "