To use this language, use the class "language-ruby".
# This is a comment
=begin
Multi-line
comment
=end
"foo \"bar\" baz"
'foo \'bar\' baz'
/foo?[ ]*bar/
$foo = 5;
class InstTest
def set_foo(n)
@foo = n
end
def set_bar(n)
@bar = n
end
end
mystring = :steveT;
"foo #{'bar'+my_variable}"
There are certain edge cases where Prism will fail. There are always such cases in every regex-based syntax highlighter. However, Prism dares to be open and honest about them. If a failure is listed here, it doesn’t mean it will never be fixed. This is more of a “known bugs” list, just with a certain type of bug.
#{my_var}
=begin
************************
This is a comment block
************************
=end