ConfigLexems - Support for Zero-Width Lookahead Assertion?
I forgot to include a BeginBlock in the example above. Editing the post loses my font settings and will not allow me to set the font on any text, so consider this as the BeginBlock in the post above.
Thank you for contacting Syncfusion Support.
Query 1: I can see that there does not appear to be any support for zero-width lookahead/behind assertion in BeginBlock or EndBlock
Yes , at present there is no support for Zero-width lookahead/behind assertion in EditControl.
Query 2: Can you suggest any way to accomplish something similar, where a lexem ends on a character literal OR any character followed by a double quote? This is just an example, but the EndBlock above using a zero-width lookahead assertion is perfectly valid regex in .NET, so I am a bit troubled that I cannot use it in a ConfigLexem EndBlock
We have checked the reported requirement with the EditControl, but we are not clear about the query “a lexem ends on a character literal OR any character followed by a double quote”. Since we observed that the provided regex for EndBlock uses the Positive lookahead assertion that has been matching the character which is preceded before the quote [“] follows as shown below screenshot:
So could you please clarify us whether you want to match the character which is preceded before [“] in Syncfusion EditControl as shown in the above screenshot? If not kindly brief your requirement clearly about which character should be matched by providing screenshot. Also provide us the Input file which you have used in your application.
Please provide us the requested details and let us know if we had misunderstood your requirement?
Regards,
Vijayalakshmi V.R.
Thanks for your response. Yes, you understood my query correctly. I want to end the "bracketed text" lexem on either the character "]" OR the last character before a quotation mark. The reason for this is that bracketed text does not support sublexems, but quoted text does support them. Bracketed text can be inside quotation marks, and it should highlight correctly, but quoted text cannot be inside brackets. Without the requested support for lookaround assertions, we run into the problem that a "[" character inside of quotation marks will open a bracketed text lexem, which never gets closed because sublexems are not supported.
Here is an example of the problem:

I am currently ending the bracketed text lexem on "]" OR quotation marks, but then the quotation mark lexem remains open. Being able to do lookahead/behind would prevent this problem from occurring. Ending the bracketed text lexem on a quotation mark is "more" acceptable than not doing this, because quoted text allows all sublexems, but it is still not ideal, as it does not display correctly and it creates problems when processing the ConfigStack.
Thank you for your consideration of this issue, and I will be very pleased if there is any workaround to accomplish my goal.
Thank you for the patience.
A support incident to track the status of this reported requirement has been created under your account. Please log on to our support website to check for further updates.
https://www.syncfusion.com/account/login?ReturnUrl=%2fsupport%2fdirecttrac%2fincidents
Regards,
Vijayalakshmi V.R.
- 4 Replies
- 2 Participants
-
TN Timothy N Tow
- Aug 10, 2017 02:33 PM UTC
- Aug 28, 2017 12:20 PM UTC