summaryrefslogtreecommitdiff
path: root/tests/lexers/erlang/example.txt
blob: 0b2cda915697ca204fb11e482ba7063fba66f277 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
---input---
#!/usr/bin/env escript

main(_Args) ->
    ok.

---tokens---
'#!/usr/bin/env escript\n' Comment.Hashbang

'\n'          Text

'main'        Name.Function
'('           Punctuation
'_'           Punctuation
'Args'        Name.Variable
')'           Punctuation
' '           Text
'-'           Operator
'>'           Operator
'\n    '      Text
'ok'          Name
'.'           Punctuation
'\n'          Text