AntonellaSchaivoni / alsing

Automatically exported from code.google.com/p/alsing
0 stars 0 forks source link

Possible bug : Syntaxbox is not detecting $ as a scope end marker. #14

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
I have a syntax definition as follows

--------------------------------------------------------------------------------
--------------------
<Block Name="Stream" Style="Stream" EscapeChar="" IsMultiline="false">
        <Scope Start="$" End="$"  EscapeChar="\" Style="Stream" />
</Block>

<Style Name="Stream" ForeColor="Olive" BackColor="Transparent" Bold="false" 
Italic="false" Underline="false" />
--------------------------------------------------------------------------------
--------------------

The color is staying Olive beyond the $ end marker. Precisely, if I write 
$EDRTT$1234 in the Syntaxbox then ideally $EDRTT$ should be in Olive, but 
actually the color of the whole string(i.e. $EDRTT$1234) is staying Olive.

To reproduce the bug, just change any of the Block's scope start and end 
markers in any syntax file (e.g. "CS String" scope of CSharp.syn file).

Original issue reported on code.google.com by anidotNET on 23 Apr 2011 at 1:12