Skip to content

Accessing the current lexer mode in a custom error message #2078

Answered by msujew
nk-coding asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @nk-coding,

as far as I'm aware, the lexer does not expose the current mode to the ILexerErrorMessageProvider in any way. Since the lexer mode also isn't a property of the lexer itself, but a local variable of the tokenize method, I don't think there's a way to retrieve the value.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by nk-coding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants