We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40d9f27 commit f373ea2Copy full SHA for f373ea2
src/tokenizer/tokenizer.ts
@@ -157,7 +157,9 @@ export class Tokenizer {
157
}
158
159
this.tokenText += script[this._cursor];
160
- if (this._cursor + 1 >= script.length) break;
+ if (this._cursor + 1 >= script.length) {
161
+ throw new Error(`Line ${this._startLine}: End of string missing.`);
162
+ }
163
164
165
//start column needs to take into account a begining quote, not just a string
0 commit comments