Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix insanely slow compilation #18410
The issue is caused by too much ambiguity in the grammar, particularly the fact that semicolons aren't needed to separate statements.
Instead, just make the semicolon optional at the very end (in other words,
Thanks @jdconrad. I am sure this can be improved if we wish, e.g. to allow newlines too. But I think most users will not even have more than 1 line with painless because it works inline. It may be good enough to keep it simple like this. I will look into the other ambiguity...