Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext keyword problem(Xtext keyword problem)
Xtext keyword problem [message #1735890] Thu, 23 June 2016 12:56 Go to next message
Eclipse UserFriend
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 Go to previous message
Eclipse UserFriend
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';
Previous Topic:port existing Eclipse Plugin to Intellij
Next Topic:change unordered Stategy in Xtext 2.10
Goto Forum:
  


Current Time: Sat Feb 08 14:09:58 GMT 2025

Powered by FUDForum. Page generated in 0.03170 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top