Skip to content

end="^\)" does not seem to work #21

@alexander-yevsyukov

Description

@alexander-yevsyukov

Here's the embed-code tags I tried to use:

<embed-code
  file="$context/src/main/kotlin/io/spine/tools/validation/ValidationPlugin.kt"
  start="public abstract class ValidationPlugin"
  end="^\)">
</embed-code>

Here's the code (with trimmed down internals):

public abstract class ValidationPlugin(
    renderers: List<Renderer<*>> = emptyList(),
    views: Set<Class<out View<*, *, *>>> = setOf(),
    viewRepositories: Set<ViewRepository<*, *, *>> = setOf(),
    reactions: Set<Reaction<*>> = setOf(),
) : Plugin(
   // More code goes here
)

The embedding I get is this:

```kotlin
public abstract class ValidationPlugin(
    renderers: List<Renderer<*>> = emptyList(),
    views: Set<Class<out View<*, *, *>>> = setOf(),
    viewRepositories: Set<ViewRepository<*, *, *>> = setOf(),
    reactions: Set<Reaction<*>> = setOf(),
) : Plugin(

Somehow it does something strange around the closing parenthesis. When I add trailing comment // Plugin everything works.
Here's the PR with the mentioned embeddings.

Please investigate and fix.

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions