Giter Club home page Giter Club logo

Comments (7)

cablehead avatar cablehead commented on July 17, 2024 1

Thanks for the info! 🙏🏻 I still can't work out the mechanic to include a new syntax. e.g. if I search the syntect repo for erlang, I don't find anything...

from syntect.

keith-hall avatar keith-hall commented on July 17, 2024 1

did you checkout submodules? Erlang is in testdata/Packages/Erlang

from syntect.

cablehead avatar cablehead commented on July 17, 2024 1

I'm not yet convinced it's something we want in syntect as then we'll open the floodgates for requests for getting all sorts of packages added to syntect by default.

Ah gotcha. Yeah, that would quickly become impractical.

Please help me to understand for what reason do you want it in this repository as opposed to in your consumer codebase?

Right, I don't think I've been appreciating how straightforward it would be to just add the nushell schema to my consumer codebase.

Beyond my own immediate use case, my motivation to have the schema included upstream is to help the nushell project become more mainstream, tooling-wise. It's a shame sublimehq/Packages isn't accepting PRs, but it also makes sense. They would be in a similar floodgate position.

I'll close this issue for now. Thanks Keith 🙏🏻 syntect is a tremendous asset to the whole community.

from syntect.

keith-hall avatar keith-hall commented on July 17, 2024

#523 (comment)

I'm curious if the mechanism that includes syntax definitions can source the definition directly from nushell_sublime_syntax, so updates are picked up automatically?

typically syntaxes are included as git submodules, so dependabot can easily create PRs to bump them automatically

from syntect.

cablehead avatar cablehead commented on July 17, 2024

I think I see. It looks like if testdata/Packages/*/*.sublime-syntax is present, then it will become available as a SyntaxSet.

In which case, my next step is to try to get https://github.com/kurokirasama/nushell_sublime_syntax added to https://github.com/sublimehq/Packages

ah, but sublimehq/Packages isn't accepting new packages

from syntect.

cablehead avatar cablehead commented on July 17, 2024

would it be reasonable to add https://github.com/kurokirasama/nushell_sublime_syntax as an additional submodule, perhaps to: testdata/MoarPackages, and to update the build to load syntax from testdata/Packages + testdata/MoarPackages? .. or something roughly along those lines?

from syntect.

keith-hall avatar keith-hall commented on July 17, 2024

It may be reasonable, but I'm not yet convinced it's something we want in syntect as then we'll open the floodgates for requests for getting all sorts of packages added to syntect by default. (see #523 (comment) for example.) Please help me to understand for what reason do you want it in this repository as opposed to in your consumer codebase?

from syntect.

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.