aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexilla/test/examples/ruby
diff options
context:
space:
mode:
Diffstat (limited to 'lexilla/test/examples/ruby')
-rw-r--r--lexilla/test/examples/ruby/SciTE.properties2
-rw-r--r--lexilla/test/examples/ruby/x.rb6
-rw-r--r--lexilla/test/examples/ruby/x.rb.styled6
3 files changed, 14 insertions, 0 deletions
diff --git a/lexilla/test/examples/ruby/SciTE.properties b/lexilla/test/examples/ruby/SciTE.properties
new file mode 100644
index 000000000..a4be7e9c6
--- /dev/null
+++ b/lexilla/test/examples/ruby/SciTE.properties
@@ -0,0 +1,2 @@
+lexer.*.rb=ruby
+keywords.*.rb=class def end
diff --git a/lexilla/test/examples/ruby/x.rb b/lexilla/test/examples/ruby/x.rb
new file mode 100644
index 000000000..d1bb0f0a8
--- /dev/null
+++ b/lexilla/test/examples/ruby/x.rb
@@ -0,0 +1,6 @@
+class Demo
+ def test # A test
+ i = 1
+ puts "Example"
+ end
+end \ No newline at end of file
diff --git a/lexilla/test/examples/ruby/x.rb.styled b/lexilla/test/examples/ruby/x.rb.styled
new file mode 100644
index 000000000..904d07dd3
--- /dev/null
+++ b/lexilla/test/examples/ruby/x.rb.styled
@@ -0,0 +1,6 @@
+{5}class{0} {8}Demo{0}
+ {5}def{0} {9}test{0} {2}# A test{0}
+ {11}i{0} {10}={0} {4}1{0}
+ {11}puts{0} {6}"Example"{0}
+ {5}end{0}
+{5}end \ No newline at end of file