Skip to content
Snippets Groups Projects
Commit 1520c653 authored by Ian Wehrman's avatar Ian Wehrman Committed by Marijn Haverbeke
Browse files

Prevent the latter part of hyphenated terms from being identified as attributes.

parent d1942cc0
No related branches found
No related tags found
No related merge requests found
......@@ -57,7 +57,7 @@ CodeMirror.defineMode('shell', function() {
return 'number';
}
}
stream.eatWhile(/\w/);
stream.eatWhile(/[\w-]/);
var cur = stream.current();
if (stream.peek() === '=' && /\w+/.test(cur)) return 'def';
return words.hasOwnProperty(cur) ? words[cur] : null;
......
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