add class name rule

This commit is contained in:
Heigh Tech LLC 2011-03-16 06:53:41 +08:00 • committed by Fabian Jakobs
commit 20b6652c5b

View file

@ -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)+"