Closed pharmpy-dev-123 closed 1 year ago
Sorry I missed this question.
A _WS B
. Maybe you can also you regexp lookaheads ((?=)
and (?!)
syntax).@erezsh Thanks for your answer! Will the solution to 1 also work if we have both A _WS B
and %ignore WS
?
Yes, iirc it should work.
(but it should be %ignore _WS
)
Consider the following two scenarios:
token == source[token.start_pos:token.end_pos]
.Are there any known workarounds to these problems. Both seem to require some sort of custom lexer but just asking to make sure I am not overlooking some simple solution.