Coder Social home page Coder Social logo

Potential bug in less files about vim-css-color HOT 13 OPEN

ap avatar ap commented on July 18, 2024
Potential bug in less files

from vim-css-color.

Comments (13)

ap avatar ap commented on July 18, 2024

Hi, thanks for the report and patch. Did 8500576 fix this for you?

from vim-css-color.

mtscout6 avatar mtscout6 commented on July 18, 2024

Sure did, thanks!

from vim-css-color.

mtscout6 avatar mtscout6 commented on July 18, 2024

Wait, it partially fixed it. The rgba function still isn't getting colorized.
screen shot 2014-06-10 at 7 59 58 am

from vim-css-color.

ap avatar ap commented on July 18, 2024

This has to be fixed now after 353a6a8… right?

(Errm, you’ll have to manually add an rgba() unit in that place I guess, since I made all test files the same. Maybe I should have examples of every combination in every place after all…)

from vim-css-color.

mtscout6 avatar mtscout6 commented on July 18, 2024

I just updated, but it does not appear to be working still.

from vim-css-color.

ap avatar ap commented on July 18, 2024

Argh!

Hrmf. Can you put the cursor somewhere within that rgba() value and do

:echo map(synstack(line("."), col(".")), "synIDattr(v:val, 'name')")

and tell me what that says?

from vim-css-color.

mtscout6 avatar mtscout6 commented on July 18, 2024

['lessDefinition', 'lessFunction']

from vim-css-color.

ap avatar ap commented on July 18, 2024

Hrm OK… lessDefinition is part of the syntax group and should be getting highlighted.

Does the output of :echo keys(b:has_pattern_syn) include that particular rgba() value?

from vim-css-color.

ap avatar ap commented on July 18, 2024

Hmm, this bug stalled a long time ago.

@mtscout6: did the issue go away or did you just no longer care for some other reason (stopped using the plugin, or Vim, or whatever)?

from vim-css-color.

mtscout6 avatar mtscout6 commented on July 18, 2024

Still using the plugin, moved into a management position though so I haven't been in the weeds for a while. Unless anything has changed I'd imagine the problem still exists.

from vim-css-color.

mtscout6 avatar mtscout6 commented on July 18, 2024

In response to your question I missed years ago:

Source:

@farge-sochi-lys: rgba(184, 4, 128, 1);
@farge-sochi: rgba(150, 9, 120, 1);
@farge-sochi-mork: rgba(95, 9, 84, 1);
@farge-tekst: white;

@hex-white: #FFFFFF;
@hex-black: #000000;

p {
  background-color: #FFFFFF;
  background-color: rgba(184, 4, 128, 1);
}

With my cursor over the rgba inside the p selector.

:echo keys(b:has_pattern_syn)
E121: Undefined variable: b:has_pattern_syn
E116: Invalid arguments for function keys(b:has_pattern_syn)
E15: Invalid expression: keys(b:has_pattern_syn)
Press ENTER or type command to continue

from vim-css-color.

ap avatar ap commented on July 18, 2024

Oh, I overlooked that I renamed variable in the time since I wrote that comment. Can you try this again with echo keys(b:css_color_syn)? (Doesn’t matter where the cursor is, btw, for that.)

from vim-css-color.

mtscout6 avatar mtscout6 commented on July 18, 2024

The output is:

['rgba(150, 9, 120, 1)', 'rgba(184, 4, 128, 1)', '#FFFFFF', '#000000', 'rgba(95, 9, 84, 1)']

from vim-css-color.

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.