GithubHelp home page GithubHelp logo

Comments (14)

cmyr avatar cmyr commented on June 23, 2024 2

Nope, we're free to do whatever we want, we're just expected to include the original license text intact. :)

from syntect-resources.

mmatoszko avatar mmatoszko commented on June 23, 2024 1

Is it something which is hard to do? I would love to work on it, but I need some tips how this should be done

What I understand for now is that we use syntect which uses Sublime text syntax definitions. Should we just take Sublime Text package for the Swift programming language, make it work for syntect and then add this to this repo?

from syntect-resources.

cmyr avatar cmyr commented on June 23, 2024 1

No, this should not be hard! The steps are approximately as follows:

  • find a good syntax definition (sublime or textmate) for the swift language, that has a permissive open source licence.
  • add that syntax definition to this repo
  • when that is merged, open a pr in the xi-editor repo that updates the syntect-resources submodule to include the new syntax definition
  • update xi-mac to point to the new xi-editor
  • write swift!

from syntect-resources.

naclcaleb avatar naclcaleb commented on June 23, 2024 1

Yes, sorry I was about to clarify that after reading the LICENSE section. I didn't see it before.

from syntect-resources.

cmyr avatar cmyr commented on June 23, 2024 1

This will also be quite out of date (it's at least two versoins of swift behind?) and it doesn't have metadata, but could be an okay starting point.

from syntect-resources.

cmyr avatar cmyr commented on June 23, 2024

And: you should be able to test out the syntax by just putting it in xi-mac/xi-editor/syntect-resources and rebuilding xi-mac.

from syntect-resources.

mmatoszko avatar mmatoszko commented on June 23, 2024

Thanks!

from syntect-resources.

mmatoszko avatar mmatoszko commented on June 23, 2024

Ok then.. I did some research and it looks like Swift Sublime Text packages are outdated. I will refresh my knowledge once in a while in order to support Swift 😄

from syntect-resources.

naclcaleb avatar naclcaleb commented on June 23, 2024

I found this, which has no license: https://github.com/GregoryBL/SwiftSyntax/blob/master/Swift.sublime-syntax

from syntect-resources.

cmyr avatar cmyr commented on June 23, 2024

From the readme it looks like MIT, so that's fine. we'll want to copy the license into a file if we take it on.

from syntect-resources.

naclcaleb avatar naclcaleb commented on June 23, 2024

We might be able to update it, but I don't know whether that would affect the licensing?

from syntect-resources.

naclcaleb avatar naclcaleb commented on June 23, 2024

Ok, I'm making a PR as we speak...

from syntect-resources.

naclcaleb avatar naclcaleb commented on June 23, 2024

Ok, there you go. If that gets merged, I can follow through with a PR on xi-editor, and hopefully xi-mac as well.

from syntect-resources.

nhooyr avatar nhooyr commented on June 23, 2024

Going to close as it has been a while and I'm not sure if this is relevant anymore.

from syntect-resources.

Related Issues (3)

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.