Git Product home page Git Product logo

Comments (5)

lhstrh avatar lhstrh commented on September 27, 2024 1

...using a URL like this one: https://github.com/microsoft/vscode/blob/main/extensions/cpp/syntaxes/cpp.tmLanguage.json

from lf-lang.github.io.

petervdonovan avatar petervdonovan commented on September 27, 2024 1

Couldn't we just wget or curl those files?

Oh, I like that idea -- thanks! The way I can imagine implementing that would be to just get the text in the highlighting script, without needing to save anything to files. I'll go ahead and try to do that.

from lf-lang.github.io.

petervdonovan avatar petervdonovan commented on September 27, 2024

One way to do this is to include vscode as a submodule, and to reach into that repo for the desired tmlanguage.json file. The problem is that a deep clone of the whole repo and its history consumes 496 MiB!

We could find ways to manage that. For example, we could try to do only shallow clones, or we could keep the thing around and just tolerate it. We could also just copy-paste the tmlanguage.json files that we need, and update them manually as their maintainers work on them. As long as we can somehow track copies of those files, it shouldn't be a problem to highlight any code we want, including bash scripts.

I'm open to any opinions...

from lf-lang.github.io.

Soroosh129 avatar Soroosh129 commented on September 27, 2024

We could also just copy-paste the tmlanguage.json files that we need

Would it be possible to factor out the tmlanguage.json file to a third repository and have that as a submodule in the vscode and website repos?

from lf-lang.github.io.

lhstrh avatar lhstrh commented on September 27, 2024

If I understand correctly, the respective tmlanguage.json files are part of the vscoderepository (not vscode-lingua-franca). Couldn't we just wget or curl those files?

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.