summaryrefslogtreecommitdiff
path: root/Misc/Vim/vim_syntax.py
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2008-01-29 04:18:04 +0000
committerBrett Cannon <bcannon@gmail.com>2008-01-29 04:18:04 +0000
commit8fff20f950d75577bbab09dc543e22db13e7cbe5 (patch)
tree33f330dca42103dd89596c5b5311cd7a21da677f /Misc/Vim/vim_syntax.py
parent870d0c28716e979660546cc1aa54272f771cedeb (diff)
downloadcpython-git-8fff20f950d75577bbab09dc543e22db13e7cbe5.tar.gz
Update Vim syntax highlighting to specify what revision was used to generate
the file.
Diffstat (limited to 'Misc/Vim/vim_syntax.py')
-rw-r--r--Misc/Vim/vim_syntax.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Misc/Vim/vim_syntax.py b/Misc/Vim/vim_syntax.py
index 55dd27702d..57a30e49c7 100644
--- a/Misc/Vim/vim_syntax.py
+++ b/Misc/Vim/vim_syntax.py
@@ -4,8 +4,9 @@ import keyword
import exceptions
import __builtin__
from string import Template
+from sys import subversion
-comment_header = '''" Auto-generated Vim syntax file for Python.
+comment_header = '''" Auto-generated Vim syntax file for Python (%s: r%s).
"
" To use: copy or symlink to ~/.vim/syntax/python.vim'''
@@ -160,7 +161,7 @@ FILL = 80
def main(file_path):
with open(file_path, 'w') as FILE:
# Comment for file
- print>>FILE, comment_header
+ print>>FILE, comment_header % subversion[1:]
print>>FILE, ''
# Statements at start of file
print>>FILE, statement_header