mirror of
https://github.com/ralsina/tartrazine.git
synced 2024-11-10 13:32:24 +00:00
102 lines
2.3 KiB
Plaintext
102 lines
2.3 KiB
Plaintext
|
# Test keywords are identified
|
||
|
|
||
|
---input---
|
||
|
mutable struct MutableType end
|
||
|
struct ImmutableType end
|
||
|
abstract type AbstractMyType end
|
||
|
primitive type MyPrimitive 32 end
|
||
|
(abstract, mutable, type) = true, π, missing
|
||
|
|
||
|
abstract type AbstractMyType end
|
||
|
primitive type MyPrimitive 32 end
|
||
|
mutable struct MutableType end
|
||
|
|
||
|
---tokens---
|
||
|
'mutable' Keyword
|
||
|
' ' Text.Whitespace
|
||
|
'struct' Keyword
|
||
|
' ' Text
|
||
|
'MutableType' Keyword.Type
|
||
|
' ' Text.Whitespace
|
||
|
'end' Keyword
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'struct' Keyword
|
||
|
' ' Text
|
||
|
'ImmutableType' Keyword.Type
|
||
|
' ' Text.Whitespace
|
||
|
'end' Keyword
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'abstract' Keyword
|
||
|
' ' Text.Whitespace
|
||
|
'type' Keyword
|
||
|
' ' Text
|
||
|
'AbstractMyType' Keyword.Type
|
||
|
' ' Text.Whitespace
|
||
|
'end' Keyword
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'primitive' Keyword
|
||
|
' ' Text.Whitespace
|
||
|
'type' Keyword
|
||
|
' ' Text
|
||
|
'MyPrimitive' Keyword.Type
|
||
|
' ' Text.Whitespace
|
||
|
'32' Literal.Number.Integer
|
||
|
' ' Text.Whitespace
|
||
|
'end' Keyword
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'(' Punctuation
|
||
|
'abstract' Name
|
||
|
',' Punctuation
|
||
|
' ' Text.Whitespace
|
||
|
'mutable' Name
|
||
|
',' Punctuation
|
||
|
' ' Text.Whitespace
|
||
|
'type' Name
|
||
|
')' Punctuation
|
||
|
' ' Text.Whitespace
|
||
|
'=' Operator
|
||
|
' ' Text.Whitespace
|
||
|
'true' Name.Builtin
|
||
|
',' Punctuation
|
||
|
' ' Text.Whitespace
|
||
|
'π' Name.Builtin
|
||
|
',' Punctuation
|
||
|
' ' Text.Whitespace
|
||
|
'missing' Name.Builtin
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'abstract' Keyword
|
||
|
' ' Text.Whitespace
|
||
|
'type' Keyword
|
||
|
' ' Text
|
||
|
'AbstractMyType' Keyword.Type
|
||
|
' ' Text.Whitespace
|
||
|
'end' Keyword
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'primitive' Keyword
|
||
|
' \t' Text.Whitespace
|
||
|
'type' Keyword
|
||
|
' ' Text
|
||
|
'MyPrimitive' Keyword.Type
|
||
|
' ' Text.Whitespace
|
||
|
'32' Literal.Number.Integer
|
||
|
' ' Text.Whitespace
|
||
|
'end' Keyword
|
||
|
'\n' Text.Whitespace
|
||
|
|
||
|
'mutable' Keyword
|
||
|
' ' Text.Whitespace
|
||
|
'struct' Keyword
|
||
|
' ' Text
|
||
|
'MutableType' Keyword.Type
|
||
|
' ' Text.Whitespace
|
||
|
'end' Keyword
|
||
|
'\n' Text.Whitespace
|