Giter Site home page Giter Site logo

PHP got confused by SQL about monokai HOT 5 CLOSED

kevinsawicki avatar kevinsawicki commented on August 15, 2024
PHP got confused by SQL

from monokai.

Comments (5)

svanharmelen avatar svanharmelen commented on August 15, 2024

@tap52384 I would say this is related to the PHP language package as that one assigns the scopes. This package only gives the assigned scopes it's colours. So if you use the debugger, I think it will show you the assigned scopes are not correct...

from monokai.

tap52384 avatar tap52384 commented on August 15, 2024

I'm not sure I understand you mean. Are you saying that the issue is not with this theme, but with a built-in package for Atom? Also, when you mention a debugger, are you talking about a debugger for the Atom text editor itself or something else? If you are referring to a PHP debugger, I'm not using one that integrates with Atom at the moment. I only have the core packages installed.

from monokai.

svanharmelen avatar svanharmelen commented on August 15, 2024

@tap52384 sorry, I will be a little more verbose πŸ˜‰

In the end Atom is build on top of Chromium. So if you press (on OSX) OPTION+CMD+i it will open the same Developer Tools as you'll find in the Chrome browser. Once you've done that you can inspect the source HTML generated by all different packages resulting in what you see in Atom.

The language packages (for PHP that would be this package: https://atom.io/packages/language-php) are responsible for assigning scopes to all the different parts that make up the syntax (vars, funcs, consts e.d) and the theme packages (like this package) are then assigning colours to those scopes.

So indeed I'm suggesting this is a problem with the language package as I suspect it doesn't handle this specific (corner) case correctly and so assigns the wrong scopes...

Makes sense?

from monokai.

tap52384 avatar tap52384 commented on August 15, 2024

Yes, that does make sense. Thanks for taking the time to explain. Atom and this theme is awesome. It's because of this theme that I even tried changing from Sublime Text 3 and I'm so glad I did.

from monokai.

svanharmelen avatar svanharmelen commented on August 15, 2024

@tap52384 I think there already is a issue logged for this with the PHP language package: atom/language-php#52

So closing this one for now, but of course you can always reopen it when the language package part is fixed and you still see the issue.

from monokai.

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.