summaryrefslogtreecommitdiff
path: root/tests/lexers/fortran/example2.txt
blob: 988f6bddda3afd072051e45445cfea17c9093827 (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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---input---
program main
  integer, parameter :: mykind = selected_real_kind()
  print *, 1
  print *, 1_mykind
  print *, 1.
  print *, 1._mykind
  print *, (1., 1._mykind)
end program main

---tokens---
'program '    Keyword
'main'        Name
'\n  '        Text
'integer'     Keyword.Type
','           Punctuation
' '           Text
'parameter'   Keyword
' '           Text
'::'          Keyword.Declaration
' '           Text
'mykind'      Name
' '           Text
'='           Operator
' '           Text
'selected_real_kind' Name.Builtin
'('           Punctuation
')'           Punctuation
'\n  '        Text
'print'       Keyword
' '           Text
'*'           Operator
','           Punctuation
' '           Text
'1'           Literal.Number.Integer
'\n  '        Text
'print'       Keyword
' '           Text
'*'           Operator
','           Punctuation
' '           Text
'1_mykind'    Literal.Number.Integer
'\n  '        Text
'print'       Keyword
' '           Text
'*'           Operator
','           Punctuation
' '           Text
'1.'          Literal.Number.Float
'\n  '        Text
'print'       Keyword
' '           Text
'*'           Operator
','           Punctuation
' '           Text
'1._mykind'   Literal.Number.Float
'\n  '        Text
'print'       Keyword
' '           Text
'*'           Operator
','           Punctuation
' '           Text
'('           Punctuation
'1.'          Literal.Number.Float
','           Punctuation
' '           Text
'1._mykind'   Literal.Number.Float
')'           Punctuation
'\n'          Text

'end '        Keyword
'program '    Keyword
'main'        Name
'\n'          Text