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
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
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
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
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';


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:port existing Eclipse Plugin to Intellij
Next Topic:change unordered Stategy in Xtext 2.10
Goto Forum:
  


Current Time: Sat Apr 20 02:03:25 GMT 2024

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

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

Back to the top