dmajda/pegjs — Issue #71: inverted character set doesn't work
Author: michael314
Created: 2012-02-23 22:55:29+00:00
State: open

string
= '"' str:[^"]* '"' { return '"'+str.join("")+'"' }

Fails to parse "AB\"C"
error message is:
Expected [^"] but "C" found.

But "C" is not a quote, so it should match!

> Preceding the characters with ^ inverts the matched set (e.g. [^a-z] means “all character but lowercase letters”)