This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/snippets/julia/test_macros.txt
2022-01-06 18:34:29 +01:00

56 lines
1.2 KiB
Text

# 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