From 4f1b30ebe70a6475ffeca1ce2c0dc48c8e70a5f9 Mon Sep 17 00:00:00 2001 From: Neil Date: Sat, 14 Dec 2019 08:17:00 +1100 Subject: Lexilla tests. --- lexilla/test/examples/ruby/SciTE.properties | 2 ++ lexilla/test/examples/ruby/x.rb | 6 ++++++ lexilla/test/examples/ruby/x.rb.styled | 6 ++++++ 3 files changed, 14 insertions(+) create mode 100644 lexilla/test/examples/ruby/SciTE.properties create mode 100644 lexilla/test/examples/ruby/x.rb create mode 100644 lexilla/test/examples/ruby/x.rb.styled (limited to 'lexilla/test/examples/ruby') 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 -- cgit v1.2.3