-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Should probably allow comma at end? #64
Comments
hmm. not doing it now. |
Wait...yes it is. |
This change seems to work, not sure it doesn't break something else though? identifier() {
var ret = "";
while (true) {
var c = this.peek();
if ((c >= 'a' && c <= 'z') ||
(c >= 'A' && c <= 'Z') ||
(c >= '0' && c <= '9') || c == '_' || c == ':' ||
/* allow StylePtr<.....>(), ending that has a trailing comma */
(c == ")" && this.peek2() == ",")) {
ret += c;
this.pos++;
} else {
return ret;
}
}
} |
I can't make heads or tails of this. Sometimes it seems to work, sometimes not. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think a majority of copy/paste from config files will include a trailing comma like
>(),
This currently is allowed to be submitted and works, but throws an error "Expected identifier or number"
It goes away of course once clicking the right side structured view and the StylePtr<>() gets stripped.
The text was updated successfully, but these errors were encountered: