diff --git a/src/js/layouts.js b/src/js/layouts.js index 50ff8427a..7cbfb3144 100644 --- a/src/js/layouts.js +++ b/src/js/layouts.js @@ -301,7 +301,7 @@ const layouts = { "`~", "1!", "2@", "3#", "4$", "5%", "6^", "7&", "8*", "9(", "0)", "-_", "=+", "yY", "cC", "lL", "mM", "kK", "zZ", "fF", "uU", ",<", "'\"", "[{", "]}", "\\|", "iI", "sS", "rR", "tT", "gG", "pP", "nN", "eE", "aA", "oO", ";:", - "\\|", "vV", "wW", "dD", "jJ", "qQ", "bB", "hH", "/?", ".>", "xX", + "\\|", "qQ", "vV", "wW", "dD", "jJ", "bB", "hH", "/?", ".>", "xX", " " ], }, diff --git a/static/languages/_groups.json b/static/languages/_groups.json index c0b260121..1d88a349e 100644 --- a/static/languages/_groups.json +++ b/static/languages/_groups.json @@ -163,7 +163,8 @@ "code_html", "code_java", "code_go", - "code_rust" + "code_rust", + "code_ruby" ] }, { diff --git a/static/languages/_list.json b/static/languages/_list.json index b2ef6dd30..9b707d600 100644 --- a/static/languages/_list.json +++ b/static/languages/_list.json @@ -91,4 +91,5 @@ ,"code_java" ,"code_go" ,"code_rust" + ,"code_ruby" ] diff --git a/static/languages/code_ruby.json b/static/languages/code_ruby.json new file mode 100644 index 000000000..12c03003d --- /dev/null +++ b/static/languages/code_ruby.json @@ -0,0 +1,124 @@ +{ + "name": "code_ruby", + "leftToRight": true, + "words": [ + "BEGIN", + "class", + "ensure", + "nil", + "self", + "when", + "END", + "def", + "false", + "not", + "super", + "while", + "alias", + "defined?", + "for", + "or", + "then", + "yield", + "and", + "do", + "if", + "redo", + "true", + "__LINE__", + "begin", + "else", + "in", + "rescue", + "undef", + "__FILE__", + "break", + "elsif", + "module", + "retry", + "unless", + "__ENCODING__", + "case", + "end", + "next", + "return", + "until", + "BasicObject", + "Object", + "ARGF.class", + "Array", + "Binding", + "Dir", + "Encoding", + "Encoding::Converter", + "Enumerator", + "Enumerator::ArithmeticSequence", + "Enumerator::Chain", + "Enumerator::Lazy", + "Enumerator::Yielder", + "FalseClass", + "Fiber", + "File::Stat", + "Hash", + "IO", + "File", + "MatchData", + "Method", + "Module", + "Class", + "NilClass", + "Numeric", + "Complex", + "Float", + "Integer", + "Rational", + "ObjectSpace::WeakMap", + "Proc", + "Process::Status", + "Random", + "Range", + "Regexp", + "RubyVM", + "RubyVM::AbstractSyntaxTree::Node", + "RubyVM::InstructionSequence", + "String", + "Struct", + "Process::Tms", + "Symbol", + "Thread", + "Thread::Backtrace::Location", + "Thread::ConditionVariable", + "Thread::Mutex", + "Thread::Queue", + "Thread::SizedQueue", + "ThreadGroup", + "Time", + "TracePoint", + "TrueClass", + "UnboundMethod", + "Comparable", + "Enumerable", + "Errno", + "File::Constants", + "FileTest", + "GC", + "GC::Profiler", + "IO::WaitReadable", + "IO::WaitWritable", + "Kernel", + "Marshal", + "Math", + "ObjectSpace", + "Process", + "Process::GID", + "Process::Sys", + "Process::UID", + "RubyVM::AbstractSyntaxTree", + "RubyVM::MJIT", + "Signal", + "Warning", + "ARGF", + "ENV", + "main" + ] +}