Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
e0531a9c
Commit
e0531a9c
authored
Jan 29, 2008
by
Brett Cannon
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Vim syntax highlighting to specify what revision was used to generate
the file.
parent
ec729111
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
8 deletions
+9
-8
Misc/Vim/python.vim
Misc/Vim/python.vim
+4
-3
Misc/Vim/syntax_test.py
Misc/Vim/syntax_test.py
+2
-3
Misc/Vim/vim_syntax.py
Misc/Vim/vim_syntax.py
+3
-2
No files found.
Misc/Vim/python.vim
View file @
e0531a9c
" Auto-generated Vim syntax file for Python
" Auto-generated Vim syntax file for Python
(trunk: r60376M).
"
" To use: copy or symlink to ~/.vim/syntax/python.vim
...
...
@@ -64,7 +64,7 @@ endif
if
exists
(
"python_highlight_builtins"
)
syn
keyword pythonBuiltin Ellipsis False None NotImplemented True __debug__
syn
keyword pythonBuiltin __import__ abs
all
any apply basestring bool
syn
keyword pythonBuiltin buffer callable chr classmethod cmp coerce
syn
keyword pythonBuiltin buffer
bytes
callable chr classmethod cmp coerce
syn
keyword pythonBuiltin
compile
complex copyright credits delattr dict
syn
keyword pythonBuiltin
dir
divmod enumerate eval execfile
exit
file
syn
keyword pythonBuiltin
filter
float frozenset getattr globals hasattr
...
...
@@ -73,7 +73,8 @@ if exists("python_highlight_builtins")
syn
keyword pythonBuiltin max min object oct open ord pow property quit
syn
keyword pythonBuiltin range raw_input reduce reload repr reversed round
syn
keyword pythonBuiltin
set
setattr slice sorted staticmethod str sum
syn
keyword pythonBuiltin super tuple type unichr unicode vars xrange zip
syn
keyword pythonBuiltin super trunc tuple type unichr unicode vars xrange
syn
keyword pythonBuiltin zip
endif
...
...
Misc/Vim/syntax_test.py
View file @
e0531a9c
...
...
@@ -4,9 +4,8 @@ Meant to cover a wide range of different types of statements and expressions.
Not necessarily sensical or comprehensive (assume that if one exception is
highlighted that all are, for instance).
Highlighting extraneous whitespace at the end of the line is not represented
here as all trailing whitespace is automatically removed from .py files in the
repository.
Extraneous trailing whitespace can't be tested because of svn pre-commit hook
checks for such things.
"""
# Comment
...
...
Misc/Vim/vim_syntax.py
View file @
e0531a9c
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment