mirror of
https://github.com/python/cpython.git
synced 2024-11-28 16:45:42 +01:00
a4fe18227d
Just symlink or copy python.vim to ~/.vim/syntax/ . Also included is a sample Python file with basic expressions to make sure they are highlighted. Also add a Vim directory in Misc to hold all Vim configuration files.
37 lines
605 B
Python
37 lines
605 B
Python
"""Test file for syntax highlighting of editors.
|
|
|
|
Meant to cover a wide range of different types of statements and expressions.
|
|
Not necessarily sensical.
|
|
|
|
"""
|
|
assert True
|
|
def foo(): pass
|
|
foo() # Uncoloured
|
|
while False: pass
|
|
1 and 2
|
|
if False: pass
|
|
from sys import path
|
|
# Comment
|
|
# XXX catch your attention
|
|
'single-quote', u'unicode'
|
|
"double-quote"
|
|
"""triple double-quote"""
|
|
'''triple single-quote'''
|
|
r'raw'
|
|
ur'unicode raw'
|
|
'escape\n'
|
|
'\04' # octal
|
|
'\xFF' # hex
|
|
'\u1111' # unicode character
|
|
1
|
|
1L
|
|
1.0
|
|
.1
|
|
1+2j
|
|
[] # Uncoloured
|
|
{} # Uncoloured
|
|
() # Uncoloured
|
|
all
|
|
GeneratorExit
|
|
trailing_whitespace = path
|