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/java/test_record.txt
2022-01-06 18:34:29 +01:00

67 lines
1.6 KiB
Text

---input---
public record RecordTest() {}
public static record RecordTest() {}
record Person(String firstName, String lastName) {}
String[] record = csvReader.getValues();
---tokens---
'public' Keyword.Declaration
' ' Text.Whitespace
'record' Keyword.Declaration
' ' Text
'RecordTest' Name.Class
'(' Punctuation
')' Punctuation
' ' Text.Whitespace
'{' Punctuation
'}' Punctuation
'\n' Text.Whitespace
'public' Keyword.Declaration
' ' Text.Whitespace
'static' Keyword.Declaration
' ' Text.Whitespace
'record' Keyword.Declaration
' ' Text
'RecordTest' Name.Class
'(' Punctuation
')' Punctuation
' ' Text.Whitespace
'{' Punctuation
'}' Punctuation
'\n' Text.Whitespace
'record' Keyword.Declaration
' ' Text
'Person' Name.Class
'(' Punctuation
'String' Name
' ' Text.Whitespace
'firstName' Name
',' Punctuation
' ' Text.Whitespace
'String' Name
' ' Text.Whitespace
'lastName' Name
')' Punctuation
' ' Text.Whitespace
'{' Punctuation
'}' Punctuation
'\n' Text.Whitespace
'String' Name
'[' Operator
']' Operator
' ' Text.Whitespace
'record' Name
' ' Text.Whitespace
'=' Operator
' ' Text.Whitespace
'csvReader' Name
'.' Punctuation
'getValues' Name.Attribute
'(' Punctuation
')' Punctuation
';' Punctuation
'\n' Text.Whitespace