Skip to content

Commit

Permalink
fix emmetio#396. Raise error when there is no matching quote. (emmeti…
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornix authored and ramya-rao-a committed Feb 1, 2017
1 parent 9b69864 commit 1d75a37
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/parser/css.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ define(function(require, exports, module) {
// end of line with no \ escape = bad
raiseError("Unterminated string");
}
} else if (c === '') {
raiseError("Unterminated string");
} else {
if (c === "\\") {
token += c + w.nextChar();
Expand Down

0 comments on commit 1d75a37

Please sign in to comment.