GithubHelp home page GithubHelp logo

Comments (3)

thealexgraham avatar thealexgraham commented on July 29, 2024 1

FYI to anyone who stumbles on this looking to fix the issue with highlighting match/case, @wookayin has forked the project and kindly updated it to allow the 3.10+ interpreter to be used which stops match statements from tripping up the highlighting in the rest of the file: https://github.com/wookayin/semshi.

from semshi.

numirias avatar numirias commented on July 29, 2024

All the highlights are cleared when a syntax error detected.

Highlights that have been applied should persist while a syntax error is present. Could you give a reproduction case where highlights disappear once a syntax error occurs?

But note that for Semshi, the code is meaningless as long as there's a syntax error. Once I add tree-sitter support however, it will be possible to keep updating highlights even with incorrect syntax.

from semshi.

vietspaceanh avatar vietspaceanh commented on July 29, 2024

Thank you for your response. I have an example as follows:

semshi

With normal Python code on the left, semshi works fine. On the right, I add 3 lines with keywords case and match, which are keywords of Coconut lang and not available in Python. Then, semshi clear the highlights of imported modules and function arguments.
If you need more information please let me know.

I saw the semshi#tolerate_syntax_errors option and don't know if there is a simple fix by adjusting that?

from semshi.

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.