Git Product home page Git Product logo

zed-scss's Introduction

zed-scss

SCSS language support for Zed.

Features

  • Syntax Highlighting
  • Completion(uses vscode-css-language-server for completion)

Grammar

Feedback

Provide your feedback to improve this extension.

Known Issues

  • Unable to parse (#{} and @include):

    color: $color; // Correct formatting
    color: #{$color}; // Breaks formatting
    color: $color; // Incorrect formatting
    body {
      @include fonts.noto-serif-display-400;
      margin: 0;
      background-color: #ffffff;
      color: var(--c-dark);
      height: 100%;
    }

zed-scss's People

Contributors

bajrangcoder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

jimliang

zed-scss's Issues

Add Emmet support

I'm not sure if this is something that has to be done by the extension or by Zed but it would be great to have Emmet support for scss and sass files.

[MacOS] cmd + click on a variable

Is it possible to have cmd + click on a variable take you to where the variable is declared?

Or offer a list of where multiple variations have been declared.

auto complete / suggestions don't work

I am not sure if this is the correct repo to report this issue. As mentioned in this comment, the auto-complete/suggestions don't work. I don't know if this is related to Zed or this extension.

If this is the wrong place for the issue, I apologize for that and you can close my issue.

Variable interpolation

Thank you for the extension!

This may be an edge case, but variable interpolation appears to break the syntax highlighting.

Example:

color: $color; // Correct formatting
color: #{$color}; // Breaks formatting
color: $color; // Incorrect formatting

Bug in highlighting

Below is an piece of SCSS and screenshot of how it looks in Zed

@import 'styles/form';

*, *:after, *:before {
  box-sizing: border-box;
}

a, p {
  word-break: break-word;
}

html {
  -webkit-font-smoothing: antialiased;
  scroll-behavior: auto;
  font-size: 4px;
  height: 100%;
}

body {
  @mixin body_long_14;
  margin: 0;
  background-color: #ffffff;
  color: var(--c-dark);
  height: 100%;
}

button {
  color: var(--c-text-default);
}

#app {
  display: flex;
  flex-direction: column;
  height: 100%;
}

selector colors are inconsistent and rules inside of body selectors seems to be completely off
image

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.