summaryrefslogtreecommitdiff
path: root/tests/lexers/golo/example.txt
blob: 3a30a8ab3919f03ad46833cb28f012dab2c678b8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---input---
module hello.World

function main = |args| {
  println("Hello world!")
}

---tokens---
'module'      Keyword.Namespace
' '           Text
'hello.World' Name.Namespace
'\n'          Text

'\n'          Text

'function'    Keyword.Declaration
' '           Text
'main'        Name.Function
' '           Text
'='           Operator
' '           Text
'|'           Punctuation
'args'        Name
'|'           Punctuation
' '           Text
'{'           Punctuation
'\n'          Text

'  '          Text
'println'     Name.Builtin
'('           Punctuation
'"'           Literal.String
'Hello world!' Literal.String
'"'           Literal.String.Double
')'           Punctuation
'\n'          Text

'}'           Punctuation
'\n'          Text