ninja-ide/ninja-ide — Issue #109: Add Ruby support. Please!
Author: dim
Created: 2011-12-17 15:49:25+00:00
State: open

I just tried Ninja IDE and it's certainly looking BRILLIANT!!! I would instantly start using it if it provided Ruby support. There are lots of Ruby developers I know who are fed up with their IDEs and are seeking for an alternative. I think there is great opportunity for Ninja here!!!

I would also like to make a contribution. Here's a syntax highlighter, for a start:

# ruby.json
{
"comment": [
"#"
],
"multiline_comment": {
"open": "=begin",
"close": "=end"
},
"extension": [
"rb", "ru", "rjs", "Gemfile", "Rakefile"
],
"definition": [
"def",
"class",
"module"
],
"string": [
"'",
"\""
],
"properObject": [
"self"
],
"operators": [
"=",
"==",
"!=",
"<",
"<=",
">",
">=",
"\\+",
"-",
"\\*",
"/",
"//",
"\\%",
"\\*\\*",
"\\+=",
"-=",
"\\*=",
"/=",
"\\%=",
"\\&=",
"\\|\\|=",
"\\^",
"\\|",
"\\&",
"\\~",
">>",
"<<"
],
"keywords": [
"BEGIN",
"END",
"alias",
"and",
"begin",
"break",
"case",
"catch",
"class",
"continue",
"def",
"defined?",
"do",
"end",
"elsif",
"else",
"ensure",
"exit",
"extend",
"false",
"for",
"if",
"in",
"include",
"lambda",
"next",
"nil",
"not",
"or",
"pass",
"print",
"protected",
"private",
"public",
"puts",
"raise",
"redo",
"return",
"require",
"rescue",
"retry",
"super",
"then",
"throw",
"true",
"try",
"undef",
"unless",
"until",
"while",
"yield"
],
"regex": [
["(\\s)*\\:(\\w)+", "string", "bold"]
]
}