Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SyntaxHighlighter Bug] background color doesn't reset with nested rules #54

Closed
bradphelan opened this issue May 28, 2015 · 2 comments
Closed

Comments

@bradphelan
Copy link

I have a simple xshd for syntax highlighting liquid templates.

<?xml version="1.0"?>

<!-- See https://github.com/icsharpcode/SharpDevelop/wiki/Syntax-highlighting -->

<SyntaxDefinition name = "dotliquid" xmlns="http://icsharpcode.net/sharpdevelop/syntaxdefinition/2008" 
                 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    >

    <RuleSet >
        <Span background="Black" foreground="LightGreen" >
            <Begin >{%</Begin>
            <End>%}</End>
            <RuleSet >
                <Span background="Black" foreground="LightBlue" >
                    <Begin >{{</Begin>
                    <End >}}</End>
                </Span>
            </RuleSet>
        </Span>
        <Span background="Black" foreground="LightBlue" >
            <Begin >{{</Begin>
            <End >}}</End>
        </Span>


    </RuleSet>

</SyntaxDefinition>

But the result is

image

So {{}} type tags can be embedded in {%%} type tags but the background color is reset to white after the closing }}

@bradphelan
Copy link
Author

this seems to be a related problem.

image

then I highlight a section of the code

image

and you can see that the background after the selection is set to white.

@bradphelan
Copy link
Author

thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant