|
|
(no subject) [message #675643 is a reply to message #675627] |
Wed, 01 June 2011 04:49 |
Ed Willink Messages: 7655 Registered: July 2009 |
Senior Member |
|
|
Hi
And if there are some keywords not in listOfAllOtherKeywordsAllowedAsID,
you will still need to escape them which will require a custom
ValueConverterService.
Regards
Ed Willink
On 01/06/2011 04:58, Alexander Nittka wrote:
> Hi,
>
> the standard way is escaping the keyword, i.e. writing ^message
> instead of message, when it is used as ID rather than as a keyword.
> "^" is dealt with by the the value converter for ID, i.e. it is
> removed when parsing and added when serialising.
>
> If you don't want the escaping, things become more complicated:
> You have to use a datatype rule
>
> IdOrKeyword: ID|'message'|listOfAllOtherKeywordsAllowedAsID;
>
> and use that rule wherever you would use ID (and want the keywords
> allowed). However, the keywords will be highlighted as such wherever
> they appear (even if used as id), so you would have to adapt semantic
> highlighting as well.
>
> Alex
|
|
|
|
Powered by
FUDForum. Page generated in 0.03218 seconds