Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

support (a + b) * 3 > c #92

Open
spaceone opened this Issue · 6 comments

3 participants

@spaceone

I am writing XML files with the plugin but i am missing a functionality to group things for repeating:

(a + b) * 3 > c

<a><c/></a>
<a><c/></a>
<a><c/></a>
<b><c/></b>
<b><c/></b>

@sporkbox
Collaborator

What is the output you're expecting? This is my interpretation of it:

<a></a><b></b>
<a></a><b></b>
<a></a><b></b>
<c></c>

Is that correct?

@spaceone

No, i would expect something like:

<a><c/></a>
<a><c/></a>
<a><c/></a>
<b><c/></b>
<b><c/></b>
<b><c/></b>
@jansenm

I would like that too. Best would be to keep that zencoding compatible

https://code.google.com/p/zen-coding/

Abbreviation groups with unlimited nesting: div#page>(div#header>ul#nav>li4>a)+(div#page (h1>span)+p2)+div#footer. You can literally write a full document markup with just a single line.

I btw agree with noone here. The example given makes no sense.

a*3>c gives

<a href="">
    <c></c>
</a>
<a href="">
    <c></c>
</a>
<a href="">
    <c></c>
</a>

the c gets wrapped into the tag/part in front of the > which just does not make sense with a group there.

The output by spaceone should be the result of this

(a3>c)+(b3>c)

which i agree is not really short :(. And sporkbox output should be the results of this.

(a+b)*3+c

@spaceone

In my case c is not only c but some more things, I don't want to repeat them.

@jansenm

I understand that. And sympathize with it. Unfortunately that would require some new feature i would say. The features we have just don't provide it. How about

(a|b)*3>c

But i don't see the usefulness for html development here. But i guess it could be done.

@spaceone

I am not developping only HTML but also XML. "|" is for me "or" or a pipe.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.