Skip to content
Snippets Groups Projects
Commit 5161915d authored by Erik Welander's avatar Erik Welander Committed by GitHub
Browse files

[powershell mode] Fix exception with @ on EOL

parent b86bb0a7
No related branches found
No related tags found
No related merge requests found
......@@ -222,6 +222,8 @@ CodeMirror.defineMode('powershell', function() {
state.tokenize = tokenMultiString;
state.startQuote = quoteMatch[0];
return tokenMultiString(stream, state);
} else if (stream.eol()) {
return 'error';
} else if (stream.peek().match(/[({]/)) {
return 'punctuation';
} else if (stream.peek().match(varNames)) {
......
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