summaryrefslogtreecommitdiff
path: root/tests/lexers/golo/example.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lexers/golo/example.txt')
-rw-r--r--tests/lexers/golo/example.txt39
1 files changed, 39 insertions, 0 deletions
diff --git a/tests/lexers/golo/example.txt b/tests/lexers/golo/example.txt
new file mode 100644
index 00000000..3a30a8ab
--- /dev/null
+++ b/tests/lexers/golo/example.txt
@@ -0,0 +1,39 @@
+---input---
+module hello.World
+
+function main = |args| {
+ println("Hello world!")
+}
+
+---tokens---
+'module' Keyword.Namespace
+' ' Text
+'hello.World' Name.Namespace
+'\n' Text
+
+'\n' Text
+
+'function' Keyword.Declaration
+' ' Text
+'main' Name.Function
+' ' Text
+'=' Operator
+' ' Text
+'|' Punctuation
+'args' Name
+'|' Punctuation
+' ' Text
+'{' Punctuation
+'\n' Text
+
+' ' Text
+'println' Name.Builtin
+'(' Punctuation
+'"' Literal.String
+'Hello world!' Literal.String
+'"' Literal.String.Double
+')' Punctuation
+'\n' Text
+
+'}' Punctuation
+'\n' Text