Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interfaces without Blocks break the rest of the file until a Block appears #9

Open
phase opened this issue Oct 30, 2016 · 1 comment

Comments

@phase
Copy link

phase commented Oct 30, 2016

Interfaces don't require a block, but the highlighter won't highlight correctly until it finds a block for the interface.

interface Test

/**
 * Doc Block Comment
 */
val test = 1

/**
 * asdf
 */
val T_UNDEF = object {
    override fun toString() = "undefined type"
}

/**
 * Another Doc Block Comment
 */
val test2 = 2

With an empty block, everything works normally.

interface Test {}

/**
 * Doc Block Comment
 */
val test = 1

/**
 * asdf
 */
val T_UNDEF = object {
    override fun toString() = "undefined type"
}

/**
 * Another Doc Block Comment
 */
val test2 = 2
@ilya-g
Copy link

ilya-g commented Sep 14, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants