summaryrefslogtreecommitdiff
path: root/tests/lexers/java/example.txt
blob: 486ad3e2a7916a7d07a0ca2293cacb242f37ad55 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
---input---
// this used to take ages
void foo() throws xxxxxxxxxxxxxxxxxxxxxx{ }

---tokens---
'// this used to take ages\n' Comment.Single

'void'        Keyword.Type
' '           Text
'foo'         Name.Function
'('           Punctuation
')'           Punctuation
' '           Text
'throws'      Keyword.Declaration
' '           Text
'xxxxxxxxxxxxxxxxxxxxxx' Name
'{'           Punctuation
' '           Text
'}'           Punctuation
'\n'          Text