Correct instance-identifier escaping
Dealing with single-quoted and double-quoted strings in
instance-identifier differs quite a bit. In order to deal with these
strings, we need to differentiate them in lexer, for which we create
separate modes.
This forces us to explicitly define lexer lokens and only match raw
strings in their mode -- ensuring there are no surprises.
JIRA: YANGTOOLS-1458
Change-Id: I3f58c10f068da1128d8a7c1c5bed3917bfea0c78
Signed-off-by: Ruslan Kashapov <ruslan.kashapov@pantheon.tech>
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
45e8951a576c6bf2cb2bd0290167619b8be2fc5a)