CrossReferences [..|STRING] and AutoEditing is not nice [message #1686619] |
Thu, 19 March 2015 05:15  |
Eclipse User |
|
|
|
Hi,
In the grammar there is the following cross ref:
FormulaMemberOperand returns FormulaMemberOperand:
member=[QueryElement|STRING];
terminal STRING:
'"' ('\\' ('b' | 't' | 'n' | 'f' | 'r' | 'u' | '"' | "'" | '\\') | !('\\' | '"'))* '"';
Enter a " and use content assist ends up in to double quotes at the end and a syntax error.
One double quote comes from auto editing and one from the cross ref string.
Like this:
- User enters "
- AutoEditing makes it "", cursor is in the middle
- User presse CTRL+SPACE and selects an entry
- Content is e.g. "Sales""
I switched off auto editing for string but I don't like the behaviour.
I thought of changing the replaceRegion in ContentAssistContext but I don't know how.
I would like to stay with auto editing but content assist should replace the second " which came from auto editing.
Is this possible?
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03820 seconds