vendor/assets/javascripts/codemirror/modes/python.js in codemirror-rails-5.1 vs vendor/assets/javascripts/codemirror/modes/python.js in codemirror-rails-5.2
- old
+ new
@@ -160,18 +160,16 @@
// Handle operators and Delimiters
if (stream.match(tripleDelimiters) || stream.match(doubleDelimiters))
return null;
- if (stream.match(doubleOperators)
- || stream.match(singleOperators)
- || stream.match(wordOperators))
+ if (stream.match(doubleOperators) || stream.match(singleOperators))
return "operator";
if (stream.match(singleDelimiters))
return null;
- if (stream.match(keywords))
+ if (stream.match(keywords) || stream.match(wordOperators))
return "keyword";
if (stream.match(builtins))
return "builtin";