Update Vim syntax highlighting to specify what revision was used to generate

the file.
This commit is contained in:
Brett Cannon 2008-01-29 04:18:04 +00:00
parent 870d0c2871
commit 8fff20f950
3 changed files with 9 additions and 8 deletions

View file

@ -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