When a character from <separatortokens> appears in another multi-character token, the character loses its recognition as a separator. Consider this example context file where the virgule is used in block comments and end-of-line comments. (Either one by itself will cause the failure; using both here to show that they do not interfere with each other.) Since the separator tokens are not specified, the default list is used, which includes a virgule.</separatortokens>
<editorcontext>
<delimiters>
<commenttokens color="DarkKhaki" bold="false" italic="false">
<blockcommentstartmark>/</blockcommentstartmark>
<blockcommentendmark></blockcommentendmark>/
</commenttokens>
<endoflinecommenttokens color="DarkKhaki" bold="true" italic="true">
<endoflinecommentmark>//</endoflinecommentmark>
</endoflinecommenttokens>
</delimiters>
<wordsandphrases>
<wordgroup type="keywords" color="Blue" bold="false">
<keyword>SELECT</keyword>
<keyword>ALTER</keyword>
<keyword>VARYING</keyword>
<keyword>WHEN</keyword>
<keyword>WHERE</keyword>
</wordgroup>
</wordsandphrases>
</editorcontext>
Then with this block of text in the ChameleonRichTextBox:
Then line 4 correctly highlights both "select" and "alter" but line 3 highlights neither one.
This was initially reported on 2010.06.09 by David Ball.