Skip to main content



      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 11:00 Go to next message
Eclipse UserFriend
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 14:00 Go to previous messageGo to next message
Eclipse UserFriend
hi, i cannot reproduce. can you please give more context
Re: Grammar for extension equal to a keyword [message #1862633 is a reply to message #1862630] Sat, 16 December 2023 05:11 Go to previous messageGo to next message
Eclipse UserFriend
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 09:16 Go to previous message
Eclipse UserFriend
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: Sat Apr 26 21:07:46 EDT 2025

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

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

Back to the top