Have some ways to match a c struct use rg? #2410
-
like something : typedef A{
int bl;
}B; I tried -U option but still not matched multi-line... |
Beta Was this translation helpful? Give feedback.
Answered by
BurntSushi
Feb 7, 2023
Replies: 1 comment
-
When asking a question and say "I tried ..." but don't actually elaborate on what you tried, it makes answering the question much harder. In any case, this will match the specific input you gave:
But of course, this is not going to match any |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Lerr1uqs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When asking a question and say "I tried ..." but don't actually elaborate on what you tried, it makes answering the question much harder.
In any case, this will match the specific input you gave:
But of course, this is not going to match any
typedef
. Just the one you gave and ones very similar to it.