mirror of
https://github.com/ralsina/tartrazine.git
synced 2025-06-19 22:53:05 -03:00
Reorganize tests into a real spec suite
This commit is contained in:
32
spec/tests/c/test_label_space_before_colon.txt
Normal file
32
spec/tests/c/test_label_space_before_colon.txt
Normal file
@ -0,0 +1,32 @@
|
||||
---input---
|
||||
int main()
|
||||
{
|
||||
foo :
|
||||
goto foo;
|
||||
}
|
||||
|
||||
---tokens---
|
||||
'int' Keyword.Type
|
||||
' ' Text.Whitespace
|
||||
'main' Name.Function
|
||||
'(' Punctuation
|
||||
')' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'{' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'foo' Name.Label
|
||||
' ' Text.Whitespace
|
||||
':' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
' ' Text.Whitespace
|
||||
'goto' Keyword
|
||||
' ' Text.Whitespace
|
||||
'foo' Name
|
||||
';' Punctuation
|
||||
'\n' Text.Whitespace
|
||||
|
||||
'}' Punctuation
|
||||
'\n' Text.Whitespace
|
Reference in New Issue
Block a user