I am looking for a rule in flex that handles the escaped newlines and gives me a token ignoring that newline.
Eg:
I have a rule in my lex specification like:
\"(\.|[^\"])*\"
to capture all the string literals. This does capture strings from code like:
Printf("This is literal")
but it doesn't give me the correct token if code is like:
printf("This is \
literal.")
What modification I can make to my lex spec to handle this situation?