Skip to content

Emmet does not create BEM grandparent class with 2 hyphens #179793

@aykut-rocks

Description

@aykut-rocks

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.77.2
  • OS Version: macOS 13.2.1

Steps to Reproduce:

in this closed issue #37520
you say that

.grandparent>.parent>.--child|bem

creates

<div class="grandparent">
        <div class="parent">
            <div class="grandparent__child"></div>
        </div>
 </div>

but it creates only parent__child

<div class="grandparent">
        <div class="parent">
            <div class="parent__child"></div>
        </div>
    </div>

only if i write the hyphen 3 times

.grandparent>.parent>.---child|bem

then i got the expected

<div class="grandparent">
        <div class="parent">
            <div class="grandparent__child"></div>
        </div>
    </div>

this is my configuration file:
"emmet.syntaxProfiles": {
"html" : {
"filters": "bem"
}
},
"emmet.preferences": {
"bem.elementSeparator": "__",
"bem.modifierSeparator": "--",
"bem.shortElementPrefix": "-"
},
"emmet.triggerExpansionOnTab": true

Metadata

Metadata

Assignees

Labels

*as-designedDescribed behavior is as designedbugIssue identified by VS Code Team member as probable bugconfirmedIssue has been confirmed by VS Code Team memberemmetEmmet related issuesinfo-neededIssue requires more information from posterupstreamIssue identified as 'upstream' component related (exists outside of VS Code)

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions