Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Syntax Highlighting for One Particular keyword(Syntax Highlighting for One Particular keyword)
Syntax Highlighting for One Particular keyword [message #1729936] Wed, 20 April 2016 11:07 Go to next message
RamaRao Nandamuri is currently offline RamaRao NandamuriFriend
Messages: 120
Registered: April 2016
Senior Member
Hi,

I have a parser rule:

HashCode: '#' ID

I want to write a syntax like #test

But I don't know '#' not highlighted why?

I want to show it in green color as comment but I don't want it in terminal SL_COMMENT. what should I do?
Re: Syntax Highlighting for One Particular keyword [message #1729941 is a reply to message #1729936] Wed, 20 April 2016 12:01 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 13219
Registered: July 2009
Senior Member
have a look at DefaultAntlrTokenToAttributeIdMapper

Need professional support for Xtext, Xpand, EMF?
Go to: https://www.itemis.com/en/xtext/
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:Xtext dynamic content assist without typing ctrl+space
Next Topic:How to add underline to my textStyle
Goto Forum:
  


Current Time: Fri Nov 22 02:07:08 GMT 2019

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

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

Back to the top