Skip to content

Feature Request: More Flexible Handling Of THE Space In Imports #8

@ivanreese

Description

@ivanreese

In the CodeKit help for .kit files, it says:

The syntax is flexible. You can use @include instead of @import if you prefer. Quotes and spaces are totally optional (except for the space after the @import statement; that one you need).

Cool, cool. So, I'm doing some multiple imports, because hell yes those are helpful and nice to have. And if I do them this way, it works:

<!-- @import pages/companies.kit,
    pages/people.kit,
    pages/person.kit,
    pages/tests.kit
-->

But, oh man, the parser is pretty strict. It really wants that space after the @import statement to be a SPACE. So, this cleaner, nicer-looking alternative most certainly does not work.

<!-- @import
    pages/companies.kit,
    pages/people.kit,
    pages/person.kit,
    pages/tests.kit
-->

I'm going to assume this is one of those NP Hard problems, and take my lumps. But if, on the off chance, a tiny tweak to the parser ends up in a future version that allows this, I'm going to take a video of myself doing the happy dance, and hold my phone up to the very Sun itself to show it just how happy I am.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions