Code Monkey home page Code Monkey logo

Comments (5)

ryboe avatar ryboe commented on August 19, 2024

The only short-term fix I can make is to highlight var(--foo) calls where var() is a function argument, e.g. url(var(--myurl)). The arguments to var() would still not be matched. That's not much of an improvement.

Proper variable support will have to wait until I rewrite the syntax highlighter in sublime-syntax format. I'm going to begin work on that soon, but it's going to take a while to complete. Variables and custom properties are at the top of my "must support" list for version 2.0.

from css3.

srcspider avatar srcspider commented on August 19, 2024

Thanks y0. Any little bit of extra syntax highlight would help even if only temporary since it prevents highlighting errors by forcing context rules. Sorry I should have probably posted a picture of how the code from the opening shows up:

err

from css3.

kevinSuttle avatar kevinSuttle commented on August 19, 2024

Here's how the CSS (not CSS3 package) renders them. The only inconsistency is any custom variable definition after the 1st doesn't get highlighted. The rest seems to work.

screen shot 2016-06-07 at 12 14 49 pm

from css3.

ryboe avatar ryboe commented on August 19, 2024

Version 2.0.0 is out, with support for variables :)

from css3.

kevinSuttle avatar kevinSuttle commented on August 19, 2024

Woot. Thanks!

from css3.

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.