Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"#header>ul#menu>li*6>a^^^div#main" doesn't function right. #3

Open
masac225 opened this issue Apr 29, 2017 · 3 comments
Open

"#header>ul#menu>li*6>a^^^div#main" doesn't function right. #3

masac225 opened this issue Apr 29, 2017 · 3 comments

Comments

@masac225
Copy link

Installed product versions

  • Visual Studio: Community 2017
  • This extension: 1.2.11

Description

This code doesn't function right:
#header>ul#menu>li*6>a^^^div#main

Steps to recreate

  1. Run "#header>ul#menu>li*6>a^^^div#main" under "body"

Current behavior

When you run the code, it should be like this.

<div id="header">
	<ul id="menu">
		<li><a href=""></a></li>
		<li><a href=""></a></li>
		<li><a href=""></a></li>
		<li><a href=""></a></li>
		<li><a href=""></a></li>
		<li><a href=""></a></li>
	</ul>
</div>
<div id="main"></div>
<div id="main"></div>
<div id="main"></div>
<div id="main"></div>
<div id="main"></div>
<div id="main"></div>

I think that it's happened by the bug of "^."

Expected behavior

I want it to show this code.

<div id="header">
	<ul id="menu">
		<li><a href=""></a></li>
		<li><a href=""></a></li>
		<li><a href=""></a></li>
		<li><a href=""></a></li>
		<li><a href=""></a></li>
		<li><a href=""></a></li>
	</ul>
</div>
<div id="main">
@gardient
Copy link

try (#header>ul#menu>li*6>a)+#main

for me it generates your expected

<div id="header">
    <ul id="menu">
        <li><a href=""></a></li>
        <li><a href=""></a></li>
        <li><a href=""></a></li>
        <li><a href=""></a></li>
        <li><a href=""></a></li>
        <li><a href=""></a></li>
    </ul>
</div>
<div id="main"></div>

not sure where you found th ^ thing, i can't seem to find any reference to it.

@applejag
Copy link

not sure where you found th ^ thing, i can't seem to find any reference to it.

This is typical Emmet syntax (docs link)

@gardient
Copy link

gardient commented Jan 14, 2019

and this is ZenCoding not Emmet. if I remember correctly Emmet started as either a fork or a port of this to another language.

ignore that, I'm just dumb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants