Hidden tokens are replaced by a whitespace

Hi,
The attached folder contains 3 projects generated with Xtext that allows to have a reproducible example.
I have a short grammar that allows to write paragraphs delimited by begin and end. Comments should be accepted everywhere, that's why they are hidden.
grammar org.xtext.example.commentws.CommentWs
hidden(ML_COMMENT)
CwFile:
{CwFile}
elems+=Elem*;
Elem:
'begin' SEPARATOR content=ID SEPARATOR 'end' SEPARATOR;
SEPARATOR:
LINE_RETURN;
ID:
ALPHABETIC+ (WS+ ALPHABETIC+)*;
terminal ML_COMMENT:
'/*'->'*/';
terminal ALPHABETIC:
'a'..'z' | 'A'..'Z';
terminal WS:
' ' | '\t';
terminal LINE_RETURN:
'\r'? '\n';
Reproductible example
The `tests` module contain a unit test that should success.
The following element content field (Elem.content) should be "some text" but I got "so me text".
begin
so/* a comment that should be ignored */me text
end
Installation details
* Eclipse IDE for Java developers 4.4.2
* Xtext Complete SDK 2.8.1
Is there a way to change this behaviour? Should I make a bug report?

The value converter I should use is the result of a method call.
Is there a way to simply inject that or should I create a new class that implements IValueConverter and that uses an XtextValueConverters?

Similar Messages

  • MY system folder, including hidden folders are littered with duplicate folders and files with the suffix (from old Mac) How do I remove them

    I have a Macbook Pro running Leopard 10.5.8. I had a problem with my my operating system (my fault, I moved a file I shoudnt have) couldnt boot up but was able to boot up from a backup. I managed to repair my original system except now all the system folders, including hidden folders are littered with duplicate folders and files with the suffix (from old Mac).  For the most part the dupes are an exact copy, but not always.  I want to remove them to free up space and cant imagine duplicate folders in the /system/library are not hindering my computer. But I dont know where to start and am afraid of doing irreparable damage. Any ideas

    pacull,
    Use iCal>View>Show Notifications to choose what to do with the notification.

  • When I open Mail the screen flickers random blue and gray appeared on the screen. I took a video too. Will that happen again? Is it hardware problem? This ipad2 32GB was replaced yesterday and I think it is refurbished. Are replace product refurbished?

    I got my ipad2 replaced yesterday. And this new ipad started giving me problem by crashing aps. Then I restored the ipad twice but the problem was still there. I called apple and they fixed it by doing Reset All Settings. But now I have this weird problem. When I open Mail the screen flickers random blue and gray appeared on the screen. I took a video too. Will that happen again? Is it hardware problem? This ipad2 32GB was replaced yesterday and I think it is refurbished. Are replace product refurbished?

    There is no way for anyone here to know if your replacement iPad is a refurbished unit.  Per Apple's replacement policy, replacements can be refurbished units.  If you feel the unit is not working correctly, take it back, let them check it out and if found defective, they will replace that unit.

  • RFC call from portal to CRM - Special Characters are replaced

    Hi All,
    I am trying to call an RFC which gives the user information. I pass the portal username.
    Issue is when the user name has special characters 'ä'  are replaced by 'Ã#'.
    Iam using SAP CRM ABAP 7.0.
    Please let me know how to solved it.
    Thanks in advance..
    Thanks and Kind Regards,
    Basheer.

    Possibility is your one of the system is Unicode & other is non unicode.

  • Bug in Keychain. All characters are replaced by strange symbols...

    Hello,
    For 2 weeks, I have a problem with the Mac OS Keychain.
    All characters are replaced by strange symbols...
    To see the bug : http://nsa20.casimages.com/img/2010/12/03/101203090829665703.png
    (my system is in french)
    Do you know how to solve this problem, please ?
    Thanks...

    Not a keychain bug, but a font issue. Restart and boot into safe mode as described in http://support.apple.com/kb/HT1564?viewlocale=en_US (you might need the French version), then do a normal boot. Once that's finished, launch Font Book, select all fonts, validate them and resolve duplicates, and restart. That should fix all your font issue.

  • Asia/Pacific characters are replaced by the pound sign ("#")

    Having a problem sending e-mails and faxes from SAP (EH&S) that contain Asia/Pacific fonts.  The e-mails look good in SAP but in Outlook the Asia/Pacific characters are replaced by the pound sign ("#").

    System Preferences > Keyboard > Text. Click the + symbol to add a keyboard shortcut. Click in the left empty Replace text window and place GBP there. Tab, and enter option+# (£) in the With text input area. Click outside of this row to set the contents. Exit System Preferences.
    In the application where you wish to have this substitution performed for you, in the Edit menu > Substitutions submenu, select Text Replacement. Then when you type GBP, a floating panel will open below GBP with the pound sterling symbol — just press the spacebar.
    Another approach is to use the special character viewer from the bottom of the Edit menu. If ISO-8859-1 is not one of your categories, use the gear icon in the top left to add it. Click on the £ symbol, and in the enlarged view on the right, click on the Add to Favorites. In the future, when you want to add the pound sterling symbol, launch this character viewer, click on Favorites at the top of the category column, and then double-click the £ symbol to have it inserted at the current pointer location in your document. Not as efficient as typing GBP.

  • Some German alphabets are replaced by # while downloading data from UNIX

    Hi,
    I have a problem when I upload the data into UNIX application server directory, the data for example the data sent to server had some characters with german alphabets 'ä'
    '2 Jahre Erw. Gewährl.-Level HW-Rep.(11L) '.
    When I try to download the data from UNIX to a .txt file, those alphabets are replaced with '#'. The above characters has a german alphabet 'ä' which was getting replaced with '#'. So the data in the downloaded file from UNIX to a txt file would appear
    '2 Jahre Erw. Gew#hrl.-Level HW-Rep.(11L) '
    I tried to rectify the OPEN DATSET statement with the statement below
    OPEN DATASET L_UNIXFILE FOR OUTPUT IN LEGACY TEXT MODE CODE PAGE '1100'
    IGNORING CONVERSION ERRORS REPLACEMENT CHARACTER ''.
    Even after incorporating the above code in my program didn't help.
    Can any one suggest me solution.
    Regards,
    Rajesh Bhogi

    Check the codepages. If characters are replaced by '#' there is no corresponding character in the target codepage.

  • When Hard-coded server name and data base name are replaced with variables , execute process task does not produce the result

    Hi All,
    I am trying to load shape file into a sql spatial table. A execution process task is used to run the ogr2ogr.exe program.
    This is how the process tab looks like .
    Executable : C:\gdal_ogr2ogr\bin\gdal\apps\ogr2ogr.exe
    Argument :  -f MSSQLSpatial   MSSQL:server=SQL-ABC-DEV;database=MYSIMPLE_Dev;Trusted_Connection=True;\\mypath\files\shares\Data\www.mypage.htm\my_sample_file.shp
    Success value : 1
    For above settings, package runs fine. The spatial table is created in SQL server db. However when hard-coded SQL server name and database name are replaced with global variables , the spatial table is not created in the database. Yet the package runs fine.
    It does not throw any errors. (I am using another variable for full file path. It is not causing any errors though)
    " -f MSSQLSpatial   MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True;"+ @[User::Filepath] + "\\my_sample_file.shp"
    Both variables are string type. Can anyone tell me what I am doing wrong here please?
    I am running this in VS 2012.
    Thanks for your help in advance..
    shamen

    There should be a single space just after True:
    before
    " -f MSSQLSpatial   MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True;"+ @[User::Filepath] + "\\my_sample_file.shp"
    after keeping the space
    " -f MSSQLSpatial   MSSQL:server="+@[$Project::SQLServerName]+";database="+ @[$Project::DatabaseName] +";Trusted_Connection=True; "+ @[User::Filepath] + "\\my_sample_file.shp"
    Thanks
    shamen

  • Carriage returns are replaced by blank space in SOAP message.

    Hi,
    i am using SOAP request based website. i am using the weblogic webservices. when we sent any SOAP request to the server, if the SOAP xml message contains any carriage returns(new lines) are replaced by a single balnk space.
    i have a requirement where user can enter details in multiple lines. but by the time when it readched server, the SOAP xml message has changed. all the carriage returns are repalced by a blank space.
    Can you please help how to solve this issue.
    Thanks
    subba.

    What are your trying to accomplish?
    I'm thinking you are trying to get a several 'fields' together as a single 'string'. In which case I'd simply concat the fields together like
    SELECT a, b||' '||c ...
    to create a single string with "contents of b space contents of c"
    If you are trying to get one hundred and one blanks, of make a field 101 characters wide with blank padding, then you want to look in the SQL Reference manual for things like lpad, rpad and trim.

  • Can I still use the hide function ? "The Camera Roll and My Photo Stream album are replaced with an All Photos album"

    when the All Photos Album is created, all of the previously hidden files are now un-hidden. Is there a way to hide them in the new album?

    Hold your finger on the photo then tap hide.

  • When working in my photo album in iphoto my photos are replaced with a grey box and an !. I can't see the image on the page.

    Lately when I am working in my photo album in iPhoto my images are replaced with a grey box and an ! . I can't see the images on the page. All my photos are high quality.  What am I doing wrong?

    The ! turns up when iPhoto loses the connection between the thumbnail in the iPhoto Window and the file it represents.
    Option 1
    Back Up and try rebuild the library: hold down the command and option (or alt) keys while launching iPhoto. Use the resulting dialogue to rebuild. Choose to Rebuild iPhoto Library Database from automatic backup.
    If that fails:
    Option 2
    Download iPhoto Library Manager and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one. .
    Regards
    TD

  • Can someone let me know if this is true, ive read that iphone are replacing the 3gs 8gb for the iphone 4 8gb is this at all true?

    can someone let me know if this is true, ive read that iphone are replacing the 3gs 8gb for the iphone 4 8gb is this at all true?

    You do realize that this article ( form August -beofore Apple announced the new iphone) was simply speculating on what the next iphone to be released would be.
    You do not have to guess any longer.  Apple has allready released the iphone 4s.
    You seem to be very confused about what this is saying.
    This article simply guessed that maybe iphone was going to announce a new cheap iphone at the conferance which happend a couple of months ago.
    We now know that this was completely wrong.  Apple released the iphone 4s.
    The article does not mean that they would give iphone 3gs users a iphone 4 as  a replacement.  It meant that they would not make 3gs any longer and would now make a cheaper iphone 4 instead.
    We now know that this was incorrect.

  • Negative values are replaced by postive values

    Dear experts,
                        I got an issue in a query that Negative values are replaced by postive values.... So i checked out the data in the data target i dint found negative values.... I checked out whether there are any formuales... So i checked out the data in RSA3.. I dint found any -ve values... Am having doubt that R/3 is for transactio data.. So will it changes alternately -ve and +ve....

    HI,
    Make sure that in properties your Key figure in Query, +/- reverse is not check out.
    TO find that->Go to your Key figure in Query->Right click-> There you will in left top corner->+/- reverse sign.
    Make sure that it is not checked.
    hope i m clr.
    Regards,
    San!
    if helpful,assign points.

  • When printing PDFs, random letters are replaced or inserted - Can't figure it out

    When viewing the PDF documents on the screen, all is fine, but when printing the same document random letters are replace or inserted into the printed document.

    Can you try 'Print as Image' (Advanced button on Print panel).

  • My tokens are not recognized

    I'm creating a parser and I have a problem that I can't solve. The order of my tokens are not ok, because when I try to recognize a code, that's a problem, but if I change the order the parser recognize my code. May someonde help me telling how does this order matters when I create the tokens?

    Thanks a lot for your response. Do you know where I can get the codec or player for Vista? How do I check what exactly I am missing? Thanks again

Maybe you are looking for