Replies: 2 comments 1 reply
-
Beta Was this translation helpful? Give feedback.
0 replies
-
I wouldn't change the syntax because a parser rule can be without assignment as well (unassigned rule call, see also #205). But using a special color using semantic tokens sounds good. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
It is a minor thing. When you use fragments, they do not distinguish from rule calls. So, when you review a grammar on first sight you think a naked rule call is missing an assignment... but actually it is a fragment call with assignments in it.
My proposal is to either highlight it with a special color, or to have a separate syntax, like
@fragmentName
.WDYT?
Beta Was this translation helpful? Give feedback.
All reactions