Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » Grammar for extension equal to a keyword
Grammar for extension equal to a keyword [message #1862628] Fri, 15 December 2023 16:00 Go to next message
Rémi Garcia is currently offline Rémi GarciaFriend
Messages: 3
Registered: April 2023
Junior Member
Hello,
I am currently implementing a grammar for files that have a ".if" extension. This is causing various issues in the generated files, where the "if" name causes various clashes. I renamed the grammar root not to be named "If" etc, but there are still clashes, based purely on the extension name.
Is there a specific way to work around this issue?

Thank you in advance,
Best regards,
Re: Grammar for extension equal to a keyword [message #1862630 is a reply to message #1862628] Fri, 15 December 2023 19:00 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14699
Registered: July 2009
Senior Member
hi, i cannot reproduce. can you please give more context

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Grammar for extension equal to a keyword [message #1862633 is a reply to message #1862630] Sat, 16 December 2023 10:11 Go to previous messageGo to next message
Rémi Garcia is currently offline Rémi GarciaFriend
Messages: 3
Registered: April 2023
Junior Member
As a matter of fact, I could not reproduce this issue with XText 2.33, while it was possible with 2.32. It might have been a mistake on my side, I will post again if I manage to reproduce it at some point.
Re: Grammar for extension equal to a keyword [message #1862660 is a reply to message #1862633] Tue, 19 December 2023 14:16 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7665
Registered: July 2009
Senior Member
You 'renamed'. In my experience, it is very difficult to successfully rename 100% of problem spellings; I suspect you missed one with Xtext 2.32. With Xtext 2.33 you presumably restarted so had no relic rename.
Previous Topic:Xtend versus Java Imports
Next Topic:How do I implement the "Find References" function?
Goto Forum:
  


Current Time: Mon Jul 22 17:23:13 GMT 2024

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

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

Back to the top