1
1
mirror of https://github.com/mawww/kakoune.git synced 2024-12-28 06:08:05 +03:00

Simplifying regex

As suggested by @krobelus.
However, I figured that highlighting characters as strings is not correct as they are more like values.
This commit is contained in:
Yerlan 2021-05-17 20:54:29 +02:00 committed by GitHub
parent c7f7e01bba
commit c483d65594
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -56,7 +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 %{(?<!')"} %{(?<!\\)(\\\\)*"} group add-highlighter shared/kotlin/string region %{(?<!')"} %{(?<!\\)(\\\\)*"} group
add-highlighter shared/kotlin/character region %{(?<!")'} %{(?<!\\)(\\\\)*'} fill value add-highlighter shared/kotlin/character region %{'} %{(?<!\\)'} fill value
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