mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 13:32:24 +00:00
35 lines
726 B
Plaintext
35 lines
726 B
Plaintext
|
# 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
|