Is there any way to improve spell check for Kotlin regexes?

Answered

In the following code, the spell checker seems totally unaware that what it's spellchecking is a regex, so it's treating letters from escape sequences as the first letters of not-really misspelled words.

Is there any way to trigger smarter spellchecking, or to at least turn off spellchecking inside regexes? I realize that as far as Kotlin is concerned, these are probably "just" a bunch of strings — albeit strings with string escapes turned off. But I don't think it would be unreasonable to take context into account and handle string arguments for the Regex class differently, especially raw strings.

I could do something like add useless parens as a work-around, but I'd rather not do that.

0
2 comments

It's not possible at the moment, request is welcome at https://youtrack.jetbrains.com/issues/KT.

0

Thanks for the quick response! I've put in a request.

0

Please sign in to leave a comment.