We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example, in
public fun foo( argument1: String = "*/*", argument2: Map<String, String> = emptyMap(), ) {}
the "/*" in the argument1 default is treated as the beginning of a comment, and the rest of the code block is treated as a comment.
argument1
The Kotlin compiler does not treat it as a comment start, though (see https://pl.kotl.in/d9VnkkShu).
The text was updated successfully, but these errors were encountered:
@nishtahir I was investigating the same issue today but didn't manage to fix it.
For some reason it only happens if this is within a function:
fun foo(argument: String = "image/*") {}
but not a val:
val
val foo = "image/*"
My initial assumption was that the issue is here:
patterns: - include: '#inline' - begin: '/\*'
because the begin clock does not check for double quotes, so I changed it to this begin: '(?<!")/\*' but the issue persists.
begin: '(?<!")/\*'
Sorry, something went wrong.
No branches or pull requests
For example, in
the "/*" in the
argument1
default is treated as the beginning of a comment, and the rest of the code block is treated as a comment.The Kotlin compiler does not treat it as a comment start, though (see https://pl.kotl.in/d9VnkkShu).
The text was updated successfully, but these errors were encountered: