GithubHelp home page GithubHelp logo

Comments (5)

petervdonovan avatar petervdonovan commented on August 16, 2024 2

Is there a way to leverage artifacts of the actual VS Code extension, like its TextMate grammar?

In the spirit of staying DRY, maybe we could use the grammar file interpreter that is used in VS Code? That, combined with the non-declarative highlighting code, should be able to precisely match the highlight experience for VS Code users.

There are some problems with this. Apparently, "cross - grammar injections are currently not supported," but we need cross-grammar injections to highlight {= =} code blocks. I would be willing to help iron out these wrinkles so that we do not have to maintain multiple highlighters at once.

from lf-lang.github.io.

lhstrh avatar lhstrh commented on August 16, 2024

The syntax highlighting in VS Code is a lot more advanced than what is possible with prismjs, which is really just based on regular expression matching. Is there a way to leverage artifacts of the actual VS Code extension, like its TextMate grammar?

from lf-lang.github.io.

lhstrh avatar lhstrh commented on August 16, 2024

I found this, but it says it's not ready for production use.

from lf-lang.github.io.

lhstrh avatar lhstrh commented on August 16, 2024

So, yeah, maybe Prism is the way to go for now? Let me also tag @petervdonovan in case he has ideas about this.

from lf-lang.github.io.

petervdonovan avatar petervdonovan commented on August 16, 2024

This should be addressed by #11.

from lf-lang.github.io.

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.