This repository has been archived on 2024-06-20. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
coffee.pygments/tests/snippets/julia/test_keywords.txt
2022-01-06 18:34:29 +01:00

101 lines
2.3 KiB
Text

# 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