Giter VIP home page Giter VIP logo

Comments (3)

dsifford avatar dsifford commented on September 15, 2024

@ajitid You are the master at finding inconsistencies!

Looks like the top example you gave is an issue with the textmate scope and not the theme. When typed exactly as you wrote it, the inner string is scoped as a regexp, which is why the \E and \n are highlighted as escape sequences.

I could fix that one singular issue, but by doing that I'd be breaking several other things. So the real fix would need to be made in (I believe) the python package.

Re: lines 2 and 3 -- not 100% certain, but from a google search, it appears that \E is not valid in python.

Closing this because it's out of scope.

from visual-studio-code.

ajitid avatar ajitid commented on September 15, 2024

I don't know much about theming, but other themes don't highlight escape characters in raw string.
I know \E is not an escape character.

I don't know whether I'm helping you or annoying you, but I like Dracula theme, and that's why so many issues 😅.

from visual-studio-code.

dsifford avatar dsifford commented on September 15, 2024

I don't know much about theming, but other themes don't highlight escape characters in raw string.
I know \E is not an escape character.

Yeah, unfortunately with the python textmate scopes, you either get highlighted escape characters or you don't; the scope is the same either way.

Additionally, \E, \Q, \B, \X, and anything in between is counted as an escaped character with the current textmate scopes, whether they are valid or not. The issue is the non-specific selectors used in the actual scope files and not the theme itself.

I don't know whether I'm helping you or annoying you, but I like Dracula theme, and that's why so many issues.

Nope, not annoying at all! Keep firing away as you see inconsistencies!

from visual-studio-code.

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.