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

Open
spaceone opened this Issue Dec 20, 2013 · 6 comments

Comments

Projects
None yet
2 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>

This comment has been minimized.

Show comment Hide comment
@ghost

ghost Feb 28, 2014

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?

ghost commented Feb 28, 2014

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

This comment has been minimized.

Show comment Hide comment
@spaceone

spaceone Mar 3, 2014

No, i would expect something like:

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

spaceone commented Mar 3, 2014

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

This comment has been minimized.

Show comment Hide comment
@jansenm

jansenm Mar 4, 2014

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>li_4>a)+(div#page (h1>span)+p_2)+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

(a_3>c)+(b_3>c)

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

(a+b)*3+c

jansenm commented Mar 4, 2014

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>li_4>a)+(div#page (h1>span)+p_2)+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

(a_3>c)+(b_3>c)

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

(a+b)*3+c

@spaceone

This comment has been minimized.

Show comment Hide comment
@spaceone

spaceone Mar 4, 2014

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

spaceone commented Mar 4, 2014

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

@jansenm

This comment has been minimized.

Show comment Hide comment
@jansenm

jansenm Mar 4, 2014

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.

jansenm commented Mar 4, 2014

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

This comment has been minimized.

Show comment Hide comment
@spaceone

spaceone Mar 4, 2014

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

spaceone commented Mar 4, 2014

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