Comments (5)
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.
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:
from css3.
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.
from css3.
Version 2.0.0 is out, with support for variables :)
from css3.
Woot. Thanks!
from css3.
Related Issues (20)
- Stray double quote in completions/functions.py HOT 2
- Highlight slashes
- How to turn off the annoying auto complete of this plugin? HOT 5
- Emmet 2's completions clash with CSS3
- typo
- Issue: It seems autocompletion is not working in version v2.1.38 HOT 2
- Syntax colors without but with default autocompletition HOT 1
- FR: Option to turn off completions
- `:global()` support HOT 3
- "!important" auto completion
- `font`, `menu`, `backdrop-filter` not highlighting/including properly HOT 2
- `@layer` support missing
- Support `@container` query sytax HOT 1
- Support current version of nesting HOT 1
- Support `repeat()` inside `grid-template` HOT 1
- Support ::part() pseudo-element HOT 1
- Completions regression? HOT 7
- Add view transition support
- Add `text-wrap: balance | pretty` HOT 1
- Add scroll driven animation support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from css3.