Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Config for blocks without curly braces #22

@Zizico2

Description

@Zizico2

Let's say I want to have rust code directly inside <script></script>, like Svelte and Vue do for JS. Would this be possible with the current configuration options?

I think this would be implementable if I just went through the TokenStream and added { after every <script> and } before every </script>. Time complexity would go down the gutter though (maybe I could implement this with a map? which is lazy, but still). Maybe a config option to accept blocks directly inside certain tags would be useful. Or a more general Visitor-like API that would allow the insertions of the {/} where needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions