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

[sas mode] Fix tokenizing of empty strings

Closes #4178
parent 4f70169d
No related branches found
No related tags found
No related merge requests found
......@@ -137,10 +137,9 @@
stream.next();
return 'comment';
}
} else if (!state.continueString && (ch === '"' || ch === "'")) {
// Have we found a string?
state.continueString = ch; //save the matching quote in the state
return "string";
} else if (ch === '"' || ch === "'") {
state.continueString = state.continueString == ch ? null : ch
return "string"
} else if (state.continueString !== null) {
if (stream.skipTo(state.continueString)) {
// quote found on this line
......
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