You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Unmatched ' (line 1, char 30)
at CSSOM.parse.parseError (/home/andreas/work/CSSOM/lib/parse.js:54:15)
at Object.parse (/home/andreas/work/CSSOM/lib/parse.js:101:6)
at repl:1:25
at REPLServer.self.eval (repl.js:109:21)
at Interface.<anonymous> (repl.js:248:12)
at Interface.EventEmitter.emit (events.js:96:17)
at Interface._onLine (readline.js:200:10)
at Interface._line (readline.js:518:8)
at Interface._ttyWrite (readline.js:736:14)
at ReadStream.onkeypress (readline.js:97:10)
It's caused by parse.js handling ( in a CSS value in a rather naive way: index is advanced to the first occurrence of ) regardless of whether that's inside a quoted string, eg. url('...)') or url("...)").
Output:
It's caused by
parse.js
handling(
in a CSS value in a rather naive way:index
is advanced to the first occurrence of)
regardless of whether that's inside a quoted string, eg.url('...)')
orurl("...)")
.The error occurs "in real life" with this file: https://github.com/ajaxorg/ace/blob/master/lib/ace/css/editor.css#L305
The text was updated successfully, but these errors were encountered: