mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-07-18 17:29:37 +00:00
Imported test cases from pygments
This commit is contained in:
21
tests/rust/test_func.txt
Normal file
21
tests/rust/test_func.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
---input---
|
||||
fn func(x: u32) -> None {}
|
||||
|
||||
---tokens---
|
||||
'fn' Keyword
|
||||
' ' Text.Whitespace
|
||||
'func' Name.Function
|
||||
'(' Punctuation
|
||||
'x' Name
|
||||
':' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'u32' Keyword.Type
|
||||
')' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'->' Punctuation
|
||||
' ' Text.Whitespace
|
||||
'None' Name.Builtin
|
||||
' ' Text.Whitespace
|
||||
'{' Punctuation
|
||||
'}' Punctuation
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user