Xtext keyword problem [message #1735890] |
Thu, 23 June 2016 12:56  |
Eclipse User |
|
|
|
Hi,
I have statement like :
Receive returns Statement: {Statement} 'receive' ('bundle' (bundleName+=JPLID|STRING))? 'keep'? 'data' (exp+=Expression (','? exp+=Expression)*)?;
Whenever I use 'data' as some variable it is showing like keyword though it is not preceded by 'receive'. Is there any way to not validate keywords if there are not starting with starting of the statement.
|
|
|
Re: Xtext keyword problem [message #1735894 is a reply to message #1735890] |
Thu, 23 June 2016 13:01  |
Eclipse User |
|
|
|
is this a highlighting problem or a parsing problem. i asume this is a parsing problem
the only way is the same way we discussed before:
- use a manual lexer
- use a datatype rule
MyID : ID | 'keyword';
|
|
|
Powered by
FUDForum. Page generated in 0.03170 seconds