Multiple relation requirements #1992
-
Is there a way to require two relational rules? For example, I want to say "immediately before a rule:
precedes:
- pattern: ','
- any:
- kind: string_literal
- kind: char_literal
stopBy:
matches: an-argument |
Beta Was this translation helpful? Give feedback.
Answered by
HerringtonDarkholme
May 15, 2025
Replies: 1 comment 2 replies
-
This works, but is kind of repetitive (I only have a few "stop at" tokens that are interesting, but if there were a dozen…): rule:
precedes:
any:
- kind: string_literal
follows:
pattern: ','
- kind: char_literal
follows:
pattern: ','
stopBy:
matches: an-argument |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
how about this?