blob: ff533c2c7b1ada0a14cb1a61438f1eff886d6a66 (
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
|
# Tests that a cls token gets interpreted as a Token.Name.Builtin.Pseudo
---input---
class TestClass():
@classmethod
def hello(cls):
pass
---tokens---
'class' Keyword
' ' Text
'TestClass' Name.Class
'(' Punctuation
')' Punctuation
':' Punctuation
'\n' Text.Whitespace
' ' Text
'@classmethod' Name.Decorator
'\n' Text.Whitespace
' ' Text
'def' Keyword
' ' Text
'hello' Name.Function
'(' Punctuation
'cls' Name.Builtin.Pseudo
')' Punctuation
':' Punctuation
'\n' Text.Whitespace
' ' Text
'pass' Keyword
'\n' Text.Whitespace
|