aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexilla/test/examples/python/AllStyles.py
blob: a93df7500851d83dc003ded646a287b9478b5af8 (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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Enumerate all styles: 0 to 19
# comment=1

# whitespace=0
	# w

# number=2
37

# double-quoted-string=3
"str"

# single-quoted-string=4
'str'

# keyword=5
pass

# triple-quoted-string=6
'''str'''

# triple-double-quoted-string=7
"""str"""

# class-name=8
class ClassName:
	pass

# function-name=9
def function_name():
	pass

# operator=10
1 + 3

# identifier=11
identifier = 2

# comment-block=12
## block

# unclosed-string=13
" unclosed

# highlighted-identifier=14
hilight = 2

# decorator=15
@staticmethod
def fn(): pass

a = 1
# double-quoted-f-string=16
f"{a}"

# single-quoted-f-string=17
f'{a}'

# triple-quoted-f-string=18
f'''{a}'''

# double-triple-quoted-f-string=19
f"""{a}"""