Kotlin: Add highlight for character literals

This commit is contained in:
Yerlan 2021-05-17 18:44:10 +02:00 committed by GitHub
parent ead12e11bd
commit dff23f2f3f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,6 +56,7 @@ provide-module kotlin %§
add-highlighter shared/kotlin regions add-highlighter shared/kotlin regions
add-highlighter shared/kotlin/code default-region group add-highlighter shared/kotlin/code default-region group
add-highlighter shared/kotlin/string region %{(?<!')"} %{(?<!\\)(\\\\)*"} fill string add-highlighter shared/kotlin/string region %{(?<!')"} %{(?<!\\)(\\\\)*"} fill string
add-highlighter shared/kotlin/character region %{(?<!")'} %{(?<!\\)(\\\\)*'} fill string
add-highlighter shared/kotlin/comment region /\* \*/ fill comment add-highlighter shared/kotlin/comment region /\* \*/ fill comment
add-highlighter shared/kotlin/inline_documentation region /// $ fill documentation add-highlighter shared/kotlin/inline_documentation region /// $ fill documentation
add-highlighter shared/kotlin/line_comment region // $ fill comment add-highlighter shared/kotlin/line_comment region // $ fill comment