Giter Site home page Giter Site logo

Comments (5)

balthisar avatar balthisar commented on August 20, 2024

A hacky way to do it while observing the user defaults would be to ensure that all colors are unique, even if the defaults specify the same color for multiple text types. For example, change the R value by one bit, or brightness, or something not really noticeable.

from fragaria.

shysaur avatar shysaur commented on August 20, 2024

Now you have the issue of tracking which bits you add, otherwise we'll end up creating duplicates of the manipulated color.

from fragaria.

balthisar avatar balthisar commented on August 20, 2024

Do you have sample text that causes this failure?

from fragaria.

shysaur avatar shysaur commented on August 20, 2024

I'm already looking into it and added some infrastructure for fixing this in defe94c.

Any text will do, the problem is that some syntax coloring passes look at the color added in previous passes. The issue is that if some passes assign the same color, this code will get confused and will probably produce incorrect results. The passes which do this are mainly the ones that can do multiline coloring.

from fragaria.

shysaur avatar shysaur commented on August 20, 2024

Also, I assigned myself to this... :-)

from fragaria.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.