Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Xtext external character as part of terminal rule?(Xtext external character as part of terminal rule?)
Xtext external character as part of terminal rule? [message #1738273] Mon, 18 July 2016 15:08 Go to next message
Sachin Samaram is currently offline Sachin SamaramFriend
Messages: 271
Registered: April 2016
Senior Member
Hi,

I have to show content assist on enter '_' (underscore). So I removed '_' from Terminal rule ID to work content assist on typing 'sm_'. Now the varibales with '_' e.g. test_name is showing error. Is there any way to add '_' score to these rules ?
Re: Xtext external character as part of terminal rule? [message #1738290 is a reply to message #1738273] Mon, 18 July 2016 16:45 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14652
Registered: July 2009
Senior Member
Sachin Samaram <forums-noreply@xxxxxxxx> wrote:
> Hi,
>
> I have to show content assist on enter '_' (underscore). So I removed '_'
> from Terminal rule ID to work content assist on typing 'sm_'. Now the
> varibales with '_' e.g. test_name is showing error. Is there any way to
> add '_' score to these rules ?
>

MyID : (ID | '_')+;

Btw did you have a look at the prefix in the content assist and return
prefixyourproposal instead of yourproposal


Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Hint on how to implement dynamically enabled/disabled language features
Next Topic:Problem with ecore and the new generator
Goto Forum:
  


Current Time: Sat Feb 24 10:53:47 GMT 2024

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

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

Back to the top