Requiring a declaration to end with newline #1179
-
Hi there, I'm tweaking my grammar and want to ensure some of the declarations end with a new line to avoid confusion, but I'm unsure what's the proper way to do this. It seems that if I make "\n" a terminal, I have to exclude it from Is there an easy solution to this? Basically, in the context of the tutorial example, I want to disallow:
It sounds like the recommendation is to Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Right, the simplest and most robust solution is probably to handle this in validation. That also makes it easier to provide a helpful error message and a quick-fix code action. |
Beta Was this translation helpful? Give feedback.
Right, the simplest and most robust solution is probably to handle this in validation. That also makes it easier to provide a helpful error message and a quick-fix code action.