summaryrefslogtreecommitdiff
path: root/tests/lexers/rb/example7.txt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lexers/rb/example7.txt')
-rw-r--r--tests/lexers/rb/example7.txt86
1 files changed, 86 insertions, 0 deletions
diff --git a/tests/lexers/rb/example7.txt b/tests/lexers/rb/example7.txt
new file mode 100644
index 00000000..7a0da905
--- /dev/null
+++ b/tests/lexers/rb/example7.txt
@@ -0,0 +1,86 @@
+---input---
+class (get_foo("blub"))::Foo
+ def (foo("bar") + bar("baz")).something argh, aaahaa
+ 42
+ end
+end
+
+class get_the_fuck("out")::Of::My
+ def parser_definition
+ ruby!
+ end
+end
+
+---tokens---
+'class' Keyword
+' ' Text
+'(' Punctuation
+'get_foo' Name
+'(' Operator
+'"' Literal.String.Double
+'blub' Literal.String.Double
+'"' Literal.String.Double
+')' Punctuation
+')' Punctuation
+'::' Operator
+'Foo' Name.Class
+'\n ' Text
+'def' Keyword
+' ' Text
+'(' Punctuation
+'foo' Name
+'(' Operator
+'"' Literal.String.Double
+'bar' Literal.String.Double
+'"' Literal.String.Double
+')' Punctuation
+' ' Text
+'+' Operator
+' ' Text
+'bar' Name
+'(' Operator
+'"' Literal.String.Double
+'baz' Literal.String.Double
+'"' Literal.String.Double
+')' Punctuation
+')' Punctuation
+'.' Operator
+'something' Name.Function
+' ' Text
+'argh' Name
+',' Punctuation
+' ' Text
+'aaahaa' Name
+'\n ' Text
+'42' Literal.Number.Integer
+'\n ' Text
+'end' Keyword
+'\n' Text
+
+'end' Keyword
+'\n\n' Text
+
+'class' Keyword
+' ' Text
+'get_the_fuck' Name
+'(' Punctuation
+'"' Literal.String.Double
+'out' Literal.String.Double
+'"' Literal.String.Double
+')' Punctuation
+'::' Operator
+'Of' Name.Constant
+'::' Operator
+'My' Name.Constant
+'\n ' Text
+'def' Keyword
+' ' Text
+'parser_definition' Name.Function
+'\n ' Text
+'ruby!' Name
+'\n ' Text
+'end' Keyword
+'\n' Text
+
+'end' Keyword
+'\n' Text