Giter VIP home page Giter VIP logo

Comments (4)

tamasfe avatar tamasfe commented on August 25, 2024

I believe this is highly subjective.

The original idea for different colors came from this:

image

It'd be harder to immediately spot what is an array and what is a table without colors.

The long-term plan is to have proper TextMate grammars where a key is just a key, and then additional semantic colors could be enabled on top of that.

But right now the only colors are provided from the LSP via semantic tokens. It is kind of a hack, but to resolve it someone has to write the actual grammars, and I don't see myself doing it in the near future.

from taplo.

Aloso avatar Aloso commented on August 25, 2024

I've written TextMate grammars before, maybe I can help.

from taplo.

tamasfe avatar tamasfe commented on August 25, 2024

Thanks, I've just asked whether we could use the grammar of this extension that was updated for 1.0.0, and the maintainer was very helpful. So hopefully no one needs to type even a single character of regex as they've done it all already.

I don't have a lot of time this week, so you could port it if you want, otherwise I'll get to it this weekend I think.

from taplo.

tamasfe avatar tamasfe commented on August 25, 2024

This should be resolved in 0.7.0, by default all keys are the same color and the rest can be colored with custom scopes as suggested. More defails about it is in the updated readme.

from taplo.

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.