Skip to content
Snippets Groups Projects
Commit 6d564415 authored by Marijn Haverbeke's avatar Marijn Haverbeke
Browse files

[coffeescript mode] Stop highlighting .keyword (.on/.off/.in) as error

Closes #1779
parent 2e28aa32
No related branches found
No related tags found
No related merge requests found
......@@ -259,7 +259,7 @@ CodeMirror.defineMode('coffeescript', function(conf) {
if (current === '.') {
style = state.tokenize(stream, state);
current = stream.current();
if (style === 'variable') {
if (/^\.[\w$]+$/.test(current)) {
return 'variable';
} else {
return ERRORCLASS;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment