Fix braced variables not parsing correctly
Created by: huntergoldstein
At some point in the history of StatementSplitter
it started rejecting braced variables such as ${foo}
. While working on #262 (closed) I noticed this.
The problem was that the first case, which catches any character that cannot be in a braced variable, also threw an error for a brace, even though that might be the valid end of a braced variable.