| 1 |
# Tests that a cls token gets interpreted as a Token.Name.Builtin.Pseudo |
| 2 |
|
| 3 |
---input--- |
| 4 |
class TestClass(): |
| 5 |
@classmethod |
| 6 |
def hello(cls): |
| 7 |
pass |
| 8 |
|
| 9 |
---tokens--- |
| 10 |
'class' Keyword |
| 11 |
' ' Text.Whitespace |
| 12 |
'TestClass' Name.Class |
| 13 |
'(' Punctuation |
| 14 |
')' Punctuation |
| 15 |
':' Punctuation |
| 16 |
'\n' Text.Whitespace |
| 17 |
|
| 18 |
' ' Text |
| 19 |
'@classmethod' Name.Decorator |
| 20 |
'\n' Text.Whitespace |
| 21 |
|
| 22 |
' ' Text |
| 23 |
'def' Keyword |
| 24 |
' ' Text.Whitespace |
| 25 |
'hello' Name.Function |
| 26 |
'(' Punctuation |
| 27 |
'cls' Name.Builtin.Pseudo |
| 28 |
')' Punctuation |
| 29 |
':' Punctuation |
| 30 |
'\n' Text.Whitespace |
| 31 |
|
| 32 |
' ' Text |
| 33 |
'pass' Keyword |
| 34 |
'\n' Text.Whitespace |