Giter Club home page Giter Club logo

Comments (6)

Thom1729 avatar Thom1729 commented on May 27, 2024

I tried a simplified version of this and could not reproduce. Most likely it was fixed at some point. If you still have this issue or a similar issue, please post the exact code that triggers the bug as text.

from babel-sublime.

ch3ll0v3k avatar ch3ll0v3k commented on May 27, 2024

Sure
image

class MyClass{

  #privateProp = null; // OK
  publicProp = null; // OK

  constructor(){

  }

  publicMethod(){ // OK

  }

  // this (#) private method break all syntax highlighting after it self
  #privateMethod(){

  }

  wrongSytaxtHighlighting(){
    const a = 12;
  }

  someMethod(){
    const a = 12;
  }

}
´´´

from babel-sublime.

ch3ll0v3k avatar ch3ll0v3k commented on May 27, 2024

image
image

from babel-sublime.

Thom1729 avatar Thom1729 commented on May 27, 2024

Ah, I see the issue. It looks like you're running Sublime Text 3, which won't run babel-sublime v11 or later. ST4 added powerful new syntax highlighting features that are especially relevant to the JavaScript family, and current versions of babel-sublime rely deeply on these features and provide much better highlighting.

You can fix the issue by upgrading to current versions of Sublime and babel-sublime. I acknowledge that this may not be a very helpful answer.

I'll do some thinking about the status of the v10 branch. Currently, it's not maintained and I have no plans to update it to add new features or fix bugs. If there is substantial interest in contributing patches for v10, I could set up a dedicated branch for people to work on.

from babel-sublime.

ch3ll0v3k avatar ch3ll0v3k commented on May 27, 2024

ahh, oke. thank you for this info!
sorr ...

from babel-sublime.

ch3ll0v3k avatar ch3ll0v3k commented on May 27, 2024

Awesome ))) it does work in ST4. thx

from babel-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.