Permalink
Browse files

[python mode] Also highlight the cls variable

Closes #2275
  • Loading branch information...
marijnh committed Feb 19, 2014
1 parent 9b53832 commit eb55df76403cb28e81df9ff3843c0201817bbd03
Showing with 1 addition and 1 deletion.
  1. +1 −1 mode/python/python.js
View
@@ -151,7 +151,7 @@ CodeMirror.defineMode("python", function(conf, parserConf) {
return 'builtin';
}
- if (stream.match(/^self\b/)) {
+ if (stream.match(/^(self|cls)\b/)) {
return "variable-2";
}

0 comments on commit eb55df7

Please sign in to comment.