| 1 |
# Test keywords are identified |
| 2 |
|
| 3 |
---input--- |
| 4 |
mutable struct MutableType end |
| 5 |
struct ImmutableType end |
| 6 |
abstract type AbstractMyType end |
| 7 |
primitive type MyPrimitive 32 end |
| 8 |
(abstract, mutable, type) = true, π, missing |
| 9 |
|
| 10 |
abstract type AbstractMyType end |
| 11 |
primitive type MyPrimitive 32 end |
| 12 |
mutable struct MutableType end |
| 13 |
|
| 14 |
---tokens--- |
| 15 |
'mutable' Keyword |
| 16 |
' ' Text.Whitespace |
| 17 |
'struct' Keyword |
| 18 |
' ' Text |
| 19 |
'MutableType' Keyword.Type |
| 20 |
' ' Text.Whitespace |
| 21 |
'end' Keyword |
| 22 |
'\n' Text.Whitespace |
| 23 |
|
| 24 |
'struct' Keyword |
| 25 |
' ' Text |
| 26 |
'ImmutableType' Keyword.Type |
| 27 |
' ' Text.Whitespace |
| 28 |
'end' Keyword |
| 29 |
'\n' Text.Whitespace |
| 30 |
|
| 31 |
'abstract' Keyword |
| 32 |
' ' Text.Whitespace |
| 33 |
'type' Keyword |
| 34 |
' ' Text |
| 35 |
'AbstractMyType' Keyword.Type |
| 36 |
' ' Text.Whitespace |
| 37 |
'end' Keyword |
| 38 |
'\n' Text.Whitespace |
| 39 |
|
| 40 |
'primitive' Keyword |
| 41 |
' ' Text.Whitespace |
| 42 |
'type' Keyword |
| 43 |
' ' Text |
| 44 |
'MyPrimitive' Keyword.Type |
| 45 |
' ' Text.Whitespace |
| 46 |
'32' Literal.Number.Integer |
| 47 |
' ' Text.Whitespace |
| 48 |
'end' Keyword |
| 49 |
'\n' Text.Whitespace |
| 50 |
|
| 51 |
'(' Punctuation |
| 52 |
'abstract' Name |
| 53 |
',' Punctuation |
| 54 |
' ' Text.Whitespace |
| 55 |
'mutable' Name |
| 56 |
',' Punctuation |
| 57 |
' ' Text.Whitespace |
| 58 |
'type' Name |
| 59 |
')' Punctuation |
| 60 |
' ' Text.Whitespace |
| 61 |
'=' Operator |
| 62 |
' ' Text.Whitespace |
| 63 |
'true' Name.Builtin |
| 64 |
',' Punctuation |
| 65 |
' ' Text.Whitespace |
| 66 |
'π' Name.Builtin |
| 67 |
',' Punctuation |
| 68 |
' ' Text.Whitespace |
| 69 |
'missing' Name.Builtin |
| 70 |
'\n' Text.Whitespace |
| 71 |
|
| 72 |
'\n' Text.Whitespace |
| 73 |
|
| 74 |
'abstract' Keyword |
| 75 |
' ' Text.Whitespace |
| 76 |
'type' Keyword |
| 77 |
' ' Text |
| 78 |
'AbstractMyType' Keyword.Type |
| 79 |
' ' Text.Whitespace |
| 80 |
'end' Keyword |
| 81 |
'\n' Text.Whitespace |
| 82 |
|
| 83 |
'primitive' Keyword |
| 84 |
' \t' Text.Whitespace |
| 85 |
'type' Keyword |
| 86 |
' ' Text |
| 87 |
'MyPrimitive' Keyword.Type |
| 88 |
' ' Text.Whitespace |
| 89 |
'32' Literal.Number.Integer |
| 90 |
' ' Text.Whitespace |
| 91 |
'end' Keyword |
| 92 |
'\n' Text.Whitespace |
| 93 |
|
| 94 |
'mutable' Keyword |
| 95 |
' ' Text.Whitespace |
| 96 |
'struct' Keyword |
| 97 |
' ' Text |
| 98 |
'MutableType' Keyword.Type |
| 99 |
' ' Text.Whitespace |
| 100 |
'end' Keyword |
| 101 |
'\n' Text.Whitespace |