fix keyword lookup in the tokenizers

This commit is contained in:
Fabian Jakobs 2011-02-08 12:33:12 +01:00
commit 210dcaf4fd
7 changed files with 24 additions and 26 deletions

View file

@ -108,12 +108,10 @@ c_cppHighlightRules = function() {
token : function(value) {
if (value == "this")
return "variable.language";
else if (keywords[value])
else if (keywords.hasOwnProperty(value))
return "keyword";
else if (buildinConstants[value])
else if (buildinConstants.hasOwnProperty(value))
return "constant.language";
else if (value == "debugger")
return "invalid.deprecated";
else
return "identifier";
},