Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » TMF (Xtext) » using non java style escaping in xtext eclipse editor
using non java style escaping in xtext eclipse editor [message #822247] Fri, 16 March 2012 11:03
joe simon is currently offline joe simonFriend
Messages: 1
Registered: March 2012
Junior Member
hi xtext experts,

i am new to xtext and still learning a lot of things.

my problem is

in my grammar i have a function that replaces strings in string (like the java replaceall function)

the grammar should work with "normal" regular expressions.
so in the eclipse editor and saved file no java escaping should exist.

example:

REPLACEALL("2012.03.16","\.","")
should then result in 20120316 but is invalid in the editor window

my problem with the eclipse xtext integration is that i cannot enter non java escaped strings in the editor

only
REPLACEALL("2012.03.16","\\.","")
is correct for the editor.

so is there a way for deactivating this behaviour (overwrite terminal def, or create a stringvalueconverter) or changing the save/loadfile behavior (converting escape sequences when loading/saving).

any hints/ideas/sollutions

regards
joe
Previous Topic:extending grammar: error in generated Semantic Sequencer?
Next Topic:Create own notice elements
Goto Forum:
  


Current Time: Sun Mar 29 19:57:07 GMT 2020

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

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

Back to the top