Vetur: ::v-deep selector syntax highlighting support

Created on 6 Sep 2019  路  4Comments  路  Source: vuejs/vetur

  • [x] I have searched through existing issues
  • [x] I have read through docs
  • [x] I have read FAQ

Info

  • Platform: Win
  • Vetur version: 0.22.2
  • VS Code version: 1.38.0

Problem

I believe the ::v-deep selector is not supported by the syntax highlighter in Vetur.

image
image

Reproducible Case

.checkbox-small.ui-checkbox {
  margin: 0;
  font-size: 1em;
  align-self: center;

  ::v-deep .ui-checkbox__checkmark {
    height: 1rem;
    width: 1rem;
    margin-top: 0.2rem;
  }
  ::v-deep .ui-checkbox__label-text {
    font-size: 1em;
    margin-left: 0.15em;
  }
}

.nav-wrapper {
  width: 0;

  ::v-deep .positioned {
    background: $light;
    right: $vuebar-width;
    width: 175px;
    @include pseudo;
    &::after {
      left: 100%;
      background: $light;
      width: $vuebar-width;
    }
  }
}
grammar upstream

Most helpful comment

Our team is also experiencing this issue.

All 4 comments

Our team is also experiencing this issue.

Issue still occurs

$vdeep: "::v-deep"

#{$vdeep} .subclass {
// ... 
}
Was this page helpful?
0 / 5 - 0 ratings