Giter Club home page Giter Club logo

Comments (4)

bathos avatar bathos commented on May 24, 2024 1

We could do it in a secondary definition adapted from ES, but both flow and typescript represent large divergences from ES grammatically from the perspective of a definition like this despite (in the latter case at least, not sure if Flow is as careful) striving to be a superset.

In other words you’d choose "Ecmascript (Flow)" or something as opposed to "Ecmascript" when selecting syntax.

I did investigate this once before and was unable to find a grammar spec for Flow. Without a formally defined grammar (in EBNF or whatever), it’d be very hard to develop this. Do you know of one existing?

from ecmascript-sublime.

aziz avatar aziz commented on May 24, 2024
  1. This is THE BEST syntax highlighting you can get for modern Javascript in ANY editor.
    Thanks again @bathos for building this.

  2. I asked this before in #10

  3. I think the "Language Reference" should be enough

  4. It's a really good idea to build a secondary syntax on top of ES and sublime syntax should allow us to do it.

from ecmascript-sublime.

bathos avatar bathos commented on May 24, 2024

I’m afraid their documentation doesn’t answer those kinds of questions, it just hints at what the answers might be. For projects like flow, the grammar definition is often effectively "whatever the library happens to expect" — i.e. it’s a black box, and you can only figure anything out by manually testing it until you find the specifics. The majority of the work would end up being experimenting with the flow transpiler to learn what it really does. I don’t personally want to tackle that effort, but if someone wants to document the ways flow modifies ES’s grammar productions, like what TS has done, I’d be up for adding it.

from ecmascript-sublime.

bathos avatar bathos commented on May 24, 2024

This has sat around long enough for everybody to stop using flow so I’m gonna close it ;)

from ecmascript-sublime.

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.