I was wondering if the IntelliJ plugin supports previewing grammars that include semantic predicate conditions
I want to be able to support comments where there is an asterick in position 0, or anywhere on the line from '/*' to only the end of the line
my current rule is:
COMMENT:( '/*' .*? ([\r\n] | EOF)
| '*' .*? ([\r\n] | EOF) {getCharPositionInLine() == 0}?
)
-> channel(HIDDEN)
;
Does this seem correct? When paste my input into the preview window, I am not getting the expected results when the '*' comment moves away from position 0.
Thanks,
Raz