mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 05:22:23 +00:00
57 lines
1.2 KiB
Plaintext
57 lines
1.2 KiB
Plaintext
# Test that macros are parsed, including ones which are defined as symbols
|
|
|
|
---input---
|
|
@generated function
|
|
@. a + b
|
|
@~ a + b
|
|
@± a + b
|
|
@mymacro(a, b)
|
|
@+¹ᵀ a
|
|
|
|
---tokens---
|
|
'@generated' Name.Decorator
|
|
' ' Text.Whitespace
|
|
'function' Keyword
|
|
'\n' Text.Whitespace
|
|
|
|
'@.' Name.Decorator
|
|
' ' Text.Whitespace
|
|
'a' Name
|
|
' ' Text.Whitespace
|
|
'+' Operator
|
|
' ' Text.Whitespace
|
|
'b' Name
|
|
'\n' Text.Whitespace
|
|
|
|
'@~' Name.Decorator
|
|
' ' Text.Whitespace
|
|
'a' Name
|
|
' ' Text.Whitespace
|
|
'+' Operator
|
|
' ' Text.Whitespace
|
|
'b' Name
|
|
'\n' Text.Whitespace
|
|
|
|
'@±' Name.Decorator
|
|
' ' Text.Whitespace
|
|
'a' Name
|
|
' ' Text.Whitespace
|
|
'+' Operator
|
|
' ' Text.Whitespace
|
|
'b' Name
|
|
'\n' Text.Whitespace
|
|
|
|
'@mymacro' Name.Decorator
|
|
'(' Punctuation
|
|
'a' Name
|
|
',' Punctuation
|
|
' ' Text.Whitespace
|
|
'b' Name
|
|
')' Punctuation
|
|
'\n' Text.Whitespace
|
|
|
|
'@+¹ᵀ' Name.Decorator
|
|
' ' Text.Whitespace
|
|
'a' Name
|
|
'\n' Text.Whitespace
|