d4rkr00t / language-stylus

Stylus language support for Visual Studio Code
MIT License
44 stars 12 forks source link

Nested tags (built-ins) with operators with white space do not get formatted correctly #75

Open pqvst opened 5 years ago

pqvst commented 5 years ago

Nested tags (built-ins) with operators with white space do not get formatted correctly. Note however that classes, non-nested occurances, and operators without white space do get formatted correctly.

image

.child+.child
.child>.child + .child>.child
.child~.child + .child~.child
.child,.child + .child,.child

label+label
label>input + label>input
label~input + label~input
label,input + label,input

.child + .child
.child > .child + .child > .child
.child ~ .child + .child ~ .child
.child , .child + .child , .child

label + label
label > input + label > input
label ~ input + label ~ input
label , input + label , input

.parent
  .child+.child
  .child>.child + .child>.child
  .child~.child + .child~.child
  .child,.child + .child,.child

  label+label
  label>input + label>input
  label~input + label~input
  label,input + label,input

  .child + .child
  .child > .child + .child > .child
  .child ~ .child + .child ~ .child
  .child , .child + .child , .child

  label + label                   /* broken */
  label > input + label > input   /* broken */
  label ~ input + label ~ input   /* broken */
  label , input + label , input   /* broken */