-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Description
It's common practice, however, to place comments describing layers into blade styles, so it would be ideal to only strip block comments and not line comments.
Doing this would require at least a few changes:
- The pre-checker must strip the comments before checking the style's validity, rather than operating on it directly.
- When outputting, all whitespace cannot be stripped. It would probably need to be exported in the same exploded style as its shown in the editor. Or some kind of dynamic compaction based on the presence of a comment.
- When importing, comment extraction would (obviously) need to be conditional based on comment type, and there's some code there that will probably have to be adjusted since, if I recall correctly, there's assumptions about no whitespace currently.
- As a side quest of doing this, it would be ideal to move the formatting out somewhere into its own standalone function so that a button/keybind can be added for the user to format the style while editing. It would also allow a style to be formatted when pasting, etc. Right now the formatting is hard-coded into the parser.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request