Skip to content

Commit

Permalink
add class name rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Heigh Tech LLC authored and fjakobs committed Mar 21, 2011
1 parent 0d03b6d commit 20b6652
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/ace/mode/ruby_highlight_rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,10 @@ var RubyHighlightRules = function() {
regex : "[`](?:(?:\\\\.)|(?:[^'\\\\]))*?[`]"
}, {
token : "variable.instancce", // instance variable
regex : "@{1,2}(?:[a-zA-Z]|\d)+"
regex : "@{1,2}(?:[a-zA-Z_]|\d)+"
}, {
token : "variable.class", // class name
regex : "[A-Z](?:[a-zA-Z_]|\d)+"
}, {
token : "string", // symbol
regex : "[:](?:[a-zA-Z]|\d)+"
Expand Down

0 comments on commit 20b6652

Please sign in to comment.