You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've got a variable that's a list of several hundred items. I'd like to add comments between blocks of the items like I would in a regular programming language. I read at #202 (comment) that // comment will be removed, so I used those. However, the comments are not being stripped out before processing and are becoming part of the list.
I'm wondering if something's wrong with my syntax and I'm just not seeing it.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I've got a variable that's a list of several hundred items. I'd like to add comments between blocks of the items like I would in a regular programming language. I read at #202 (comment) that
// comment
will be removed, so I used those. However, the comments are not being stripped out before processing and are becoming part of the list.I'm wondering if something's wrong with my syntax and I'm just not seeing it.
Here's a contrived test case. Link to Less-To-CSS Playground
less source:
Output:
Notice that line 10 has
div#// Vegetables carrot
as the selector when it should bediv#carrot
.Any idea on how to fix this? I don't want to use multiple lists.
Beta Was this translation helpful? Give feedback.
All reactions