I have written a validation which works fine but I want to know how I can set the error marker(the red line drawn underneath the input) at the proper position.
The Problem is that the part of my grammar looks like that:
Declaration:
name = ID "=" singleContent=VarContent (OPERATOR nextCon+=VarContent)*
;
The validator now detects an error at a specififc element of nextCon so my question is how can I refer to that particular element so the error-functions knows where to draw the line.
The input I validate looks like that:
var = 3 * 4 + -var2
The "-" within var2 is wrong and therefore I want to highlight the error right there or highlight the complete "-var2" statement.
Greetings Krzmbrzl