summaryrefslogtreecommitdiffstats
path: root/Misc/Vim/syntax_test.py
blob: 67b3199f5d351949b927618042fe5894b1e6e54b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
"""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